-
Notifications
You must be signed in to change notification settings - Fork 137
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
Benchmark by fuel usage #514
Comments
Not on a per-function basis, but it would be nice to get fuel usage in https://github.com/filecoin-project/ref-fvm/tree/master/testing/conformance/benches. |
There is a nice-ish way to do it by implementing an instrumentation gas profiler.
This would give us all information required to build very precise profiles of execution gas usage at the function level. These profiles can be integrated into existing tooling like flamegraphs or pprof. At least one syscall per tracepoint is required due to the lack of facilities to gather backtrace info from within WASM. |
@Kubuxu This is useful for the Filecoin Core Devs as maintainers of built-in actors, as well as for the dev community, so they can understand how their actors are performing in terms of gas, and can make informed decisions when optimising. Would you be able to write this up in a RFP format so we can consider a devgrant? |
I would love to know if there is an existing harness to run a benchmark of a given piece of code/function in the context of fuel usage (possibly with wall time timing as well).
The text was updated successfully, but these errors were encountered: