diff --git a/bench/index.ts b/bench/index.ts index e69de29..fe969a4 100644 --- a/bench/index.ts +++ b/bench/index.ts @@ -0,0 +1,14 @@ +import { Bench } from "tinybench"; + +const bench = new Bench({ name: "MapArray get", time: 300 }); + +bench + .add("foo", () => { + console.log("foo"); + }) + .add("bar", () => { + console.log("bar"); + }); + +await bench.run(); +console.table(bench.table());