From: Chris Duncan Date: Mon, 23 Dec 2024 20:24:34 +0000 (-0800) Subject: Clarify which benchmarks belong to which project. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=1ef045d76e1fa31bc15f8a0cc38a829b7b171880;p=libnemo.git Clarify which benchmarks belong to which project. --- diff --git a/index.html b/index.html index b40f90f..d136439 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ await block.pow() const end = performance.now() times.push(end - start) - works.innerHTML += `${block.work} (${end - start} ms)
` + works.innerHTML += `libnemo-powgl: ${block.work} (${end - start} ms)
` console.log(block.work) } let sum = 0, reciprocals = 0, product = 1, count = times.length @@ -31,7 +31,8 @@ product *= times[i] } const t = document.getElementById('times') - t.innerHTML = `Total: ${sum} ms
+ t.innerHTML = `libnemo-powgl
+Total: ${sum} ms
Average: ${sum / count} ms
Harmonic: ${count / reciprocals} ms
Geometric: ${Math.pow(product, 1 / count)} ms
` @@ -48,8 +49,7 @@ Geometric: ${Math.pow(product, 1 / count)} ms
` }) const end = performance.now() times.push(end - start) - works.innerHTML += `${work} (${end - start} ms)
` - console.log(work) + works.innerHTML += `nano-webgl-pow: ${work} (${end - start} ms)
` } let sum = 0, reciprocals = 0, product = 1, count = times.length for (let i = 0; i < count; i++) { @@ -58,7 +58,8 @@ Geometric: ${Math.pow(product, 1 / count)} ms
` product *= times[i] } const t = document.getElementById('times') - t.innerHTML += `Total: ${sum} ms
+ t.innerHTML += `nano-webgl-pow
+Total: ${sum} ms
Average: ${sum / count} ms
Harmonic: ${count / reciprocals} ms
Geometric: ${Math.pow(product, 1 / count)} ms
`