@@ -28,7 +28,7 @@ inline void Pow_X11(benchmark::Bench& bench, const size_t bytes)
2828{
2929 uint256 hash{};
3030 std::vector<uint8_t > in (bytes, 0 );
31- bench.batch (in.size ()).unit (" byte" ).run ([&] {
31+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
3232 hash = HashX11 (in.begin (), in.end ());
3333 });
3434}
@@ -38,7 +38,7 @@ inline void Pow_Blake512(benchmark::Bench& bench, const size_t bytes)
3838 sph_blake512_context ctx;
3939 uint8_t hash[OUTPUT_SIZE];
4040 std::vector<uint8_t > in (bytes, 0 );
41- bench.batch (in.size ()).unit (" byte" ).run ([&] {
41+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
4242 sph_blake512_init (&ctx);
4343 sph_blake512 (&ctx, in.data (), in.size ());
4444 sph_blake512_close (&ctx, &hash);
@@ -50,7 +50,7 @@ inline void Pow_Bmw512(benchmark::Bench& bench, const size_t bytes)
5050 sph_bmw512_context ctx;
5151 uint8_t hash[OUTPUT_SIZE];
5252 std::vector<uint8_t > in (bytes, 0 );
53- bench.batch (in.size ()).unit (" byte" ).run ([&] {
53+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
5454 sph_bmw512_init (&ctx);
5555 sph_bmw512 (&ctx, in.data (), in.size ());
5656 sph_bmw512_close (&ctx, &hash);
@@ -62,7 +62,7 @@ inline void Pow_Cubehash512(benchmark::Bench& bench, const size_t bytes)
6262 sph_cubehash512_context ctx;
6363 uint8_t hash[OUTPUT_SIZE];
6464 std::vector<uint8_t > in (bytes, 0 );
65- bench.batch (in.size ()).unit (" byte" ).run ([&] {
65+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
6666 sph_cubehash512_init (&ctx);
6767 sph_cubehash512 (&ctx, in.data (), in.size ());
6868 sph_cubehash512_close (&ctx, &hash);
@@ -74,7 +74,7 @@ inline void Pow_Echo512(benchmark::Bench& bench, const size_t bytes)
7474 sph_echo512_context ctx;
7575 uint8_t hash[OUTPUT_SIZE];
7676 std::vector<uint8_t > in (bytes, 0 );
77- bench.batch (in.size ()).unit (" byte" ).run ([&] {
77+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
7878 sph_echo512_init (&ctx);
7979 sph_echo512 (&ctx, in.data (), in.size ());
8080 sph_echo512_close (&ctx, &hash);
@@ -86,7 +86,7 @@ inline void Pow_Groestl512(benchmark::Bench& bench, const size_t bytes)
8686 sph_groestl512_context ctx;
8787 uint8_t hash[OUTPUT_SIZE];
8888 std::vector<uint8_t > in (bytes, 0 );
89- bench.batch (in.size ()).unit (" byte" ).run ([&] {
89+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
9090 sph_groestl512_init (&ctx);
9191 sph_groestl512 (&ctx, in.data (), in.size ());
9292 sph_groestl512_close (&ctx, &hash);
@@ -98,7 +98,7 @@ inline void Pow_Jh512(benchmark::Bench& bench, const size_t bytes)
9898 sph_jh512_context ctx;
9999 uint8_t hash[OUTPUT_SIZE];
100100 std::vector<uint8_t > in (bytes, 0 );
101- bench.batch (in.size ()).unit (" byte" ).run ([&] {
101+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
102102 sph_jh512_init (&ctx);
103103 sph_jh512 (&ctx, in.data (), in.size ());
104104 sph_jh512_close (&ctx, &hash);
@@ -110,7 +110,7 @@ inline void Pow_Keccak512(benchmark::Bench& bench, const size_t bytes)
110110 sph_keccak512_context ctx;
111111 uint8_t hash[OUTPUT_SIZE];
112112 std::vector<uint8_t > in (bytes, 0 );
113- bench.batch (in.size ()).unit (" byte" ).run ([&] {
113+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
114114 sph_keccak512_init (&ctx);
115115 sph_keccak512 (&ctx, in.data (), in.size ());
116116 sph_keccak512_close (&ctx, &hash);
@@ -122,7 +122,7 @@ inline void Pow_Luffa512(benchmark::Bench& bench, const size_t bytes)
122122 sph_luffa512_context ctx;
123123 uint8_t hash[OUTPUT_SIZE];
124124 std::vector<uint8_t > in (bytes, 0 );
125- bench.batch (in.size ()).unit (" byte" ).run ([&] {
125+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
126126 sph_luffa512_init (&ctx);
127127 sph_luffa512 (&ctx, in.data (), in.size ());
128128 sph_luffa512_close (&ctx, &hash);
@@ -134,7 +134,7 @@ inline void Pow_Shavite512(benchmark::Bench& bench, const size_t bytes)
134134 sph_shavite512_context ctx;
135135 uint8_t hash[OUTPUT_SIZE];
136136 std::vector<uint8_t > in (bytes, 0 );
137- bench.batch (in.size ()).unit (" byte" ).run ([&] {
137+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
138138 sph_shavite512_init (&ctx);
139139 sph_shavite512 (&ctx, in.data (), in.size ());
140140 sph_shavite512_close (&ctx, &hash);
@@ -146,7 +146,7 @@ inline void Pow_Simd512(benchmark::Bench& bench, const size_t bytes)
146146 sph_simd512_context ctx;
147147 uint8_t hash[OUTPUT_SIZE];
148148 std::vector<uint8_t > in (bytes, 0 );
149- bench.batch (in.size ()).unit (" byte" ).run ([&] {
149+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
150150 sph_simd512_init (&ctx);
151151 sph_simd512 (&ctx, in.data (), in.size ());
152152 sph_simd512_close (&ctx, &hash);
@@ -158,7 +158,7 @@ inline void Pow_Skein512(benchmark::Bench& bench, const size_t bytes)
158158 sph_skein512_context ctx;
159159 uint8_t hash[OUTPUT_SIZE];
160160 std::vector<uint8_t > in (bytes, 0 );
161- bench.batch (in.size ()).unit (" byte" ).run ([&] {
161+ bench.minEpochIterations ( 20 ). batch (in.size ()).unit (" byte" ).run ([&] {
162162 sph_skein512_init (&ctx);
163163 sph_skein512 (&ctx, in.data (), in.size ());
164164 sph_skein512_close (&ctx, &hash);
0 commit comments