Commit c3ec6b1e authored by Armin Sobhani's avatar Armin Sobhani
Browse files

add performance rate report to benchmarks

parent d465af46
......@@ -44,7 +44,12 @@ int main(int argc, char *argv[])
, [&] () { return acgt[dist(rd)]; } );
t.stop();
}
std::cout << "time: " << t.min_time() / 1e6 << " ms" << std::endl;
std::cout << "time: "
<< t.min_time() / 1e6 << " ms"
<< std::endl;
std::cout << "rate: "
<< perf_rate<char>(PERF_N, t.min_time()) << " MB/s"
<< std::endl;
return 0;
}
\ No newline at end of file
......@@ -61,7 +61,12 @@ int main(int argc, char *argv[])
, std::back_inserter(rc));
t.stop();
}
std::cout << "time: " << t.min_time() / 1e6 << " ms" << std::endl;
std::cout << "time: "
<< t.min_time() / 1e6 << " ms"
<< std::endl;
std::cout << "rate: "
<< perf_rate<char>(PERF_N, t.min_time()) << " MB/s"
<< std::endl;
return 0;
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment