Skip to content

Commit 670b59a

Browse files
authored
Merge pull request #105 from fystack/benchmark-command
Benchmark command
2 parents 173438e + 1d07ffb commit 670b59a

5 files changed

Lines changed: 1054 additions & 0 deletions

File tree

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,3 +423,31 @@ go test ./... -v
423423
cd e2e
424424
make test
425425
```
426+
427+
## Benchmarking
428+
429+
Test MPC performance with the integrated benchmark tool:
430+
431+
### Keygen Benchmark
432+
```bash
433+
# Test wallet creation
434+
mpcium-cli benchmark keygen 10
435+
436+
# With config and output file
437+
mpcium-cli benchmark --config config.yaml --output results.txt keygen 50
438+
```
439+
440+
### Signing Benchmark
441+
```bash
442+
# Test ECDSA signing
443+
mpcium-cli benchmark sign-ecdsa 100 wallet-id
444+
445+
# Test EdDSA signing
446+
mpcium-cli benchmark sign-eddsa 100 wallet-id
447+
448+
# With custom batch size and output
449+
mpcium-cli benchmark --config config.yaml --output signing-results.txt \
450+
sign-ecdsa 1000 wallet-id --batch-size 20
451+
```
452+
453+
Use `--prompt-password` for secure key password input and `--help` for all options.

benchmark/result-ecdsa.txt

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
===============================
3+
EDDSA SIGNING BENCHMARK RESULTS SUMMARY
4+
===============================
5+
Timestamp: 2025-09-25T20:40:38+07:00
6+
Operation Type: EdDSA Signing
7+
Total benchmark time: 1m7.976697225s
8+
Total batches sent: 125
9+
Total requests sent: 1000
10+
Successful completions: 1000
11+
Failed operations: 0
12+
Success rate: 100.00%
13+
Error rate: 0.00%
14+
Average operations per minute: 882.66
15+
Average operation time: 28.657688821s
16+
Median operation time: 28.655265336s
17+
18+
------------------------------
19+
8 REQUEST ANALYSIS
20+
------------------------------
21+
Completed from first 8: 8/8
22+
Fastest (first 8): 199.81656ms
23+
Slowest (first 8): 590.329859ms
24+
25+
26+
================================================================================
27+
28+
29+
===============================
30+
ECDSA SIGNING BENCHMARK RESULTS SUMMARY
31+
===============================
32+
Timestamp: 2025-09-25T20:44:54+07:00
33+
Operation Type: ECDSA Signing
34+
Total benchmark time: 3m45.068993117s
35+
Total batches sent: 125
36+
Total requests sent: 1000
37+
Successful completions: 1000
38+
Failed operations: 0
39+
Success rate: 100.00%
40+
Error rate: 0.00%
41+
Average operations per minute: 266.58
42+
Average operation time: 1m48.220676872s
43+
Median operation time: 1m48.41344833s
44+
45+
------------------------------
46+
8 REQUEST ANALYSIS
47+
------------------------------
48+
Completed from first 8: 8/8
49+
Fastest (first 8): 434.642477ms
50+
Slowest (first 8): 1.810709039s
51+
52+
53+
================================================================================
54+

benchmark/result-eddsa.txt

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
===============================
3+
EDDSA SIGNING BENCHMARK RESULTS SUMMARY
4+
===============================
5+
Timestamp: 2025-09-25T20:52:35+07:00
6+
Operation Type: EdDSA Signing
7+
Total benchmark time: 1m5.271427885s
8+
Total batches sent: 125
9+
Total requests sent: 1000
10+
Successful completions: 1000
11+
Failed operations: 0
12+
Success rate: 100.00%
13+
Error rate: 0.00%
14+
Average operations per minute: 919.24
15+
Average operation time: 27.639836611s
16+
Median operation time: 28.132345011s
17+
18+
------------------------------
19+
8 REQUEST ANALYSIS
20+
------------------------------
21+
Completed from first 8: 8/8
22+
Fastest (first 8): 164.535132ms
23+
Slowest (first 8): 488.81932ms
24+
25+
26+
================================================================================
27+
28+
29+
===============================
30+
EDDSA SIGNING BENCHMARK RESULTS SUMMARY
31+
===============================
32+
Timestamp: 2025-09-25T21:01:04+07:00
33+
Operation Type: EdDSA Signing
34+
Total benchmark time: 1m4.385020314s
35+
Total batches sent: 125
36+
Total requests sent: 1000
37+
Successful completions: 999
38+
Failed operations: 1
39+
Success rate: 99.90%
40+
Error rate: 0.10%
41+
Average operations per minute: 930.96
42+
Average operation time: 26.909120645s
43+
Median operation time: 26.883269259s
44+
45+
------------------------------
46+
8 REQUEST ANALYSIS
47+
------------------------------
48+
Completed from first 8: 8/8
49+
Fastest (first 8): 169.161193ms
50+
Slowest (first 8): 457.503189ms
51+
52+
53+
================================================================================
54+

0 commit comments

Comments
 (0)