1.1.1 • Published 3 years ago
@remusao/bench v1.1.1
@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',
]);