KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
tiny-benchy
★ 15
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
steam-page
:
在你的WordPress博客展示Steam游戏库
spirv-wasm
:
Run SPIR-V shaders in WebAssembly
cjson
:
wrap cJSON for vlang
deepstream-test1-app_rtsp
:
基于官方源码deepstream-test1修改,调用rtsp摄像头,并推理显示结果
QTWebChat_QT
:
这是一个QT和JS之间通信的例子
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
tiny-benchy
?
Download (.md)
# Benchy A tiny benchmarking utility that helps run benchmarks quickly. Supports callback functions which return a promise. ## Usage ```js const { Benchmark } = require("tiny-benchy"); const suite = new Benchmark(); suite.add("RegExp#test-async", async () => { /o/.test("Hello World!"); }); suite.add("RegExp#test", () => { /o/.test("Hello World!"); }); suite.run(); ``` ## Output ``` rank 1: RegExp#test-async 1,033,057.85 opts/sec (mean: 968ns, stddev: 0.002ms, 50 samples) rank 2: RegExp#test 552,486.19 opts/sec (mean: 0.002ms, stddev: 0.005ms, 50 samples) ``` ## API ```ts declare class Benchmark { constructor(iterations?: number); add( title: string, callback: () => void | Promise<void>, iterations?: number ): void; run(): Promise<void>; } export = Benchmark; ```