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.14 by root, Sun Mar 27 23:53:23 2011 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
46#define DSIZE 32768
47 47
48unsigned char data[DSIZE], data2[DSIZE*2], data3[DSIZE*2]; 48unsigned char data[DSIZE], data2[DSIZE*2], data3[DSIZE*2];
49 49
50int main(void) 50int main(void)
51{ 51{
54 int i, l, j; 54 int i, l, j;
55 int min = 1<<30; 55 int min = 1<<30;
56 int lp; 56 int lp;
57 char buf[8192]; 57 char buf[8192];
58 int p[2]; 58 int p[2];
59 int evfd = eventfd (0, 0);
60 long ctr = 1; 59 long ctr = 1;
61 struct stat sbuf; 60 struct stat sbuf;
62 61
63 pipe (p); 62 pipe (p);
64 63

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines