Add size argument for hash bench.
This commit is contained in:
1 parent
751d40e60e
commit
889865bbf8
1 file changed
+2
-2
+2
-2
@@ -405,13 +405,13 @@ int main(int argc, const char *argv[])
|
|||||||
if (n == 60)
|
if (n == 60)
|
||||||
test_function("Buffer time", 1000000, test_buffer);
|
test_function("Buffer time", 1000000, test_buffer);
|
||||||
if (n == 70) {
|
if (n == 70) {
|
||||||
const size_t n = 100000000;
|
n = (argc > 2) ? atoi(argv[2]) : 100000000;
|
||||||
test_hash_prepare(n);
|
test_hash_prepare(n);
|
||||||
test_function("M_HASH time", n, test_hash);
|
test_function("M_HASH time", n, test_hash);
|
||||||
test_hash_final();
|
test_hash_final();
|
||||||
}
|
}
|
||||||
if (n == 71) {
|
if (n == 71) {
|
||||||
const size_t n = 100000000;
|
n = (argc > 2) ? atoi(argv[2]) : 100000000;
|
||||||
test_hash_prepare(n);
|
test_hash_prepare(n);
|
||||||
test_function("CORE_HASH time", n, test_core_hash);
|
test_function("CORE_HASH time", n, test_core_hash);
|
||||||
test_hash_final();
|
test_hash_final();
|
||||||
|
|||||||
Reference in new issue
Block a user