ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/liblzf/bench.c
(Generate patch)

Comparing liblzf/bench.c (file contents):
Revision 1.1 by root, Sun Jun 9 22:41:34 2002 UTC vs.
Revision 1.2 by root, Sun May 30 19:27:12 2004 UTC

32{ 32{
33 tval s; 33 tval s;
34 tval si[1000]; 34 tval si[1000];
35 int i, l, j; 35 int i, l, j;
36 int min = 1<<30; 36 int min = 1<<30;
37 int lp;
37 38
38 FILE *f = fopen ("data", "r"); 39 FILE *f = fopen ("data", "r");
39 fread (data, DSIZE, 1, f); 40 fread (data, DSIZE, 1, f);
40 fclose (f); 41 fclose (f);
41 42
42 for(;;) { 43 for (lp = 0; lp < 100; lp++) {
43 s=stamp(); 44 s=stamp();
44 l = lzf_compress (data, DSIZE, data2, DSIZE*2); 45 l = lzf_compress (data, DSIZE, data2, DSIZE*2);
45 j = lzf_decompress (data2, l, data3, DSIZE*2); 46 j = lzf_decompress (data2, l, data3, DSIZE*2);
46 si[0]=measure(s); 47 si[0]=measure(s);
47 48

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines