1.2.0 • Published 12 months ago

@remusao/bench v1.2.0

Weekly downloads
1
License
MPL-2.0
Repository
github
Last release
12 months ago

@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',
]);
1.2.0

12 months ago

1.1.1

5 years ago

1.1.0

5 years ago