Crates.io | zkp-primefield |
lib.rs | zkp-primefield |
version | 0.2.0 |
source | src |
created_at | 2019-10-07 04:21:33.499035 |
updated_at | 2020-10-19 21:26:56.973418 |
description | A 251-bit prime field suitable for FFTs. |
homepage | |
repository | https://github.com/0xProject/starkcrypto/tree/master/algebra/primefield |
max_upload_size | |
id | 170500 |
size | 261,865 |
A 251-bit prime field suitable for FFTs.
const fn
over procedural macros.For optimization, there are a few different scenarios:
Note: The modulus is always assumed to be 256bit or less.
Checkout master branch:
cargo bench --bench benchmark -- --save-baseline master
cargo bench --bench benchmark -- --baseline master
open target/criterion/report/index.html
Benchmarking using Mac OS' instrumentation. For this we need the cargo-instruments
plugin for Cargo.
cargo install cargo-instruments
You can then run tests under profiling. It is recommended to filter for a specific test.
cargo instruments --release --bench benchmark --open [test name]
instruments -t "Time Profiler" target/release/deps/benchmark-c7230d017f7da1a3 --bench cache