Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 20, 2024
1 parent 72a5c5c commit ae61652
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/bench.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

import fs from "node:fs";
import sjson from "secure-json-parse";
import bourne from "@hapi/bourne";
import { bench, run, group, baseline } from 'mitata'
import { bench, run, group, baseline } from "mitata";
import { destr, safeDestr } from "../dist/index.mjs";

function addBench(name, val) {
Expand All @@ -22,7 +21,7 @@ function addBench(name, val) {
bench("@hapi/bourne", () => {
bourne.parse(val);
});
})
});
}

function addTryCatchBench(name, val) {
Expand Down Expand Up @@ -62,7 +61,7 @@ function addTryCatchBench(name, val) {
return val;
}
});
})
});
}

addBench("Non-string fallback", 3.141_592_653_59);
Expand All @@ -79,4 +78,4 @@ addTryCatchBench("broken object", pkg.slice(0, Math.max(0, pkg.length - 1)));

await run({
percentiles: false,
})
});

0 comments on commit ae61652

Please sign in to comment.