エントリーの編集
![loading...](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/common/loading@2x.gif)
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
GitHub - tinylibs/tinybench: 🔎 A simple, tiny and lightweight benchmarking library!
記事へのコメント2件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
![アプリのスクリーンショット](https://b.st-hatena.com/bdefb8944296a0957e54cebcfefc25c4dcff9f5f/images/v4/public/entry/app-screenshot.png)
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
GitHub - tinylibs/tinybench: 🔎 A simple, tiny and lightweight benchmarking library!
import { Bench } from 'tinybench'; const bench = new Bench({ time: 100 }); bench .add('faster tas... import { Bench } from 'tinybench'; const bench = new Bench({ time: 100 }); bench .add('faster task', () => { console.log('I am faster') }) .add('slower task', async () => { await new Promise(r => setTimeout(r, 1)) // we wait 1ms :) console.log('I am slower') }) .todo('unimplemented bench') await bench.warmup(); // make results more reliable, ref: https://github.com/tinylibs/tinybench/pull/50 await
2022/09/21 リンク