Index: test/perf.cc |
diff --git a/test/perf.cc b/test/perf.cc |
old mode 100644 |
new mode 100755 |
index e9e76160621c7f679663aeaa270bcfbf3a35266d..88a15f8cbff8f2bf454e3a02e3fe8f53da0c1148 |
--- a/test/perf.cc |
+++ b/test/perf.cc |
@@ -4,7 +4,7 @@ |
#include <fcntl.h> |
#include <sys/stat.h> |
-#include <sys/time.h> // for timersub macro. |
+#include <sys/time.h> |
#include <unistd.h> |
#include <time.h> |
@@ -62,7 +62,8 @@ int main(int argc, char **argv) { |
::gettimeofday(&start, 0); |
for (int i = 0; i < num_repeat; ++i) { |
ots::MemoryStream output(result, st.st_size + kPadLen); |
- bool r = ots::Process(&output, data, st.st_size); |
+ ots::OTSContext context; |
+ bool r = context.Process(&output, data, st.st_size); |
if (!r) { |
std::fprintf(stderr, "Failed to sanitise file!\n"); |
return 1; |