Skip to content

Commit

Permalink
chore: remove unnecessary console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Apr 22, 2024
1 parent 5f493c7 commit e93090b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,14 @@ suite('map', 'Measure .map performance with different functions', async (test) =
<!--- @@inject: static/example.txt --->

```
[ 'examples/dist/exampleMap.perf.mjs', [length]: 1 ]
File: examples/dist/exampleMap.perf.mjs
Running Perf Suite: map
Measure .map performance with different functions
✔ map((a) => a.length) 28054.13 ops/sec 13754 iterations 490.27ms time
✔ .map((a) => { return a.length; }) 17902.43 ops/sec 8844 iterations 494.01ms time
✔ .map(Boolean) 9751.51 ops/sec 4844 iterations 496.74ms time
✔ .map((a) => !a.length) 15737.79 ops/sec 7804 iterations 495.88ms time
✔ .map((a) => { return !a.length; }) 14420.30 ops/sec 7148 iterations 495.69ms time
✔ map((a) => a.length) 30161.75 ops/sec 14805 iterations 490.85ms time
✔ .map((a) => { return a.length; }) 18350.31 ops/sec 9068 iterations 494.16ms time
✔ .map(Boolean) 7007.64 ops/sec 3480 iterations 496.60ms time
✔ .map((a) => !a.length) 14078.50 ops/sec 6985 iterations 496.15ms time
✔ .map((a) => { return !a.length; }) 13274.67 ops/sec 6579 iterations 495.61ms time
done.
```

Expand Down
11 changes: 5 additions & 6 deletions packages/perf-insight/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,14 @@ suite('map', 'Measure .map performance with different functions', async (test) =
**`npx perf-insight exampleMap.perf.mjs --timeout 500`**

```
[ 'examples/dist/exampleMap.perf.mjs', [length]: 1 ]
File: examples/dist/exampleMap.perf.mjs
Running Perf Suite: map
Measure .map performance with different functions
✔ map((a) => a.length) 28054.13 ops/sec 13754 iterations 490.27ms time
✔ .map((a) => { return a.length; }) 17902.43 ops/sec 8844 iterations 494.01ms time
✔ .map(Boolean) 9751.51 ops/sec 4844 iterations 496.74ms time
✔ .map((a) => !a.length) 15737.79 ops/sec 7804 iterations 495.88ms time
✔ .map((a) => { return !a.length; }) 14420.30 ops/sec 7148 iterations 495.69ms time
✔ map((a) => a.length) 30161.75 ops/sec 14805 iterations 490.85ms time
✔ .map((a) => { return a.length; }) 18350.31 ops/sec 9068 iterations 494.16ms time
✔ .map(Boolean) 7007.64 ops/sec 3480 iterations 496.60ms time
✔ .map((a) => !a.length) 14078.50 ops/sec 6985 iterations 496.15ms time
✔ .map((a) => { return !a.length; }) 13274.67 ops/sec 6579 iterations 495.61ms time
done.
```

Expand Down
2 changes: 0 additions & 2 deletions packages/perf-insight/src/app.mts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ export async function app(program = defaultCommand): Promise<Command> {
suiteNamesToRun.some((name) => file.toLowerCase().includes(name.toLowerCase())),
);

console.log('%o', files);

await spawnRunners(files, options);

console.log(chalk.green('done.'));
Expand Down
11 changes: 5 additions & 6 deletions static/example.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[ 'examples/dist/exampleMap.perf.mjs', [length]: 1 ]
File: examples/dist/exampleMap.perf.mjs
Running Perf Suite: map
Measure .map performance with different functions
✔ map((a) => a.length) 28054.13 ops/sec 13754 iterations 490.27ms time
✔ .map((a) => { return a.length; }) 17902.43 ops/sec 8844 iterations 494.01ms time
✔ .map(Boolean) 9751.51 ops/sec 4844 iterations 496.74ms time
✔ .map((a) => !a.length) 15737.79 ops/sec 7804 iterations 495.88ms time
✔ .map((a) => { return !a.length; }) 14420.30 ops/sec 7148 iterations 495.69ms time
✔ map((a) => a.length) 30161.75 ops/sec 14805 iterations 490.85ms time
✔ .map((a) => { return a.length; }) 18350.31 ops/sec 9068 iterations 494.16ms time
✔ .map(Boolean) 7007.64 ops/sec 3480 iterations 496.60ms time
✔ .map((a) => !a.length) 14078.50 ops/sec 6985 iterations 496.15ms time
✔ .map((a) => { return !a.length; }) 13274.67 ops/sec 6579 iterations 495.61ms time
done.

0 comments on commit e93090b

Please sign in to comment.