X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bench.cpp;fp=bench.cpp;h=78fa339f9104cd695dba52cc79815df2e0702f9b;hb=faf31198659504235e2b65b5c3bb2ccb2ef296aa;hp=6ab0494dcacd2159b08c0c16936fc0874272378a;hpb=a445254a59d39b485e544a8101bf1ee2a8579cb6;p=plocate diff --git a/bench.cpp b/bench.cpp index 6ab0494..78fa339 100644 --- a/bench.cpp +++ b/bench.cpp @@ -1,16 +1,16 @@ -#include -#include -#include #include +#include #include +#include +#include #define dprintf(...) //#define dprintf(...) fprintf(stderr, __VA_ARGS__); -#include "turbopfor.h" -#include "vp4.h" #include "db.h" #include "io_uring_engine.h" +#include "turbopfor.h" +#include "vp4.h" using namespace std; using namespace std::chrono; @@ -99,5 +99,5 @@ int main(void) // 1 ns/element, a 10k-element posting list goes by in 0.01 ms, which is way beyond // instantaneous in practice). fprintf(stderr, "%.1f MB/sec (compressed), %.1f MB/sec (uncompressed), %.1f ns/element\n", posting_list_bytes / own_sec / 1048576.0, - (total_elements * sizeof(uint32_t)) / own_sec / 1048576.0, 1e9 * own_sec / total_elements); + (total_elements * sizeof(uint32_t)) / own_sec / 1048576.0, 1e9 * own_sec / total_elements); }