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

Comparing liblzf/bench.c (file contents):
Revision 1.12 by root, Sun May 30 05:46:56 2010 UTC vs.
Revision 1.13 by root, Tue Jun 1 01:15:34 2010 UTC

1#include <stdio.h> 1#include <stdio.h>
2#include <unistd.h>
2#include <assert.h> 3#include <assert.h>
3#include <string.h> 4#include <string.h>
4#include <time.h> 5#include <time.h>
5#include <sys/time.h> 6#include <sys/time.h>
6#include <sys/times.h> 7#include <sys/times.h>
39 40
40static void sigu (int signum) 41static void sigu (int signum)
41{ 42{
42} 43}
43 44
44int eventfd(unsigned int,int);
45
46#define DSIZE 2821120 45#define DSIZE 2821120
47 46
48unsigned char data[DSIZE], data2[DSIZE*2], data3[DSIZE*2]; 47unsigned char data[DSIZE], data2[DSIZE*2], data3[DSIZE*2];
49 48
50int main(void) 49int main(void)
54 int i, l, j; 53 int i, l, j;
55 int min = 1<<30; 54 int min = 1<<30;
56 int lp; 55 int lp;
57 char buf[8192]; 56 char buf[8192];
58 int p[2]; 57 int p[2];
59 int evfd = eventfd (0, 0);
60 long ctr = 1; 58 long ctr = 1;
61 struct stat sbuf; 59 struct stat sbuf;
62 60
63 pipe (p); 61 pipe (p);
64 62

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines