Skip to content

XuJiandong/ckb-rust-algorithm-benchmarks

Repository files navigation

CKB Rust Algorithm Benchmarks

This project aims to provide benchmarks for the implementation of cryptography algorithms in Rust on CKB. It now includes:

  • p256(secp256r1)
  • k256(secp256k1)
  • rsa(2048 bits)
  • ed25519
  • schnorr

Build and Run

capsule build --release

Run tests:

make ci

Benchmark Matrix

Test with ckb-debugger 0.115.0-rc2 and capsule 0.10.4:

Curve Cycles Binary Size Additional Information
p256 3.4M Cycles 68K Bytes N/A
k256 2.8M Cycles 84K Bytes No precomputed table
RSA-2048 5.1M Cycles 82K Bytes N/A
ed25519 1.9M Cycles 49K Bytes N/A
schnorr 2.7M Cycles 76K Bytes N/A

About

This project aims to provide benchmarks for the implementation of cryptography algorithms in Rust on CKB.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published