We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8cd47 commit da13c22Copy full SHA for da13c22
benchmarking/compare/index.js
@@ -86,9 +86,10 @@ for (let i = 0; i < results[0].length; i += 1) {
86
if (min !== 0) {
87
console.group(`${metric}: fastest is ${char(min_index)} (${branches[min_index]})`);
88
times.forEach((time, b) => {
89
- console.log(
90
- `${char(b)}: ${'◼'.repeat(Math.round(20 * (time / max)))} (${time.toFixed(2)}ms)`
91
- );
+ const SIZE = 20;
+ const n = Math.round(SIZE * (time / max));
+
92
+ console.log(`${char(b)}: ${'◼'.repeat(n)}${' '.repeat(SIZE - n)} ${time.toFixed(2)}ms`);
93
});
94
console.groupEnd();
95
}
0 commit comments