… | |
… | |
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 | |