]> zoso.dev Git - libnemo.git/commitdiff
Logging for perf tests
authorChris Duncan <chris@zoso.dev>
Sat, 30 Nov 2024 06:59:26 +0000 (22:59 -0800)
committerChris Duncan <chris@zoso.dev>
Sat, 30 Nov 2024 06:59:26 +0000 (22:59 -0800)
src/lib/pool.ts

index 6b86516cfc6bea385608766237ed98f706e4afd1..e54702f7c3f900ce3e9a9978ee38a984f287331e 100644 (file)
@@ -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)