import 'nano-webgl-pow'
await suite('Block performance', async () => {
- const COUNT = 0x10
+ const COUNT = 0x200
- await test(`Customized PoW: Time to calculate proof-of-work for a block hash ${COUNT} times`, async () => {
+ await skip(`Customized PoW: Time to calculate proof-of-work for a block hash ${COUNT} times`, async () => {
const times = []
const hashes = [
NANO_TEST_VECTORS.PRIVATE_0,
await block.pow()
const end = performance.now()
times.push(end - start)
- console.log(`${block.work} (${end - start} ms) ${block.previous}`)
- block.previous = 'BB569136FA05F8CBF65CEF2EDE368475B289C4477342976556BA4C0DDF216E45'
+ console.log(`${block.work} (${end - start} ms)`)
}
const { total, arithmetic, harmonic, geometric } = average(times)
console.log(`Total: ${total} ms`)