ONLY_BENCH for bn384_test

dev
MITSUNARI Shigeo 6 years ago
parent b7c2d17e99
commit d0740dde87
  1. 6
      test/bn384_test.cpp

@ -38,6 +38,12 @@ void testCurve(const mcl::CurveParam& cp)
mapToG1(P, 1);
mapToG2(Q, 1);
GT e1, e2;
#ifdef ONLY_BENCH
cybozu::CpuClock clk;
for (int i = 0; i < 10000; i++) { clk.begin(); pairing(e1, P, Q); clk.end(); }
clk.put();
return;
#endif
pairing(e1, P, Q);
cybozu::XorShift rg;
mpz_class a, b;

Loading…
Cancel
Save