Skip to content

Commit

Permalink
Add arkworks-asm
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Aug 1, 2023
1 parent 8b674e4 commit 83764f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/Basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
bls_lib: [zkcrypto, arkworks]
bls_lib: [zkcrypto, arkworks, arkworks-asm]
steps:
- name: Checkout sources
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ crate-type = ["cdylib", "rlib"]
[features]
js = ["hex", "wasm-bindgen"]
arkworks = ["ark-bls12-381", "ark-ec", "ark-ff", "ark-serialize", "sha2_v10"]
arkworks-asm = ["arkworks", "ark-ff/asm"]
zkcrypto = ["pairing", "bls12_381", "sha2_v9"]
default = ["zkcrypto"]

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ cargo +nightly bench bench_ --no-default-features --features zkcrypto

# Using arkworks
cargo +nightly bench bench_ --no-default-features --features arkworks

# Using arkworks(+asm) (see https://hackmd.io/@gnark/eccbench)
cargo +nightly bench bench_ --no-default-features --features arkworks-asm
```

Results on an Apple M1 Pro with Rust 1.72.0-nightly:
Expand All @@ -115,6 +118,7 @@ Results on an Apple M1 Pro with Rust 1.72.0-nightly:
| ------------------ | --------------- | -------- |
| zkcrypto | 1.956 ms | 1.489 ms |
| arkworks | 1.714 ms | 1.425 ms |
| arkworks(+asm) | 1.712 ms | 1.424 ms |

## License

Expand Down

0 comments on commit 83764f3

Please sign in to comment.