Description
I noticed that in both bench and bench_internal there was a help text mentioning to the users that you could use SECP256K1_BENCH_ITERS to customize the amount of iterations for each benchmark, but bench_ecmult did not have this text so I added it in.
There is a caveat that if SECP256K1_BENCH_ITERS is less than 3, then run_ecmult_multi_bench will not run. Should I add that to the help text?
Before
$ ./build/bin/bench_ecmult -h
Benchmark EC multiplication algorithms
Usage: ./build/bin/bench_ecmult <help|pippenger_wnaf|strauss_wnaf|simple>
The output shows the number of multiplied and summed points right after the
function name. The letter 'g' indicates that one of the points is the generator.
The benchmarks are divided by the number of points.
default (ecmult_multi): picks pippenger_wnaf or strauss_wnaf depending on the
batch size
pippenger_wnaf: for all batch sizes
strauss_wnaf: for all batch sizes
simple: multiply and sum each point individually
After
$ ./build/bin/bench_ecmult -h
Benchmark EC multiplication algorithms
The default number of iterations for each benchmark is 10000. This can be
customized using the SECP256K1_BENCH_ITERS environment variable.
Usage: ./build/bin/bench_ecmult <help|pippenger_wnaf|strauss_wnaf|simple>
The output shows the number of multiplied and summed points right after the
function name. The letter 'g' indicates that one of the points is the generator.
The benchmarks are divided by the number of points.
default (ecmult_multi): picks pippenger_wnaf or strauss_wnaf depending on the
batch size
pippenger_wnaf: for all batch sizes
strauss_wnaf: for all batch sizes
simple: multiply and sum each point individually