-
-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
Add a working example in readme
The current example does the test, but doesn't log nor output anything to a file. Trying it was very deceiving, although after some research, the lib seems great!
Original issue
Reproduction:
// test.js
import { Bench } from "tinybench";
const bench = new Bench({ time: 100 });
bench
.add("Test tinybench", () => {
let a = 8;
let b = 1;
const c = a;
a = b;
b = c;
});
console.log(await bench.run());node test,jsOutput:
[ m {} ]
Expected output:
Benchmark results?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels