Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

EIP-2565 Benchmarks and Library Options for Open-Ethereum #11714

Open
ineffectualproperty opened this issue May 15, 2020 · 1 comment
Open

EIP-2565 Benchmarks and Library Options for Open-Ethereum #11714

ineffectualproperty opened this issue May 15, 2020 · 1 comment

Comments

@ineffectualproperty
Copy link

EIP-2565 seeks to reduce the cost of the EIP-198 precompiles by a factor of 10. This is currently possible on Geth with no adverse effects due to the performance of the Geth precompile. Unfortunately, the EIP-198 precompile for Open-Ethereum is substantially slower. The following spreadsheet shows benchmarks for EIP-198 ModExp precompile with different rust libraries:
https://docs.google.com/spreadsheets/d/1zqGQwj2d0qGt3Gue8QZ4Lf-4KGt575SwGgx8Opfay2c/edit?usp=sharing

The only library that enables Open-Ethereum to reach (and exceed) the performance of Geth is the Rust bindings to GMP. Benchmarks and how to use the library for the EIP-198 test vectors can be found here: https://github.com/ineffectualproperty/EIP-2565

@vorot93 mentioned on the Ethereum 'all core devs' call that he would try building this library on windows-gnu. Instructions can be found here: https://docs.rs/gmp-mpfr-sys/1.2.2/gmp_mpfr_sys/#building-on-windows

@ineffectualproperty
Copy link
Author

Oh, and a link to the EIP: https://eips.ethereum.org/EIPS/eip-2565

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant