]> zoso.dev Git - nano-pow.git/commitdiff
Fix truncated benchmark calculation.
authorChris Duncan <chris@zoso.dev>
Tue, 21 Jan 2025 22:40:15 +0000 (14:40 -0800)
committerChris Duncan <chris@zoso.dev>
Tue, 21 Jan 2025 22:40:15 +0000 (14:40 -0800)
src/classes/gpu.ts
test.html

index 8fb469a30b02e801f9939ab66587c42a11eda04c..bd5dcd11013a96cdb9ef739439aae2b147a8ca5a 100644 (file)
@@ -122,7 +122,7 @@ export class NanoPowGpu {
                        "Minimum (ms)": min,
                        "Maximum (ms)": max,
                        "Arithmetic Mean (ms)": sum / count,
-                       "Truncated Mean (ms)": truncated / count,
+                       "Truncated Mean (ms)": truncated / (count * 0.8),
                        "Harmonic Mean (ms)": count / reciprocals,
                        "Geometric Mean (ms)": Math.exp(logarithms / count)
                }
index b17e028871933ccfaaa37911d48f2d791e4b8a8d..168cc998786d9df83f4720e62da24461186340c5 100644 (file)
--- a/test.html
+++ b/test.html
@@ -48,7 +48,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
                                        min: min,
                                        max: max,
                                        arithmetic: sum / count,
-                                       truncated: truncated / count,
+                                       truncated: truncated / (count * 0.8),
                                        harmonic: count / reciprocals,
                                        geometric: Math.exp(logarithms / count)
                                }