bench-press
1.0.0 • Public • Published bench-press
Benchmark operations
Use
import benchpress from 'bench-press';
console.log(
benchpress(() => myFunction())
);
Options
Message
console.log(
benchpress(
() => myFunction(),
{
message: 'myFunction ✖ ${iterations} = ${duration}',
}
)
);
Iterations
console.log(
benchpress(
() => myFunction(),
{
iterations: 1e5,
}
)
);
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.0.0
0
Version History
Package Sidebar
Install
Weekly Downloads