]>
git.siccegge.de Git - software/DIPE.git/blob - benchmark/benchPBC.cpp
1 #include <benchmark/benchmark.h>
4 void pbc_multiply_elements(benchmark::State
& state
) {
8 fp
= fopen("../tests/a.param", "r");
10 perror("Reading Pairing Parameters");
14 size_t count
= fread(buffer
, 1, 2<<16, fp
);
15 pairing_init_set_buf(pairing
, buffer
, 2<<16);
18 element_init_G1(a
, pairing
);
19 element_init_G1(b
, pairing
);
20 element_init_G1(c
, pairing
);
24 for (auto _
: state
) {
33 BENCHMARK(pbc_multiply_elements
);