-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compare air_public_inputs against python vm + Fix how public memory i…
…s built (#1391) * Remove cairo1 & cairo2 folders in `clean` makefile target * Make public inputs similar to python output * Rename field * Fix finalize method * Fix get_public_memory logic (minus error handling) * Add error handling * Add comparison script * Fix tests * Add air_public_input argument to comparison script * Add air public input comparison * Fix finalize segments of output builtin * Fix * Add makefile targets * Add new targets to phony * Clean public input files * Fix compilation in makefile * Add changelog * fmt * Rename makefile targets * Compare air_public_inputs in CI (#1394) * Fix typo * generate and compare air_public inputs in ci * fix * Fix syntax * fix * fix * Revert "Fix typo" This reverts commit 532dfca. * Fix workflow * Add .air_public_input to .gitignore
- Loading branch information
Showing
11 changed files
with
125 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
**/*.sierra | ||
**/*.trace | ||
**/*.memory | ||
**/*.air_public_input | ||
**/*.swp | ||
bench/results | ||
.python-version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import json | ||
|
||
|
||
filename1 = sys.argv[1] | ||
filename2 = sys.argv[2] | ||
|
||
with open(filename1, 'r') as cairo_lang_input_file, open(filename2, 'r') as cairo_vm_input_file: | ||
cairo_lang_input = json.load(cairo_lang_input_file) | ||
cairo_vm_input = json.load(cairo_vm_input_file) | ||
|
||
if cairo_lang_input == cairo_vm_input: | ||
|
||
print(f"Comparison succesful for {filename1} vs {filename2}") | ||
else: | ||
print(f"Comparison unsuccesful for {filename1} vs {filename2}") | ||
exit(1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27bcbeb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
1.30
.add_u64_with_felt/3
2
ns/iter (± 0
)1
ns/iter (± 0
)2
add_u64_with_felt/4
2
ns/iter (± 0
)1
ns/iter (± 0
)2
add_u64_with_felt/6
3
ns/iter (± 0
)2
ns/iter (± 0
)1.50
add_u64_with_felt/7
3
ns/iter (± 0
)2
ns/iter (± 0
)1.50
build runner
1771
ns/iter (± 58
)1297
ns/iter (± 1
)1.37
initialize
68966
ns/iter (± 2348
)53026
ns/iter (± 994
)1.30
parse program
25840874
ns/iter (± 1254546
)18451404
ns/iter (± 780555
)1.40
This comment was automatically generated by workflow using github-action-benchmark.
CC: @unbalancedparentheses