Skip to content

Commit

Permalink
Reformat output so it can be directly copied into a markdown table
Browse files Browse the repository at this point in the history
  • Loading branch information
BadIdeaException committed Jan 5, 2024
1 parent e0f4d73 commit d76647b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ new Benchmark.Suite('object-selectors vs. easy-object-selector')
getvalue(obj, selector);
})
.on('cycle', function(event) {
console.log(String(event.target));
console.log(String(event.target)
// Replace " x ", if followed immediately by a digit, with " | "
.replace(/ x (?=\d)/, ' | '));
})
.on('complete', function() {
console.log('Fastest is ' + this.filter('fastest').map('name'));
Expand Down

0 comments on commit d76647b

Please sign in to comment.