… | |
… | |
38 | |
38 | |
39 | FILE *f = fopen ("data", "r"); |
39 | FILE *f = fopen ("data", "r"); |
40 | fread (data, DSIZE, 1, f); |
40 | fread (data, DSIZE, 1, f); |
41 | fclose (f); |
41 | fclose (f); |
42 | |
42 | |
43 | for (lp = 0; lp < 100; lp++) { |
43 | for (lp = 0; lp < 1000; lp++) { |
44 | s=stamp(); |
44 | s=stamp(); |
45 | l = lzf_compress (data, DSIZE, data2, DSIZE*2); |
45 | l = lzf_compress (data, DSIZE, data2, DSIZE*2); |
46 | j = lzf_decompress (data2, l, data3, DSIZE*2); |
46 | j = lzf_decompress (data2, l, data3, DSIZE*2); |
47 | si[0]=measure(s); |
47 | si[0]=measure(s); |
48 | |
48 | |