summaryrefslogtreecommitdiff
path: root/bench.c
diff options
context:
space:
mode:
authorroot <root>2009-05-01 00:30:53 +0000
committerroot <root>2009-05-01 00:30:53 +0000
commite60815be290c2334e9122b10ac53b92b23e7f9a3 (patch)
tree7f9d8726a2bea476f2b731dec0eae23db48136b4 /bench.c
parent2765a97bc918b1ea0c8aff8c66535d34c01a8998 (diff)
Diffstat (limited to 'bench.c')
-rw-r--r--bench.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/bench.c b/bench.c
index 5888951..27e0dcc 100644
--- a/bench.c
+++ b/bench.c
@@ -69,18 +69,23 @@ int main(void)
s=stamp();
//snprintf (buf, 64, "<1.%llx>", (unsigned long long)0xa234567812ULL);
- //getpgrp();
+ getpgrp();
//kill (0, SIGURG);
//write (evfd, &ctr, 8);
//read (evfd, &ctr, 8);
//write (p[1], &buf, 1);
//read (p[0], &buf, 4);
//stat ("/etc/passwd", &sbuf);
- free(malloc(8*1024*1024));
+ //struct timeval tv;
+ //gettimeofday (&tv, 0);
+
+ l = lzf_compress (data, DSIZE, data2, DSIZE*2);
+ assert(l);
si[0]=measure(s);
- //j = lzf_decompress (data2, l, data3, DSIZE*2);
+ j = lzf_decompress (data2, l, data3, DSIZE*2);
+ assert (j == DSIZE);
printf ("\r%10d (%d) ", si[0], l);
if (si[0] < min && si[0] > 0)