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
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/>`
})
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++) {
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/>`