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
0$ ./build/bin/bench_ecmult -h
1Benchmark EC multiplication algorithms
2
3Usage: ./build/bin/bench_ecmult <help|pippenger_wnaf|strauss_wnaf|simple>
4The output shows the number of multiplied and summed points right after the
5function name. The letter 'g' indicates that one of the points is the generator.
6The benchmarks are divided by the number of points.
7
8default (ecmult_multi): picks pippenger_wnaf or strauss_wnaf depending on the
9 batch size
10pippenger_wnaf: for all batch sizes
11strauss_wnaf: for all batch sizes
12simple: multiply and sum each point individually
After
0$ ./build/bin/bench_ecmult -h
1Benchmark EC multiplication algorithms
2
3The default number of iterations for each benchmark is 10000. This can be
4customized using the SECP256K1_BENCH_ITERS environment variable.
5
6Usage: ./build/bin/bench_ecmult <help|pippenger_wnaf|strauss_wnaf|simple>
7The output shows the number of multiplied and summed points right after the
8function name. The letter 'g' indicates that one of the points is the generator.
9The benchmarks are divided by the number of points.
10
11default (ecmult_multi): picks pippenger_wnaf or strauss_wnaf depending on the
12 batch size
13pippenger_wnaf: for all batch sizes
14strauss_wnaf: for all batch sizes
15simple: multiply and sum each point individually