diff options
author | root <root> | 2007-11-13 10:48:02 +0000 |
---|---|---|
committer | root <root> | 2007-11-13 10:48:02 +0000 |
commit | d29dfa6df56424f073e0de300f6b2e40f5ace61a (patch) | |
tree | 88f31a9984f1c728adbf810764566e0e7f3f8000 /bench.c | |
parent | 84e5a8dc51fb7e6e9e6044d9fd100cb91c451c9a (diff) |
*** empty log message ***
Diffstat (limited to 'bench.c')
-rw-r--r-- | bench.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -3,6 +3,7 @@ #include <string.h> #include "lzf.h" +//#include "fastlz.c" typedef unsigned long tval; typedef unsigned long long stamp64; @@ -24,7 +25,7 @@ extern inline tval measure(tval t) return t-tsc; } -#define DSIZE 1000000 +#define DSIZE 2821120 unsigned char data[DSIZE], data2[DSIZE*2], data3[DSIZE*2]; @@ -43,8 +44,9 @@ int main(void) for (lp = 0; lp < 1000; lp++) { s=stamp(); l = lzf_compress (data, DSIZE, data2, DSIZE*2); - j = lzf_decompress (data2, l, data3, DSIZE*2); + //l = fastlz_compress_level (1, data, DSIZE, data2); si[0]=measure(s); + j = lzf_decompress (data2, l, data3, DSIZE*2); printf ("\r%10d (%d) ", si[0], l); if (si[0] < min && si[0] > 0) |