Skip to content

Commit

Permalink
Update json-parse-stringify.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed May 17, 2023
1 parent 6c847f6 commit 67f543d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bench/snippets/json-parse-stringify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ var obj = {
};
var big = JSON.stringify(obj);

bench("JSON.parse(big)", () => {
bench("JSON.parse(obj)", () => {
globalThis.foo = JSON.parse(big);
});

bench("JSON.stringify(big)", () => {
bench("JSON.stringify(obj)", () => {
globalThis.bar = JSON.stringify(obj);
});

Expand Down

0 comments on commit 67f543d

Please sign in to comment.