From: Chris Duncan Date: Sat, 30 Nov 2024 06:59:26 +0000 (-0800) Subject: Logging for perf tests X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=379e3e992dcc9e76e038c649263055c192e37205;p=libnemo.git Logging for perf tests --- 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)