herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
458 stars 157 forks source link

performance of bls12-381 #65

Closed huyuguang closed 5 years ago

huyuguang commented 5 years ago

I just tested the bls12-381. To my surprise, the bls12-381 is much slower than bn254. I tested 1000 times ecc_mul, bn254 use 90ms, and bls12-381 use 900ms. Why? Maybe I made some mistakes(some optimize compile flags)?

huyuguang commented 5 years ago

sorry, I made a mistake. Should be 90 vs 380.

herumi commented 5 years ago

What CPU did you use? The rate of bls12-381 to bn254 is about less than 3. benchmark