Download Latest Version mitata december holidays update source code.tar.gz (1.4 MB)
Email in envelope

Get an email when there's a new version of Mitata

Home / v1.0.23
Name Modified Size InfoDownloads / Week
Parent folder
mitata december holidays update source code.tar.gz 2024-12-25 1.4 MB
mitata december holidays update source code.zip 2024-12-25 1.4 MB
README.md 2024-12-25 1.7 kB
Totals: 3 Items   2.7 MB 0

docs now feature writing good benchmarks section to help people with improving their micro-benchmarks

🚀 New Features

concurrency benchmarks

mitata now offers quick and transparent way to test concurrency of asynchronous functions

:::js
bench('sleep(1000) x $concurrency', function* () {
  yield async () => await sleep(1000);
}).range('concurrency', 1, 1024);

benchmark                   avg (min … max) p75   p99    (min … top 1%)
------------------------------------------- -------------------------------
sleep(1000) x 1                 1.00 s/iter    1.00 s                █  █ █
                          (1.00 s … 1.00 s)    1.00 s █▁███▁▁▁▁▁█▁▁▁▁█▁▁█▁█
sleep(1000) x 8                 1.00 s/iter    1.00 s            █      █  
                          (1.00 s … 1.00 s)    1.00 s ▆▁▁▆▁▁▁▁▁▁▁█▁▁▁▆▁▆█▁▆
sleep(1000) x 64                1.00 s/iter    1.00 s                ██   █
                          (1.00 s … 1.00 s)    1.00 s █▁▁▁█▁▁▁▁▁▁██▁███▁▁▁█
sleep(1000) x 512               1.00 s/iter    1.00 s            █ ▃      █
                          (1.00 s … 1.00 s)    1.00 s ▆▁▁▁▁▁▁▁▁▆▆█▁█▁▁▁▁▁▁█
sleep(1000) x 1024              1.00 s/iter    1.00 s        ▃ █          ▃
                          (1.00 s … 1.00 s)    1.00 s ▆▁▁▁▁▆▁█▁█▆▆▁▁▁▁▁▁▁▁█
Source: README.md, updated 2024-12-25