Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix: order of benchmakr results
Browse files Browse the repository at this point in the history
  • Loading branch information
Akxe committed Oct 28, 2023
1 parent 594843a commit 7a1e790
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ console.table(testingMethods.map(method => {
return {
name: method.name,
"parse (ms)": method.results.parse,
"stringify (ms)": method.results.stringify,
// eslint-disable perfectionist/sort-objects
"size (bytes)": method.results.size,
"size gzipped (bytes)": method.results.sizeGZipped,
"stringify (ms)": method.results.stringify,
};
}));
}).sort((a, b) =>
(a['parse (ms)'] + a['stringify (ms)'])
- (b['parse (ms)'] + b['stringify (ms)'])
));

0 comments on commit 7a1e790

Please sign in to comment.