Skip to content

Commit

Permalink
docs(benchmark): update the result of the poseidon benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
chokobole committed Jun 18, 2024
1 parent 36ad9ea commit 7cc8138
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 13 deletions.
Binary file added benchmark/poseidon/Poseidon Benchmark MacM3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified benchmark/poseidon/Poseidon Benchmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 39 additions & 13 deletions benchmark/poseidon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,50 @@ CPU Caches:
L1 Instruction 32 KiB (x16)
L2 Unified 2048 KiB (x16)
L3 Unified 36864 KiB (x1)
Run on Apple M3 Pro (12 X 4050 MHz)
CPU Caches:
L1 Data 64 KiB (x12)
L1 Instruction 128 KiB (x12)
L2 Unified 4096 KiB (x12)
```

```shell
bazel run -c opt --//:has_openmp --//:has_rtti --//:has_matplotlib //benchmark/poseidon:poseidon_benchmark
```

| Repetition | Tachyon | Arkworks |
| :--------: | -------- | ------------- |
| 0 | 0.000124 | **0.000114** |
| 1 | 0.000125 | **0.00011** |
| 2 | 0.000124 | **0.00011** |
| 3 | 0.000124 | **0.000106** |
| 4 | 0.000124 | **0.00011** |
| 5 | 0.000124 | **0.000109** |
| 6 | 0.000125 | **0.000108** |
| 7 | 0.000123 | **0.00011** |
| 8 | 0.000123 | **0.000109** |
| 9 | 0.000124 | **0.000106** |
| avg | 0.000124 | **0.0001092** |
## On Intel i9-13900K

| Repetition | Tachyon | Arkworks |
| :--------: | ------------ | --------- |
| 0 | **9.9e-05** | 0.000122 |
| 1 | **9.9e-05** | 0.000119 |
| 2 | **9.9e-05** | 0.000117 |
| 3 | **9.9e-05** | 0.000119 |
| 4 | **9.9e-05** | 0.000118 |
| 5 | **0.000101** | 0.000116 |
| 6 | **9.8e-05** | 0.000118 |
| 7 | **9.9e-05** | 0.000118 |
| 8 | **9.9e-05** | 0.000118 |
| 9 | **9.9e-05** | 0.000118 |
| avg | **9.91e-05** | 0.0001183 |

![image](/benchmark/poseidon/Poseidon%20Benchmark.png)

## On Mac M3 Pro

| Repetition | Tachyon | Arkworks |
| :--------: | ------------- | --------- |
| 0 | **0.000112** | 0.000131 |
| 1 | **0.000118** | 0.000125 |
| 2 | **0.000111** | 0.000121 |
| 3 | **0.000103** | 0.000121 |
| 4 | **0.000104** | 0.00012 |
| 5 | **0.000103** | 0.000117 |
| 6 | **0.000103** | 0.000118 |
| 7 | **0.000104** | 0.000117 |
| 8 | **0.0001** | 0.000118 |
| 9 | **0.000113** | 0.000118 |
| avg | **0.0001071** | 0.0001206 |

![image](/benchmark/poseidon/Poseidon%20Benchmark%20MacM3.png)

0 comments on commit 7cc8138

Please sign in to comment.