Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Poseidon benchmark #947

Merged
merged 48 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a2a45aa
Add poseidon builtin (#875)
fmoletta Mar 9, 2023
7fb6265
Use `starknet-crypto` for poseidon (#890)
xJonathanLEI Mar 10, 2023
3366594
ec_op changes 0.11 release (#876)
Jrigada Mar 10, 2023
fa673d6
[WIP] Update keccak-builtin (#873)
fmoletta Mar 10, 2023
110395c
Update layouts to cairo-lang 0.11 release (#874)
Jrigada Mar 10, 2023
637b733
Add new keccak hints + update import paths (#883)
fmoletta Mar 15, 2023
673afeb
Merge branch 'main' of github.com:lambdaclass/cairo-rs into 0.11
fmoletta Mar 15, 2023
4d96d82
Remove typeguard pin
fmoletta Mar 21, 2023
3d2dc35
Merge branch 'main' of github.com:lambdaclass/cairo-rs into 0.11
fmoletta Mar 21, 2023
094c941
Run cairo-format
fmoletta Mar 21, 2023
9e4f939
Fix program ruined by formatter
fmoletta Mar 21, 2023
c3def44
Fix wasm compatibility for newer files
fmoletta Mar 21, 2023
301b2b1
Fix wasm compatibility for newer files
fmoletta Mar 21, 2023
2e08c10
Merge branch 'main' into 0.11
fmoletta Mar 21, 2023
1c034ff
Fix wrong version
fmoletta Mar 21, 2023
76d23ec
Fix syntax
fmoletta Mar 21, 2023
192debf
Fix wasm compatibility
fmoletta Mar 21, 2023
a42d948
Tempfix for iai workflow
fmoletta Mar 21, 2023
5a4bc13
Fix workflow
fmoletta Mar 21, 2023
30e39b4
Use the same layout for memory trace proof mode comparison
fmoletta Mar 21, 2023
d180881
Merge branch 'main' into 0.11
fmoletta Mar 27, 2023
455a1e8
Add dynamic layout (#879)
fmoletta Mar 29, 2023
b8f9cf0
Merge remote-tracking branch 'origin/main' into 0.11
Oppen Mar 30, 2023
4993f9d
Fix workflows
Oppen Mar 30, 2023
3c08409
Merge branch 'main' into 0.11
fmoletta Mar 31, 2023
f2845f1
Update Cargo.lock
fmoletta Mar 31, 2023
8e3db85
Remove comment
fmoletta Mar 31, 2023
a9ad91e
[0.11] Add `SegmentArenaBuiltinRunner` (#913)
fmoletta Apr 3, 2023
0921e78
Add suggested changes
fmoletta Apr 3, 2023
47cb406
Merge branch '0.11' of github.com:lambdaclass/cairo-rs into 0.11
fmoletta Apr 3, 2023
91970f2
Fix overriden run_benchmarks script
fmoletta Apr 3, 2023
554f72a
Add `program_segment_size` argument to `verify_secure_runner` & `run_…
fmoletta Apr 3, 2023
b722cbe
Fix typo
fmoletta Apr 3, 2023
ac3e9b4
Add misc tests
fmoletta Apr 3, 2023
70b95ed
Add misc tests
fmoletta Apr 3, 2023
a41c833
Add misc test
fmoletta Apr 3, 2023
2875509
Add misc test
fmoletta Apr 3, 2023
1573457
Add misc test
fmoletta Apr 3, 2023
851dad7
Expand misc test
fmoletta Apr 3, 2023
d7c13c4
Add wasm attr + misc test
fmoletta Apr 3, 2023
8e598e8
Add poseidon benchmarks
fmoletta Apr 3, 2023
d53f678
Run cairo-format
fmoletta Apr 3, 2023
f1b277d
Remove unused import
fmoletta Apr 3, 2023
2bb67ed
Merge branch 'main' of github.com:lambdaclass/cairo-rs into poseidon-…
fmoletta Apr 4, 2023
7dc8a4f
Add unmerged
fmoletta Apr 4, 2023
9c6f6a7
Add bench to iai benchmarks
fmoletta Apr 4, 2023
8ee05c8
Merge branch 'main' into poseidon-benchmark
fmoletta Apr 10, 2023
f04ad38
fmt
fmoletta Apr 10, 2023
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
136 changes: 101 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions bench/criterion_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const BENCH_NAMES: &[&str] = &[
"operations_with_data_structures_benchmarks",
"uint256_integration_benchmark",
"set_integration_benchmark",
"poseidon_integration_benchmark",
Oppen marked this conversation as resolved.
Show resolved Hide resolved
"pedersen",
];
const BENCH_PATH: &str = "cairo_programs/benchmarks/";
Expand Down
2 changes: 2 additions & 0 deletions bench/iai_benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ iai_bench_expand_prog! {math_cmp_and_pow_integration_benchmark}
iai_bench_expand_prog! {operations_with_data_structures_benchmarks}
iai_bench_expand_prog! {uint256_integration_benchmark}
iai_bench_expand_prog! {set_integration_benchmark}
iai_bench_expand_prog! {poseidon_integration_benchmark}
iai_bench_expand_prog! {pedersen}

main!(
Expand All @@ -133,5 +134,6 @@ main!(
operations_with_data_structures_benchmarks,
uint256_integration_benchmark,
set_integration_benchmark,
poseidon_integration_benchmark
pedersen,
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from poseidon_multirun import run_test
from starkware.cairo.common.cairo_builtins import PoseidonBuiltin

func main{poseidon_ptr: PoseidonBuiltin*}() -> () {
// For each test, 3 poseidon hashes are computed (single, 2 values, and 3 values)
run_test(10000);
return ();
}
Loading