]> zoso.dev Git - libnemo.git/commitdiff
Reduce block performance test for getting powgpu right.
authorChris Duncan <chris@zoso.dev>
Sat, 4 Jan 2025 09:17:00 +0000 (01:17 -0800)
committerChris Duncan <chris@zoso.dev>
Sat, 4 Jan 2025 09:17:00 +0000 (01:17 -0800)
perf/block.perf.js

index 0fa13373e0e0c9a042872dd51841b697ba4f2e00..0376b000c349178f1df5d959fe6fad4028d3cf64 100644 (file)
@@ -9,7 +9,7 @@ import { SendBlock } from '#dist/main.js'
 import 'nano-webgl-pow'
 
 await suite('Block performance', async () => {
-       const COUNT = 0x10
+       const COUNT = 0x1
 
        await test(`Customized PoW: Time to calculate proof-of-work for a send block ${COUNT} times`, async () => {
                const times = []
@@ -35,7 +35,7 @@ await suite('Block performance', async () => {
                console.log(`Geometric: ${geometric} ms`)
        })
 
-       await test(`Original PoW module: Time to calculate proof-of-work for a send block ${COUNT} times`, async () => {
+       await skip(`Original PoW module: Time to calculate proof-of-work for a send block ${COUNT} times`, async () => {
                const times = []
                for (let i = 0; i < COUNT; i++) {
                        const start = performance.now()