From: Chris Duncan Date: Fri, 28 Aug 2026 19:50:21 +0000 (-0700) Subject: Update speed test page to force test size of 1 which still processes MAX_VERIFY_BLOCK... X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f0f526a62e8cbbcfd061d2b020dda70f70f7b0b6;p=nano25519.git Update speed test page to force test size of 1 which still processes MAX_VERIFY_BLOCKS messages. --- diff --git a/test/index.html b/test/index.html index 89413a6..c2f0447 100644 --- a/test/index.html +++ b/test/index.html @@ -478,7 +478,17 @@ SPDX-License-Identifier: GPL-3.0-or-later } function startValidation(event) { + const size = document.getElementById('size') const api = document.getElementById('api')?.value + if (api === 'nano25519 with bulk block verification') { + size.value = nano25519.constants.MAX_VERIFY_BLOCKS + size.dataset.value = 1 + size.disabled = true + } else { + size.value = 100 + size.dataset.value = 0 + size.disabled = false + } const signature = document.getElementById('signature')?.value const blockHash = document.getElementById('blockHash')?.value const publicKey = document.getElementById('publicKey')?.value @@ -503,7 +513,7 @@ SPDX-License-Identifier: GPL-3.0-or-later const api = document.getElementById('api') const size = document.getElementById('size') const runs = document.getElementById('runs') - test(api.value, +size.value, +runs.value) + test(api.value, +size.dataset.value ? 1 : +size.value, +runs.value) .then(() => { event.target.disabled = false })