Performance test framework
Homepage Repository npm Download
npm install leistung@5.0.1
The precision is not good, so fast operation have high variance results.
import { performance } from "perf_hooks"; // optional, only for node
// node12, rollup, webpack
import { createPerformanceTest, runAll } from "leistung";
// raw import for browser, deno
import { createPerformanceTest, runAll } from "./node_modules/leistung/built/leistung.js";
import { defaultLogging } from "./node_modules/leistung/source/defaultLogging.js";// optional
see ./examples/exampleForEachFor.js