]> zoso.dev Git - libnemo.git/commitdiff
Skip original pow tests for now. Reduce test suite size.
authorChris Duncan <chris@zoso.dev>
Sun, 5 Jan 2025 09:39:05 +0000 (01:39 -0800)
committerChris Duncan <chris@zoso.dev>
Sun, 5 Jan 2025 09:39:05 +0000 (01:39 -0800)
perf/block.perf.js

index f5476f0a8e70f2b494fd9e2f67db945bb94c77bc..555eac638abafc61d8ff66b0ed91020064f24532 100644 (file)
@@ -9,7 +9,7 @@ import { PowGpu, SendBlock } from '#dist/main.js'
 import 'nano-webgl-pow'
 
 await suite('Block performance', async () => {
-       const COUNT = 0x200
+       const COUNT = 0x20
 
        await skip(`Customized PoW: Time to calculate proof-of-work for a block hash ${COUNT} times`, async () => {
                const times = []
@@ -59,7 +59,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()