Update README; remove benchmarks.awk

pull/5/head
sername=jmacd 2013-01-22 15:57:34 -08:00
parent ce6c9fd34c
commit 7aad0f28fd
2 changed files with 4 additions and 29 deletions

6
README
View File

@ -1,15 +1,17 @@
This library is a C++ template library and, as such, there is no
library to build and install.
library to build and install. Copy the .h files and use them!
----
To build and run the provided tests, however, you will need to install
CMake and the Google C++ Test framework.
CMake, the Google C++ Test framework, and the Google flags package.
Download CMake from http://www.cmake.org
Download the GoogleTest framework from http://code.google.com/p/googletest
Download gflags from https://code.google.com/p/gflags
export GTEST_ROOT=/path/for/gtest-x.y
cmake . -Dbuild_tests=ON

View File

@ -1,27 +0,0 @@
#!/usr/bin/gawk -f
/^Run on/ {
print $0;
printf "%-25s %5s %-20s\n",
"Benchmark", "STL(ns)", "B-Tree(ns) @ <size>"
printf "--------------------------------------------------------\n";
}
/^BM_/ {
split($1, name, "_");
if (name[2] == "stl") {
stl = $3;
stl_bytes = $5
printf "%-25s %5d ", name[1] "_" name[3] "_" name[4] "_" name[5], stl;
fflush();
} else if (name[2] == "btree") {
btree = $3
btree_size = name[3]
btree_bytes = $5
printf "%5d %+7.2f%% <%3d>", btree, 100.0 * (stl - btree) / stl, btree_size;
printf " [%4.1f, %4.1f]\n", stl_bytes, btree_bytes;
fflush();
} else {
printf "ERROR: %s unrecognized\n", $1
}
}