Performance & Optimization
Introduction
Signature Algorithm Performance
Benchmark Results
// Approximate timings on modern hardware (2023-era CPU)
Operation secp256k1 ed25519 Winner
─────────────────────────────────────────────────────────
Key generation ~100 μs ~50 μs ed25519
Public key derivation ~100 μs ~50 μs ed25519
Signing ~200 μs ~50 μs ed25519 (4x faster)
Verification ~500 μs ~100 μs ed25519 (5x faster)
Batch verification N/A Available ed25519
─────────────────────────────────────────────────────────
Public key size 33 bytes 33 bytes Tie
Signature size ~71 bytes 64 bytes ed25519Why Ed25519 is Faster
Verification is the Bottleneck
When to Use Each Algorithm
Hash Function Performance
Benchmark Results
Why SHA-512-Half?
Hashing Performance Impact
Caching Strategies
Public Key Caching
Signature Verification Caching
Hash Caching in SHAMap
Batch Operations
Batch Signature Verification (Ed25519 Only)
Batch Hashing
Parallel Processing
Multi-threaded Verification
Async Processing
Memory Optimization
Signature Size
Public Key Storage
Performance Measurement
Profiling
Bottleneck Identification
Optimization Guidelines
✅ DO:
❌ DON'T:
Real-World Performance
XRPL Mainnet Statistics
Summary
Last updated

