summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2009-07-18 05:59:21 +0000
committerroot <root>2009-07-18 05:59:21 +0000
commit2ed86fd870010355652c5e41b380ece4ddb8c9bd (patch)
tree55c4e65a97a4a647fd82fa3501eb802e620caf25
parente60815be290c2334e9122b10ac53b92b23e7f9a3 (diff)
riddify us of meta.yml garbage in manifest
-rw-r--r--LICENSE2
-rw-r--r--bench.c22
-rw-r--r--lzf_c.c2
3 files changed, 15 insertions, 11 deletions
diff --git a/LICENSE b/LICENSE
index 9d8e6ec..ee54ff7 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2000-2007 Marc Alexander Lehmann <schmorp@schmorp.de>
+Copyright (c) 2000-2009 Marc Alexander Lehmann <schmorp@schmorp.de>
Redistribution and use in source and binary forms, with or without modifica-
tion, are permitted provided that the following conditions are met:
diff --git a/bench.c b/bench.c
index 27e0dcc..c919eb6 100644
--- a/bench.c
+++ b/bench.c
@@ -3,10 +3,12 @@
#include <string.h>
#include <time.h>
#include <sys/time.h>
+#include <sys/times.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
+#include <sys/resource.h>
#include <math.h>
#include <signal.h>
#include <X11/Xlib.h>
@@ -65,27 +67,29 @@ int main(void)
signal (SIGURG, sigu);
- for (lp = 0; lp < 100000; lp++) {
+ for (lp = 0; lp < 1000000; lp++) {
s=stamp();
- //snprintf (buf, 64, "<1.%llx>", (unsigned long long)0xa234567812ULL);
- getpgrp();
+ struct timespec ts; clock_gettime (CLOCK_THREAD_CPUTIME_ID, &ts);
+ //printf ("%9ld\n", ts.tv_nsec);//D
+ //struct rusage usage; getrusage (RUSAGE_SELF, &usage);
+ //struct tms tms; times (&tms);
+
//kill (0, SIGURG);
//write (evfd, &ctr, 8);
//read (evfd, &ctr, 8);
//write (p[1], &buf, 1);
//read (p[0], &buf, 4);
//stat ("/etc/passwd", &sbuf);
- //struct timeval tv;
- //gettimeofday (&tv, 0);
+ //struct timeval tv; gettimeofday (&tv, 0);
- l = lzf_compress (data, DSIZE, data2, DSIZE*2);
- assert(l);
+ //l = lzf_compress (data, DSIZE, data2, DSIZE*2);
+ //assert(l);
si[0]=measure(s);
- j = lzf_decompress (data2, l, data3, DSIZE*2);
- assert (j == DSIZE);
+ //j = lzf_decompress (data2, l, data3, DSIZE*2);
+ //assert (j == DSIZE);
printf ("\r%10d (%d) ", si[0], l);
if (si[0] < min && si[0] > 0)
diff --git a/lzf_c.c b/lzf_c.c
index 0b5d816..fc03a2b 100644
--- a/lzf_c.c
+++ b/lzf_c.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2000-2008 Marc Alexander Lehmann <schmorp@schmorp.de>
+ * Copyright (c) 2000-2009 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met: