From 379e3e992dcc9e76e038c649263055c192e37205 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 29 Nov 2024 22:59:26 -0800 Subject: [PATCH] Logging for perf tests --- src/lib/pool.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/pool.ts b/src/lib/pool.ts index 6b86516..e54702f 100644 --- 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) -- 2.34.1