MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / bench_ripemd

Function bench_ripemd

extra/yassl/taocrypt/benchmark/benchmark.cpp:253–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252
253void bench_ripemd()
254{
255 RIPEMD160 hash;
256 byte digest[RIPEMD160::DIGEST_SIZE];
257
258 double start = current_time();
259
260
261 for(int i = 0; i < megs; i++)
262 hash.Update(plain, sizeof(plain));
263
264 hash.Final(digest);
265
266 double total = current_time() - start;
267
268 double persec = 1 / total * megs;
269
270 printf("RIPEMD %d megs took %5.3f seconds, %6.2f MB/s\n", megs, total,
271 persec);
272}
273
274RandomNumberGenerator rng;
275

Callers 1

mainFunction · 0.85

Calls 3

current_timeFunction · 0.85
UpdateMethod · 0.45
FinalMethod · 0.45

Tested by

no test coverage detected