1.2.0 • Published 12 months ago
@remusao/bench v1.2.0
@remusao/bench
Easily measure performance of a function against array of inputs.
import bench from '@remusao/bench';
function getLengthOfUrl(url: string): number {
return url.length;
}
const opsPerSecond = bench(getLengthOfUrl, [
'',
'https://example.com',
'http://foo.bar',
]);