From d0740dde87e37f253ea4e16103567982d869ace8 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 29 Aug 2018 15:53:55 +0900 Subject: [PATCH] ONLY_BENCH for bn384_test --- test/bn384_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/bn384_test.cpp b/test/bn384_test.cpp index 84b3f19..3874938 100644 --- a/test/bn384_test.cpp +++ b/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;