[llvm-commits] CVS: llvm/test/Programs/SingleSource/Benchmarks/Shootout/Makefile ackermann.c ary3.c fib2.c hash.c heapsort.c lists.c matrix.c methcall.c nestedloop.c objinst.c random.c sieve.c strcat.c

Chris Lattner lattner at cs.uiuc.edu
Tue Jun 8 12:27:01 PDT 2004


Changes in directory llvm/test/Programs/SingleSource/Benchmarks/Shootout:

Makefile updated: 1.4 -> 1.5
ackermann.c updated: 1.2 -> 1.3
ary3.c updated: 1.2 -> 1.3
fib2.c updated: 1.1 -> 1.2
hash.c updated: 1.1 -> 1.2
heapsort.c updated: 1.2 -> 1.3
lists.c updated: 1.5 -> 1.6
matrix.c updated: 1.2 -> 1.3
methcall.c updated: 1.1 -> 1.2
nestedloop.c updated: 1.1 -> 1.2
objinst.c updated: 1.2 -> 1.3
random.c updated: 1.3 -> 1.4
sieve.c updated: 1.2 -> 1.3
strcat.c updated: 1.1 -> 1.2

---
Log message:

Increase the problem sizes of the shootout benchmarks so that they are 
less noisy.

Patch contributed by Valery Khamenya


---
Diffs of the changes:  (+26 -27)

Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/Makefile
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/Makefile:1.4 llvm/test/Programs/SingleSource/Benchmarks/Shootout/Makefile:1.5
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/Makefile:1.4	Fri Apr 23 13:09:29 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/Makefile	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,4 @@
 LEVEL = ../../../../..
 LDFLAGS += -lm
