Skip to content

Commit

Permalink
faster -> as fast
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Feb 18, 2024
1 parent c5b904b commit d16a08c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ process.stdout.write('JSON.parse... ');
const nativeParseAverage = benchmarkParse(JSON.parse.bind(JSON));
process.stdout.write('ExtendedJSON.parse... ');
const customParseAverage = benchmarkParse(ExtendedJSON._parse.bind(ExtendedJSON));
console.log(`JSON.parse is ${(customParseAverage / nativeParseAverage).toFixed(2)}x faster`);
console.log(`JSON.parse is ${(customParseAverage / nativeParseAverage).toFixed(2)}x as fast`);

console.log('');

process.stdout.write('JSON.stringify... ');
const nativeStringifyAverage = benchmarkStringify(JSON.stringify.bind(JSON));
process.stdout.write('ExtendedJSON.stringify... ');
const customStringifyAverage = benchmarkStringify(ExtendedJSON.stringify.bind(ExtendedJSON));
console.log(`JSON.stringify is ${(customStringifyAverage / nativeStringifyAverage).toFixed(2)}x faster`);
console.log(`JSON.stringify is ${(customStringifyAverage / nativeStringifyAverage).toFixed(2)}x as fast`);

0 comments on commit d16a08c

Please sign in to comment.