Module bench_func

Module bench_func 

Source

Functionsยง

benchmark_add_latency
benchmark_add_slices
Benchmark the time taken to add two slices together.
benchmark_add_throughput
benchmark_div_2exp
benchmark_dot_array
Benchmark the time taken to do dot products on a pair of [R; N] arrays.
benchmark_inv
benchmark_iter_sum
Benchmark the time taken to sum an array [[F; N]; REPS] by summing each array [F; N] using .sum() method and accumulating the sums into an accumulator.
benchmark_mul
Not useful for benchmarking prime fields as multiplication is too fast but handy for extension fields.
benchmark_mul_2exp
benchmark_mul_latency
benchmark_mul_throughput
benchmark_square
benchmark_sub_latency
benchmark_sub_throughput
benchmark_sum_array
Benchmark the time taken to sum an array [[F; N]; REPS] by summing each array [F; N] using sum_array method and accumulating the sums into an accumulator.