-ENABLE_LLI = 1
 
 include $(LEVEL)/test/Programs/SingleSource/Makefile.singlesrc


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/ackermann.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/ackermann.c:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout/ackermann.c:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/ackermann.c:1.2	Tue Jan 22 09:20:21 2002
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/ackermann.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: ackermann.c,v 1.2 2002/01/22 15:20:21 lattner Exp $
+ * $Id: ackermann.c,v 1.3 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -15,7 +15,7 @@
 
 int
 main(int argc, char *argv[]) {
-    int n = ((argc == 2) ? atoi(argv[1]) : 4);
+    int n = ((argc == 2) ? atoi(argv[1]) : 12);
 
     printf("Ack(3,%d): %d\n", n, Ack(3, n));
     return(0);


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/ary3.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/ary3.c:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout/ary3.c:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/ary3.c:1.2	Tue Jul  1 12:24:53 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/ary3.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: ary3.c,v 1.2 2003/07/01 17:24:53 brukman Exp $
+ * $Id: ary3.c,v 1.3 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  *
  * this program is modified from:
@@ -15,7 +15,7 @@
 #include <stdlib.h>
 
 int main(int argc, char *argv[]) {
-  int n = ((argc == 2) ? atoi(argv[1]) : 1);
+  int n = ((argc == 2) ? atoi(argv[1]) : 1500000);
   int i, k, *x, *y;
 
   x = (int *) calloc(n, sizeof(int));


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/fib2.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/fib2.c:1.1 llvm/test/Programs/SingleSource/Benchmarks/Shootout/fib2.c:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/fib2.c:1.1	Fri Dec 14 10:57:13 2001
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/fib2.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: fib2.c,v 1.1 2001/12/14 16:57:13 lattner Exp $
+ * $Id: fib2.c,v 1.2 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -16,7 +16,7 @@
 
 int
 main(int argc, char *argv[]) {
-    int N = ((argc == 2) ? atoi(argv[1]) : 15);
+    int N = ((argc == 2) ? atoi(argv[1]) : 43);
     printf("%ld\n", fib(N));
     return(0);
 }


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/hash.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/hash.c:1.1 llvm/test/Programs/SingleSource/Benchmarks/Shootout/hash.c:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/hash.c:1.1	Fri Dec 14 10:13:38 2001
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/hash.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: hash.c,v 1.1 2001/12/14 16:13:38 lattner Exp $
+ * $Id: hash.c,v 1.2 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -9,7 +9,7 @@
 #include "simple_hash.h"
 
 int main(int argc, char *argv[]) {
-    int i, c=0, n = ((argc == 2) ? atoi(argv[1]) : 1);
+    int i, c=0, n = ((argc == 2) ? atoi(argv[1]) : 3500000);
     char buf[32];
 	
     struct ht_ht *ht = ht_create(n);


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/heapsort.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/heapsort.c:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout/heapsort.c:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/heapsort.c:1.2	Wed Oct 15 12:36:36 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/heapsort.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: heapsort.c,v 1.2 2003/10/15 17:36:36 gaeke Exp $
+ * $Id: heapsort.c,v 1.3 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -56,7 +56,7 @@
 
 int
 main(int argc, char *argv[]) {
-    int N = ((argc == 2) ? atoi(argv[1]) : 10);
+    int N = ((argc == 2) ? atoi(argv[1]) : 8000000);
     double *ary;
     int i;
     


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/lists.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/lists.c:1.5 llvm/test/Programs/SingleSource/Benchmarks/Shootout/lists.c:1.6
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/lists.c:1.5	Thu Jul 10 19:06:29 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/lists.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: lists.c,v 1.5 2003/07/11 00:06:29 brukman Exp $
+ * $Id: lists.c,v 1.6 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -217,7 +217,7 @@
 }
 
 int main(int argc, char *argv[]) {
-  int n = ((argc == 2) ? atoi(argv[1]) : 1);
+  int n = ((argc == 2) ? atoi(argv[1]) : 3000000);
   int result = 0;
   while(n--) result = test_lists();
   printf("%d\n", result);


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/matrix.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/matrix.c:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout/matrix.c:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/matrix.c:1.2	Fri Aug  9 15:06:19 2002
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/matrix.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: matrix.c,v 1.2 2002/08/09 20:06:19 lattner Exp $
+ * $Id: matrix.c,v 1.3 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -48,7 +48,7 @@
 }
 
 int main(int argc, char *argv[]) {
-    int i, n = ((argc == 2) ? atoi(argv[1]) : 10);
+    int i, n = ((argc == 2) ? atoi(argv[1]) : 3000000);
 	
     int **m1 = mkmatrix(SIZE, SIZE);
     int **m2 = mkmatrix(SIZE, SIZE);


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/methcall.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/methcall.c:1.1 llvm/test/Programs/SingleSource/Benchmarks/Shootout/methcall.c:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/methcall.c:1.1	Mon Mar 11 11:29:25 2002
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/methcall.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: methcall.c,v 1.1 2002/03/11 17:29:25 lattner Exp $
+ * $Id: methcall.c,v 1.2 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -66,7 +66,7 @@
 
 
 int main(int argc, char *argv[]) {
-    int i, n = ((argc == 2) ? atoi(argv[1]) : 1);
+    int i, n = ((argc == 2) ? atoi(argv[1]) : 500000000);
     Toggle *tog;
     NthToggle *ntog;
     char val = true;


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/nestedloop.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/nestedloop.c:1.1 llvm/test/Programs/SingleSource/Benchmarks/Shootout/nestedloop.c:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/nestedloop.c:1.1	Fri Dec 14 10:13:39 2001
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/nestedloop.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: nestedloop.c,v 1.1 2001/12/14 16:13:39 lattner Exp $
+ * $Id: nestedloop.c,v 1.2 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -8,7 +8,7 @@
 
 int
 main(int argc, char *argv[]) {
-    int n = ((argc == 2) ? atoi(argv[1]) : 4);
+    int n = ((argc == 2) ? atoi(argv[1]) : 46);
     int a, b, c, d, e, f, x=0;
 	
     for (a=0; a<n; a++)


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/objinst.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/objinst.c:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout/objinst.c:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/objinst.c:1.2	Mon May  6 23:32:45 2002
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/objinst.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: objinst.c,v 1.2 2002/05/07 04:32:45 lattner Exp $
+ * $Id: objinst.c,v 1.3 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -66,7 +66,7 @@
 
 
 int main(int argc, char *argv[]) {
-    int i, n = ((argc == 2) ? atoi(argv[1]) : 1);
+    int i, n = ((argc == 2) ? atoi(argv[1]) : 70000000);
     Toggle *tog;
     NthToggle *ntog;
 


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/random.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/random.c:1.3 llvm/test/Programs/SingleSource/Benchmarks/Shootout/random.c:1.4
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/random.c:1.3	Thu Jul 10 17:34:14 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/random.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: random.c,v 1.3 2003/07/10 22:34:14 brukman Exp $
+ * $Id: random.c,v 1.4 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -21,7 +21,7 @@
 }
 
 int main(int argc, char *argv[]) {
-  int N = ((argc == 2) ? atoi(argv[1]) : 1) - 1;
+  int N = ((argc == 2) ? atoi(argv[1]) : 400000000) - 1;
     
   while (N--) {
     gen_random(100.0);


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/sieve.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/sieve.c:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout/sieve.c:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/sieve.c:1.2	Sun Aug 25 12:22:49 2002
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/sieve.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: sieve.c,v 1.2 2002/08/25 17:22:49 vadve Exp $
+ * $Id: sieve.c,v 1.3 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -8,7 +8,7 @@
 
 int
 main(int argc, char *argv[]) {
-    int NUM = ((argc == 2) ? atoi(argv[1]) : 1);
+    int NUM = ((argc == 2) ? atoi(argv[1]) : 170000);
     static char flags[8192 + 1];
     long i, k;
     int count = 0;


Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout/strcat.c
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout/strcat.c:1.1 llvm/test/Programs/SingleSource/Benchmarks/Shootout/strcat.c:1.2
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout/strcat.c:1.1	Sun May 11 15:16:45 2003
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout/strcat.c	Tue Jun  8 12:21:42 2004
@@ -1,5 +1,5 @@
 /* -*- mode: c -*-
- * $Id: strcat.c,v 1.1 2003/05/11 20:16:45 lattner Exp $
+ * $Id: strcat.c,v 1.2 2004/06/08 17:21:42 lattner Exp $
  * http://www.bagley.org/~doug/shootout/
  */
 
@@ -11,7 +11,7 @@
 
 int
 main(int argc, char *argv[]) {
-    int n = ((argc == 2) ? atoi(argv[1]) : 1);
+    int n = ((argc == 2) ? atoi(argv[1]) : 10000000);
     int i, buflen = 32;
     char *strbuf = calloc(sizeof(char), buflen);
     char *strend = strbuf;





More information about the llvm-commits mailing list