Code Monkey home page Code Monkey logo

ed25519-playground's Introduction

ed25519-playground

This project is for benchmarking and comparing various ed25519 implementations.

So far the packages it compares and benchmarks is:

  • ed25519
  • @noble/ed25519
  • tweetnacl

Installing

git clone https://github.com/agelito/ed25519-playground.git && cd ed25519-playground
npm i

Running

This will run the benchmarks and print the results:

npm start

Testing

This will run the unit tests which mainly ensures the different implementations can verify message signatures created by other implementations.

npm run test

Performance Data

Here I'll list any know performance data I've collected so far.

2013-ish ASUS Laptop

Propery Value
OS Arch Linux x86_64
Kernel 5.19.4-arch1-1
CPU Intel i7-3610QM (8) @ 3.30Ghz
Memory 15,954 MiB (16GB)
Node v14.15.1

Benchmark Results

Package Function ops/sec samples deviation
ed25519 signMessage 20,611 92 ±0.26%
ed25519 verifySignature 6,788 92 ±0.64%
@noble/ed25519 signMessage 1,349 89 ±2.05%
@noble/ed25519 verifySignature 285 88 ±0.48%
tweetnacl signMessage 179 51 ±4.67%
tweetnacl verifySignature 88.81 47 ±4.01%
Raw Output
ed25519#signMessage x 20,611 ops/sec ±0.26% (92 runs sampled)
noble_ed25519#signMessage x 1,349 ops/sec ±2.05% (89 runs sampled)
tweetnacl#signMessage x 179 ops/sec ±4.67% (51 runs sampled)
ed25519#verifySignature x 6,788 ops/sec ±0.64% (92 runs sampled)
noble_ed25519#verifySignature x 285 ops/sec ±0.48% (88 runs sampled)
tweetnacl#verifySignature x 88.81 ops/sec ±4.01% (47 runs sampled)
┌───────────────────────────────┬────────────────────┬─────────┐
│            (index)            │         hz         │ samples │
├───────────────────────────────┼────────────────────┼─────────┤
│      ed25519#signMessage      │ 20610.651053945152 │   92    │
│   noble_ed25519#signMessage   │ 1349.1529799355142 │   89    │
│     tweetnacl#signMessage     │ 179.48662828702047 │   51    │
│    ed25519#verifySignature    │ 6788.212684341719  │   92    │
│ noble_ed25519#verifySignature │ 285.27586801774976 │   88    │
│   tweetnacl#verifySignature   │ 88.80920114852132  │   47    │
└───────────────────────────────┴────────────────────┴─────────┘

ed25519-playground's People

Contributors

agelito avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.