Skip to content

Commit a6fdc3a

Browse files
committed
Update Benchmark
1 parent c803311 commit a6fdc3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bench.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import deepDiff from "deep-diff";
2-
import deepObjectDiff from "deep-object-diff";
2+
import { detailedDiff } from "deep-object-diff";
33
import { diffJson } from "diff";
44
import microdiff from "./dist/index.js";
55
import { hrtime } from "node:process";
@@ -9,7 +9,7 @@ const characters = "abcdefghijklmnopqrstuvwxyz1234567890".split("");
99
async function benchmark(name, obj, newObj, exclude = []) {
1010
const benchmarks = {
1111
"deep-diff": () => deepDiff.diff(obj, newObj),
12-
"deep-object-diff": () => deepObjectDiff.detailedDiff(obj, newObj),
12+
"deep-object-diff": () => detailedDiff(obj, newObj),
1313
jsdiff: () => diffJson(obj, newObj),
1414
microdiff: () => microdiff(obj, newObj),
1515
};
@@ -47,7 +47,7 @@ async function benchmark(name, obj, newObj, exclude = []) {
4747
colors.bold(colors.green(`Benchmarks: ${name}\n`)) + output.join("\n")
4848
);
4949
}
50-
50+
console.log(colors.bold("Starting Benchmark"));
5151
benchmark(
5252
"Small object (baseline)",
5353
{

0 commit comments

Comments
 (0)