From e5a1b8c4392b5383af133591cb9238fb8c1b4516 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 20 Feb 2012 21:10:26 +0000 Subject: The benchmark examples ran very slowly because they were passing 16*1024 to an argument that treated those values as KiB, it took the RNG ~3 seconds to create 16 MiB of data to randomize the input. Change to 16. Also cap the value that can be passed to --buf-size to 1024, for a 1 MiB buffer. --- checks/check.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'checks') diff --git a/checks/check.cpp b/checks/check.cpp index 4fa1160ae..e47cc543b 100644 --- a/checks/check.cpp +++ b/checks/check.cpp @@ -178,7 +178,7 @@ int main(int argc, char* argv[]) if(opts.is_set("buf-size")) { buf_size = std::atoi(opts.value("buf-size").c_str()); - if(buf_size == 0 || buf_size > 64*1024) + if(buf_size == 0 || buf_size > 1024) { std::cout << "Invalid argument to --buf-size\n"; return 2; -- cgit v1.2.3