From 8919b73aa9bad85e431d4485378875454e757322 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 29 Aug 2018 14:01:30 +0900 Subject: [PATCH] add Fp2Dbl::mul/sqrPre benchmark --- test/bench.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/bench.hpp b/test/bench.hpp index baeefe4..9678d3c 100644 --- a/test/bench.hpp +++ b/test/bench.hpp @@ -72,6 +72,9 @@ void testBench(const G1& P, const G2& Q) CYBOZU_BENCH_C("FpDbl::mulPre ", C3, FpDbl::mulPre, d0, x, y); CYBOZU_BENCH_C("FpDbl::sqrPre ", C3, FpDbl::sqrPre, d1, x); CYBOZU_BENCH_C("FpDbl::mod ", C3, FpDbl::mod, x, d0); + Fp2Dbl D; + CYBOZU_BENCH_C("Fp2Dbl::mulPre ", C3, Fp2Dbl::mulPre, D, xx, yy); + CYBOZU_BENCH_C("Fp2Dbl::sqrPre ", C3, Fp2Dbl::sqrPre, D, xx); CYBOZU_BENCH_C("GT::add ", C2, GT::add, e1, e1, e2); CYBOZU_BENCH_C("GT::mul ", C2, GT::mul, e1, e1, e2);