Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,31 @@ go test ./... -v
cd e2e
make test
```

## Benchmarking

Test MPC performance with the integrated benchmark tool:

### Keygen Benchmark
```bash
# Test wallet creation
mpcium-cli benchmark keygen 10

# With config and output file
mpcium-cli benchmark --config config.yaml --output results.txt keygen 50
```

### Signing Benchmark
```bash
# Test ECDSA signing
mpcium-cli benchmark sign-ecdsa 100 wallet-id

# Test EdDSA signing
mpcium-cli benchmark sign-eddsa 100 wallet-id

# With custom batch size and output
mpcium-cli benchmark --config config.yaml --output signing-results.txt \
sign-ecdsa 1000 wallet-id --batch-size 20
```

Use `--prompt-password` for secure key password input and `--help` for all options.
54 changes: 54 additions & 0 deletions benchmark/result-ecdsa.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

===============================
EDDSA SIGNING BENCHMARK RESULTS SUMMARY
===============================
Timestamp: 2025-09-25T20:40:38+07:00
Operation Type: EdDSA Signing
Total benchmark time: 1m7.976697225s
Total batches sent: 125
Total requests sent: 1000
Successful completions: 1000
Failed operations: 0
Success rate: 100.00%
Error rate: 0.00%
Average operations per minute: 882.66
Average operation time: 28.657688821s
Median operation time: 28.655265336s

------------------------------
8 REQUEST ANALYSIS
------------------------------
Completed from first 8: 8/8
Fastest (first 8): 199.81656ms
Slowest (first 8): 590.329859ms


================================================================================


===============================
ECDSA SIGNING BENCHMARK RESULTS SUMMARY
===============================
Timestamp: 2025-09-25T20:44:54+07:00
Operation Type: ECDSA Signing
Total benchmark time: 3m45.068993117s
Total batches sent: 125
Total requests sent: 1000
Successful completions: 1000
Failed operations: 0
Success rate: 100.00%
Error rate: 0.00%
Average operations per minute: 266.58
Average operation time: 1m48.220676872s
Median operation time: 1m48.41344833s

------------------------------
8 REQUEST ANALYSIS
------------------------------
Completed from first 8: 8/8
Fastest (first 8): 434.642477ms
Slowest (first 8): 1.810709039s


================================================================================

54 changes: 54 additions & 0 deletions benchmark/result-eddsa.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

===============================
EDDSA SIGNING BENCHMARK RESULTS SUMMARY
===============================
Timestamp: 2025-09-25T20:52:35+07:00
Operation Type: EdDSA Signing
Total benchmark time: 1m5.271427885s
Total batches sent: 125
Total requests sent: 1000
Successful completions: 1000
Failed operations: 0
Success rate: 100.00%
Error rate: 0.00%
Average operations per minute: 919.24
Average operation time: 27.639836611s
Median operation time: 28.132345011s

------------------------------
8 REQUEST ANALYSIS
------------------------------
Completed from first 8: 8/8
Fastest (first 8): 164.535132ms
Slowest (first 8): 488.81932ms


================================================================================


===============================
EDDSA SIGNING BENCHMARK RESULTS SUMMARY
===============================
Timestamp: 2025-09-25T21:01:04+07:00
Operation Type: EdDSA Signing
Total benchmark time: 1m4.385020314s
Total batches sent: 125
Total requests sent: 1000
Successful completions: 999
Failed operations: 1
Success rate: 99.90%
Error rate: 0.10%
Average operations per minute: 930.96
Average operation time: 26.909120645s
Median operation time: 26.883269259s

------------------------------
8 REQUEST ANALYSIS
------------------------------
Completed from first 8: 8/8
Fastest (first 8): 169.161193ms
Slowest (first 8): 457.503189ms


================================================================================

Loading
Loading