From 678d4276dcdab6fd2351a5f899a5f3ca9ccf84f1 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 16 Jan 2025 08:26:10 -0800 Subject: [PATCH] Adjust debug table output. Increase base dispatch size. --- src/classes/gpu.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/classes/gpu.ts b/src/classes/gpu.ts index 5513ff7..3a9fc00 100644 --- a/src/classes/gpu.ts +++ b/src/classes/gpu.ts @@ -116,15 +116,15 @@ export class NanoPowGpu { if (count > 2 && i > (count * 0.1) && i < (count * 0.9)) truncated += times[i] } const averages = { - Count: `${count} dispatches`, - Total: `${sum} ms`, - Rate: `${count / sum * 1000} dispatches/second`, - Minimum: `${min} ms`, - Maximum: `${max} ms`, - Arithmetic: `${sum / count} ms`, - Truncated: `${truncated / count} ms`, - Harmonic: `${count / reciprocals} ms`, - Geometric: `${Math.exp(logarithms / count)} ms` + "Count (dispatches)": count, + "Total (ms)": sum, + "Rate (d/s)": count / sum * 1000, + "Minimum (ms)": min, + "Maximum (ms)": max, + "Arithmetic Mean (ms)": sum / count, + "Truncated Mean (ms)": truncated / count, + "Harmonic Mean (ms)": count / reciprocals, + "Geometric Mean (ms)": Math.exp(logarithms / count) } console.table(averages) } @@ -236,7 +236,7 @@ export class NanoPowGpu { start = performance.now() const random = Math.floor(Math.random() * 0xffffffff) const seed = (BigInt(random) << 32n) | BigInt(random) - const data = await this.#dispatch(this.#searchPipeline, seed, hash, threshold, effort * 0x100) + const data = await this.#dispatch(this.#searchPipeline, seed, hash, threshold, effort * 0x200) nonce = data.getBigUint64(0, true) this.#busy = !data.getUint32(8) times.push(performance.now() - start) -- 2.34.1