projects
/
libnemo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f010aa
)
Logging for perf tests
author
Chris Duncan
<chris@zoso.dev>
Sat, 30 Nov 2024 06:59:26 +0000
(22:59 -0800)
committer
Chris Duncan
<chris@zoso.dev>
Sat, 30 Nov 2024 06:59:26 +0000
(22:59 -0800)
src/lib/pool.ts
patch
|
blob
|
history
diff --git
a/src/lib/pool.ts
b/src/lib/pool.ts
index 6b86516cfc6bea385608766237ed98f706e4afd1..e54702f7c3f900ce3e9a9978ee38a984f287331e 100644
(file)
--- a/
src/lib/pool.ts
+++ b/
src/lib/pool.ts
@@
-57,6
+57,8
@@
export class Pool {
#report (thread: Thread, result: any) {
this.#results.push(result)
+ if (this.#results.length % 1000 === 0)
+ console.log(`results: ${this.#results.length} (${performance.now()})`)
thread.isBusy = false
if (this.#queue.length > 0) {
this.#assign(thread)