Skip to content

Commit

Permalink
Add missing benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaranha committed Mar 30, 2024
1 parent 427deda commit 0d1e82d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bench/bench_pc.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,14 @@ static void arith(void) {
}
BENCH_END;

BENCH_RUN("gt_exp_sec") {
gt_rand(a);
pc_get_ord(d);
bn_rand_mod(e, d);
BENCH_ADD(gt_exp_sec(c, a, e));
}
BENCH_END;

BENCH_RUN("gt_exp_gen") {
pc_get_ord(d);
bn_rand_mod(e, d);
Expand Down

0 comments on commit 0d1e82d

Please sign in to comment.