]> zoso.dev Git - libnemo.git/commitdiff
Clarify which benchmarks belong to which project.
authorChris Duncan <chris@zoso.dev>
Mon, 23 Dec 2024 20:24:34 +0000 (12:24 -0800)
committerChris Duncan <chris@zoso.dev>
Mon, 23 Dec 2024 20:24:34 +0000 (12:24 -0800)
index.html

index b40f90fef67eea443ee48e26239d4e985c751b26..d1364399e606c2305f54600b9096e8b04252f874 100644 (file)
@@ -21,7 +21,7 @@
                                await block.pow()
                                const end = performance.now()
                                times.push(end - start)
-                               works.innerHTML += `${block.work} (${end - start} ms)<br/>`
+                               works.innerHTML += `libnemo-powgl: ${block.work} (${end - start} ms)<br/>`
                                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<br/>
+                       t.innerHTML = `libnemo-powgl<br/>
+Total: ${sum} ms<br/>
 Average: ${sum / count} ms<br/>
 Harmonic: ${count / reciprocals} ms<br/>
 Geometric: ${Math.pow(product, 1 / count)} ms<br/>`
@@ -48,8 +49,7 @@ Geometric: ${Math.pow(product, 1 / count)} ms<br/>`
                                        })
                                        const end = performance.now()
                                        times.push(end - start)
-                                       works.innerHTML += `${work} (${end - start} ms)<br/>`
-                                       console.log(work)
+                                       works.innerHTML += `nano-webgl-pow: ${work} (${end - start} ms)<br/>`
                                }
                                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<br/>`
                                        product *= times[i]
                                }
                                const t = document.getElementById('times')
-                               t.innerHTML += `Total: ${sum} ms<br/>
+                               t.innerHTML += `nano-webgl-pow<br/>
+Total: ${sum} ms<br/>
 Average: ${sum / count} ms<br/>
 Harmonic: ${count / reciprocals} ms<br/>
 Geometric: ${Math.pow(product, 1 / count)} ms<br/>`