Skip to content

Commit 1768c80

Browse files
Merge branch 'main' into feat/zeromorph
2 parents d6e353e + 6b09953 commit 1768c80

File tree

2 files changed

+50
-50
lines changed

2 files changed

+50
-50
lines changed

Diff for: README.md

-50
Original file line numberDiff line numberDiff line change
@@ -157,56 +157,6 @@ To serve the documentation locally, first install both [mdbook](https://rust-lan
157157
make docs
158158
```
159159

160-
## 📊 Benchmarks
161-
162-
Benchmark results are hosted [here](https://lambdaclass.github.io/lambdaworks/bench).
163-
164-
These are the results of execution of the benchmarks for finite field arithmetic using the STARK field prime (p = 3618502788666131213697322783095070105623107215331596699973092056135872020481).
165-
166-
Differences of 3% are common for some measurements, so small differences are not statistically relevant.
167-
168-
ARM - M1
169-
170-
| Operation| N | Arkworks | lambdaworks |
171-
| -------- | --- | --------- | ----------- |
172-
| `mul` | 10k | 112 μs | 115 μs |
173-
| `add` | 1M | 8.5 ms | 7.0 ms |
174-
| `sub` | 1M | 7.53 ms | 7.12 ms |
175-
| `pow` | 10k | 11.2 ms | 12.4 ms |
176-
| `invert` | 10k | 30.0 ms | 27.2 ms |
177-
178-
x86 - AMD Ryzen 7 PRO
179-
180-
| Operation | N | Arkworks (ASM)* | lambdaworks |
181-
| -------- | --- | --------- | ----------- |
182-
| `mul` | 10k | 118.9 us | 95.7 us |
183-
| `add` | 1M | 6.8 ms | 5.4 ms |
184-
| `sub` | 1M | 6.6 ms | 5.2 ms |
185-
| `pow` | 10k | 10.6 ms | 9.4 ms |
186-
| `invert` | 10k | 34.2 ms | 35.74 ms |
187-
188-
*assembly feature was enabled manually for that bench, and is not activated by default when running criterion
189-
190-
To run them locally, you will need `cargo-criterion` and `cargo-flamegraph`. Install it with:
191-
192-
```bash
193-
cargo install cargo-criterion
194-
```
195-
196-
Run the complete benchmark suite with:
197-
198-
```bash
199-
make benchmarks
200-
```
201-
202-
Run a specific benchmark suite with `cargo`, for example to run the one for `field`:
203-
204-
```bash
205-
make benchmark BENCH=field
206-
```
207-
208-
You can check the generated HTML report in `target/criterion/reports/index.html`
209-
210160
## 📚 References
211161

212162
The following links, repos and projects have been important in the development of this library and we want to thank and acknowledge them.

Diff for: math/src/field/README.md

+50
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,53 @@ fn main() {
7171
```
7272

7373
As you can see all the operators are already implemented automatically for you.
74+
75+
## 📊 Benchmarks
76+
77+
Benchmark results are hosted [here](https://lambdaclass.github.io/lambdaworks/bench).
78+
79+
These are the results of execution of the benchmarks for finite field arithmetic using the STARK field prime (p = 3618502788666131213697322783095070105623107215331596699973092056135872020481).
80+
81+
Differences of 3% are common for some measurements, so small differences are not statistically relevant.
82+
83+
ARM - M1
84+
85+
| Operation| N | Arkworks | lambdaworks |
86+
| -------- | --- | --------- | ----------- |
87+
| `mul` | 10k | 112 μs | 115 μs |
88+
| `add` | 1M | 8.5 ms | 7.0 ms |
89+
| `sub` | 1M | 7.53 ms | 7.12 ms |
90+
| `pow` | 10k | 11.2 ms | 12.4 ms |
91+
| `invert` | 10k | 30.0 ms | 27.2 ms |
92+
93+
x86 - AMD Ryzen 7 PRO
94+
95+
| Operation | N | Arkworks (ASM)* | lambdaworks |
96+
| -------- | --- | --------- | ----------- |
97+
| `mul` | 10k | 118.9 us | 95.7 us |
98+
| `add` | 1M | 6.8 ms | 5.4 ms |
99+
| `sub` | 1M | 6.6 ms | 5.2 ms |
100+
| `pow` | 10k | 10.6 ms | 9.4 ms |
101+
| `invert` | 10k | 34.2 ms | 35.74 ms |
102+
103+
*assembly feature was enabled manually for that bench, and is not activated by default when running criterion
104+
105+
To run them locally, you will need `cargo-criterion` and `cargo-flamegraph`. Install it with:
106+
107+
```bash
108+
cargo install cargo-criterion
109+
```
110+
111+
Run the complete benchmark suite with:
112+
113+
```bash
114+
make benchmarks
115+
```
116+
117+
Run a specific benchmark suite with `cargo`, for example to run the one for `field`:
118+
119+
```bash
120+
make benchmark BENCH=field
121+
```
122+
123+
You can check the generated HTML report in `target/criterion/reports/index.html`

0 commit comments

Comments
 (0)