1.0.3 • Published 1 year ago

@paiwhite/benchmarker v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Function Benchmarker

A simple benchmark for testing function performance. Through the package, you can compare the cost time of different functions.

Guide

const benchmarker = require('@paiwhite/function-benchmarker');

function jsonStringify() {
  JSON.stringify({
    foo: 'bar',
  });
}

const costTime = benchmarker(jsonStringify);
console.log('costTime', costTime);