-
Notifications
You must be signed in to change notification settings - Fork 48
Update documentation #1254
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
base: main
Are you sure you want to change the base?
Update documentation #1254
Conversation
Benchmark results Main vs HEAD.Base
Head
Base
Head
Base
Head
Base
Head
Base
Head
Base
Head
|
Benchmarking resultsBenchmark for program
|
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
11.375 ± 0.063 | 11.291 | 11.502 | 2.31 ± 0.02 |
cairo-native (embedded AOT) |
4.935 ± 0.021 | 4.899 | 4.972 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
4.999 ± 0.036 | 4.957 | 5.065 | 1.01 ± 0.01 |
Benchmark for program dict_snapshot
Open benchmarks
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
789.4 ± 6.4 | 783.8 | 803.9 | 1.00 |
cairo-native (embedded AOT) |
4836.2 ± 36.9 | 4773.7 | 4919.2 | 6.13 ± 0.07 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
4925.8 ± 26.4 | 4880.8 | 4956.6 | 6.24 ± 0.06 |
Benchmark for program factorial_2M
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.253 ± 0.061 | 5.189 | 5.398 | 1.00 ± 0.01 |
cairo-native (embedded AOT) |
5.246 ± 0.034 | 5.198 | 5.303 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
5.270 ± 0.020 | 5.231 | 5.296 | 1.00 ± 0.01 |
Benchmark for program fib_2M
Open benchmarks
Command | Mean [s] | Min [s] | Max [s] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
5.087 ± 0.030 | 5.061 | 5.164 | 1.06 ± 0.02 |
cairo-native (embedded AOT) |
4.816 ± 0.067 | 4.727 | 4.914 | 1.00 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
4.846 ± 0.046 | 4.773 | 4.928 | 1.01 ± 0.02 |
Benchmark for program linear_search
Open benchmarks
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
806.8 ± 4.3 | 802.3 | 816.3 | 1.00 |
cairo-native (embedded AOT) |
4888.1 ± 43.4 | 4848.0 | 4984.5 | 6.06 ± 0.06 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
5079.7 ± 34.5 | 5043.3 | 5155.8 | 6.30 ± 0.05 |
Benchmark for program logistic_map
Open benchmarks
Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
---|---|---|---|---|
Cairo-vm (Rust, Cairo 1) |
534.7 ± 6.8 | 527.3 | 550.5 | 1.00 |
cairo-native (embedded AOT) |
4926.5 ± 32.9 | 4876.4 | 4990.6 | 9.21 ± 0.13 |
cairo-native (embedded JIT using LLVM's ORC Engine) |
5101.3 ± 51.7 | 5040.2 | 5189.8 | 9.54 ± 0.16 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1254 +/- ##
=======================================
Coverage ? 80.21%
=======================================
Files ? 112
Lines ? 29880
Branches ? 0
=======================================
Hits ? 23967
Misses ? 5913
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Nice work. I left some minor comments. Also, please update the PR description
README.md
Outdated
Example: `echo '1' | cairo-native-run 'program.cairo' 'program::program::main' --inputs - --outputs -` | ||
Example: `cairo-native-run --available-gas 5000 './programs/program.cairo'` |
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.
Does this example file exist? (./programs/program.cairo
)
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.
Nope, it was just as an example. Changed it to one that exists here 5b18317
cairo-tests/src/integer_test.cairo
Outdated
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.
Why was this file removed?
src/compiler.rs
Outdated
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.
I feel like this changes are unrelated, and should be moved to another pull request.
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.
The changes were undone in c42454d
docs/execution_walkthrough.md
Outdated
When using the JIT it'll be automatically linked (if compiled with support for | ||
it, which is enabled by default). If using the AOT, the | ||
`CAIRO_NATIVE_RUNTIME_LIBRARY` environment variable will have to be modified to | ||
point to the `libcairo_native_runtime.a` file, which is built and placed in said | ||
folder by `make build`. |
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.
This paragraph is outdated. We no longer have a runtime library. This PR #1051 may have more details on how the new runtime mechanism works.
docs/execution_walkthrough.md
Outdated
The syscall handler is similar to the runtime in the sense that we have | ||
C-compatible functions called from MLIR, but it's different in that they're | ||
built into Cairo Native itself rather than an external library, and that their | ||
implementation is user-dependent. |
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.
Idem. We don't have an external library for the runtime anymore.
Also, there are some things that could be done, but I'm not sure that this PR is the right place:
|
Tidy up and update documentation
Checklist