diff options
author | root <root> | 2009-05-01 00:30:53 +0000 |
---|---|---|
committer | root <root> | 2009-05-01 00:30:53 +0000 |
commit | e60815be290c2334e9122b10ac53b92b23e7f9a3 (patch) | |
tree | 7f9d8726a2bea476f2b731dec0eae23db48136b4 /bench.c | |
parent | 2765a97bc918b1ea0c8aff8c66535d34c01a8998 (diff) |
3.5rel-3_5
Diffstat (limited to 'bench.c')
-rw-r--r-- | bench.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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) |