Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
ecdsa vs ed25519
(version: 1)
Comparing performance of:
ecdsa vs ed25519
Created:
10 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
async function globalMeasureThatScriptPrepareFunction() { // ECDSA setup const ecdsaSignatureAlgorithm = { name: 'ECDSA', hash: { name: 'SHA-512' }}; const { privateKey: ecdsaPrivateKey } = await crypto.subtle.generateKey({ name: 'ECDSA', namedCurve: 'P-384'}, true, ['sign', 'verify']); // c setup const ed25519SignatureAlgorithm = { name: 'ed25519', hash: { name: 'SHA-512' }}; var { privateKey: ed25519PrivateKey } = await crypto.subtle.generateKey({ name: 'ed25519' }, true, ['sign', 'verify']); var data = new TextEncoder().encode("X".repeat(200)); window.ecdsa = [ecdsaSignatureAlgorithm, ecdsaPrivateKey, data]; window.ed25519 = [ed25519SignatureAlgorithm, ed25519PrivateKey, data]; }
Tests:
ecdsa
[Async/Deferred]
crypto.subtle.sign(...window.ecdsa).then(() => deferred.resolve())
ed25519
[Async/Deferred]
crypto.subtle.sign(...window.ed25519).then(() => deferred.resolve())
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
ecdsa
ed25519
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Browser/OS:
Firefox 147 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
ecdsa
711.7 Ops/sec
ed25519
1097.2 Ops/sec
Related benchmarks:
Test UUID with optimizations
Test UUID with more optimizations
UUID Generation compare
web-crypto
uuid lib v4 vs math random vs crypto getRandomValues vs crypto randomUUID
npm:uuid.v4() vs Math.random() vs crypto.getRandomValues() vs crypto.randomUUID()
object-hash SHA-1 encoding 2 excludeKeys hasOwnProperty fix
web-crypto RSA
web-crypto RSA-PSS
Comments
Confirm delete:
Do you really want to delete benchmark?