1.0.3 • Published 1 year ago
@paiwhite/benchmarker v1.0.3
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);