Skip to content

Commit

Permalink
docs(benchmark): update FRI benchmarks with new flags
Browse files Browse the repository at this point in the history
  • Loading branch information
ashjeong committed Oct 23, 2024
1 parent c5d6e07 commit 8fbe854
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions benchmark/fri/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

## CPU

```bash
```
Run on 13th Gen Intel(R) Core(TM) i9-13900K (32 X 5500 MHz CPU s)
Compiler: clang-15
CPU Caches:
L1 Data 48 KiB (x16)
L1 Instruction 32 KiB (x16)
Expand All @@ -17,32 +18,34 @@ CPU Caches:
L2 Unified 4096 KiB (x12)
```

Note: Run with `build --@rules_rust//:extra_rustc_flags="-Ctarget-cpu=native"` in your .bazelrc.user

```shell
bazel run --config opt --//:has_matplotlib //benchmark/fri:fri_benchmark -- -k 18 -k 19 -k 20 -k 21 -k 22 --batch_size 100 --input_num 4 --round_num 4 --log_blowup 2 --vendor plonky3 --check_results
GOMP_SPINCOUNT=0 bazel run --config maxopt --//:has_matplotlib //benchmark/fri:fri_benchmark -- -k 18 -k 19 -k 20 -k 21 -k 22 --batch_size 100 --input_num 4 --round_num 4 --log_blowup 2 --vendor plonky3 --check_results
```

## On Intel i9-13900K

| Exponent | Tachyon | Plonky3 |
| :------- | ----------- | ------- |
| 18 | **2.97871** | 3.73433 |
| 19 | **5.76021** | 7.22556 |
| 20 | **11.2744** | 14.3306 |
| 21 | **22.5167** | 28.8935 |
| 22 | **47.6511** | 58.5402 |
| 18 | **1.59124** | 2.36518 |
| 19 | **2.87866** | 4.65791 |
| 20 | **6.06711** | 9.5114 |
| 21 | **12.1177** | 19.0475 |
| 22 | **24.4839** | 38.4716 |

![image](/benchmark/fri/fri_benchmark_ubuntu_i9.png)

## On Mac M3 Pro

WARNING: On Mac M3, high degree tests are not feasible due to memory constraints.

| Exponent | Tachyon | Plonky3 |
| :------- | ------- | ------------ |
| 18 | 3.68509 | **1.39107** |
| 19 | 7.37079 | **2.76483** |
| 20 | 14.9081 | **5.62375** |
| 21 | 30.3153 | **11.8295** |
| 22 | 64.8022 | **25.4490** |
| Exponent | Tachyon | Plonky3 |
| :------- | ------- | ------- |
| 18 | 3.96588 | 2.92354 |
| 19 | 7.95329 | 5.89079 |
| 20 | 15.8636 | 11.8225 |
| 21 | 46.1967 | 34.4965 |
| 22 | 182.084 | 124.7 |

![image](/benchmark/fri/fri_benchmark_mac_m3.png)
Binary file modified benchmark/fri/fri_benchmark_mac_m3.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/fri/fri_benchmark_ubuntu_i9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8fbe854

Please sign in to comment.