From: Chris Duncan Date: Tue, 14 Apr 2026 07:16:20 +0000 (-0700) Subject: Explain how speed is calculated. X-Git-Tag: v1.0.2~5 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=cb004df9f8e1810124305f109feac5ec85060102;p=nano25519.git Explain how speed is calculated. --- diff --git a/index.html b/index.html index b23fe11..8439d4f 100644 --- a/index.html +++ b/index.html @@ -462,7 +462,25 @@ SPDX-License-Identifier: GPL-3.0-or-later

nano25519

https://www.npmjs.com/package/nano25519

Speed test for nano25519

-

Times below are in milliseconds and are summarized by various averaging methods.

+

This test compares different Ed25519 implementations by running a sequence of functions. A random 32-byte value is generated for a message and private key, and then the test uses the values to derive a public key, sign the message, and verify the signature.

+ +

The final score is displayed as "sequences-per-second" and is calculated as follows:

+
    +
  1. For each test run: +
      +
    1. Collect all the derive-sign-verify sequence timings for the test run.
    2. +
    3. Truncate the results by eliminating the fastest 10% and slowest 10% of sequence timings.
    4. +
    5. Calculate the arithmetic mean (average) of the truncated results.
    6. +
    +
  2. +
  3. Collect the truncated arithmetic means from all test runs.
  4. +
  5. Truncate the results by eliminating the fastest 10% and slowest 10% of test runs.
  6. +
  7. Calculate the harmonic mean of the truncated results.
  8. +