api = type.toLowerCase()
await selfCheck(api)
Cache.clear()
- logger.log(`%cNanoPow ${type}`, 'color:green', `Calculate truncated harmonic mean of the truncated arithmetic rate of generating proof-of-work across ${runs} runs of ${size} samples.`)
+ logger.log(`%cNanoPow ${type}`, 'color:green', `Calculate truncated harmonic mean of the truncated arithmetic rate of generating proof-of-work for ${size} samples over ${runs} test runs.`)
const rates = []
for (let i = 0; i < runs; i++) {
await new Promise(r => setTimeout(r))
const times = []
for (let j = 0; j < size; j++) {
- document.getElementById('status').innerHTML = `TESTING IN PROGRESS. THIS MAY TAKE A LONG TIME. ${i}/${runs} ${j}/${size}<br/>`
+ document.getElementById('status').innerHTML = `TESTING IN PROGRESS. THIS MAY TAKE A LONG TIME. ${j}/${size} ${i}/${runs}<br/>`
try {
const duration = await sequenceGenerateValidate(api, difficulty, effort)
times.push(duration)