udpate benchmark of arm

dev
MITSUNARI Shigeo 8 years ago
parent b308547c8b
commit e187bf8f5a
  1. 2
      readme.md
  2. 7
      test/bn_test.cpp

@ -98,7 +98,7 @@ A benchmark of a BN curve over the 254-bit prime.
software | x64| x86| arm|arm64(msec)
---------------------------------------------------------|------|-----|----|-----
[ate-pairing](https://github.com/herumi/ate-pairing) | 0.21 | - | - | -
mcl | 0.35 | 2.0 | 31 | 4.5
mcl | 0.35 | 2.0 | 27 | 4.5
[TEPLA](http://www.cipher.risk.tsukuba.ac.jp/tepla/) | 1.76 | 3.7 | 37 | 17.9
[RELIC](https://github.com/relic-toolkit/relic) PRIME=254| 1.31 | 3.5 | 36 | -
[MIRACL](https://github.com/miracl/MIRACL) ake12bnx | 4.2 | - | 78 | -

@ -145,8 +145,13 @@ void test(const TestSet& ts)
Fp12 e = e1, ea;
G1 Pa;
G2 Qa;
#if CYBOZU_OS_BIT == 64
const int count = 1000;
#else
const int count = 100;
#endif
mpz_class a("0x18b48dddfb2f81cc829b4b9acd393ccb1e90909aabe126bcdbe6a96438eaf313");
for (int i = 0; i < 1000; i++) {
for (int i = 0; i < count; i++) {
Fp12::pow(ea, e, a);
G1::mul(Pa, P, a);
G2::mul(Qa, Q, a);

Loading…
Cancel
Save