[llvm-commits] CVS: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/strcat.cpp moments.cpp lists1.cpp hash.cpp ary2.cpp ary.cpp
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat Jul 24 03:44:21 PDT 2004
Changes in directory llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++:
strcat.cpp updated: 1.2 -> 1.3
moments.cpp updated: 1.3 -> 1.4
lists1.cpp updated: 1.4 -> 1.5
hash.cpp updated: 1.2 -> 1.3
ary2.cpp updated: 1.4 -> 1.5
ary.cpp updated: 1.3 -> 1.4
---
Log message:
Reduce problem sizes for these tests as they consume about half a gig
of RAM when ran. This is not funny on a machine with "only" 768MB.
---
Diffs of the changes: (+11 -11)
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/strcat.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/strcat.cpp:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/strcat.cpp:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/strcat.cpp:1.2 Tue Jun 15 15:48:16 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/strcat.cpp Sat Jul 24 05:44:11 2004
@@ -1,5 +1,5 @@
// -*- mode: c++ -*-
-// $Id: strcat.cpp,v 1.2 2004/06/15 20:48:16 lattner Exp $
+// $Id: strcat.cpp,v 1.3 2004/07/24 10:44:11 alkis Exp $
// http://www.bagley.org/~doug/shootout/
// with help from PeterB
@@ -9,7 +9,7 @@
int main(int argc, char *argv[])
{
- int i, n = ((argc == 2) ? atoi(argv[1]) : 50000000);
+ int i, n = ((argc == 2) ? atoi(argv[1]) : 5000000);
string str;
size_t capacity = 31;
str.reserve(capacity); // as per C-string
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/moments.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/moments.cpp:1.3 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/moments.cpp:1.4
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/moments.cpp:1.3 Tue Jun 15 15:48:16 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/moments.cpp Sat Jul 24 05:44:11 2004
@@ -66,7 +66,7 @@
};
int main(int argc, char**argv) {
- int n = ((argc == 2) ? atoi(argv[1]) : 50000000);
+ int n = ((argc == 2) ? atoi(argv[1]) : 5000000);
vector<double> v;
double d;
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/lists1.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/lists1.cpp:1.4 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/lists1.cpp:1.5
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/lists1.cpp:1.4 Tue Jun 15 15:48:16 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/lists1.cpp Sat Jul 24 05:44:11 2004
@@ -1,5 +1,5 @@
// -*- mode: c++ -*-
-// $Id: lists1.cpp,v 1.4 2004/06/15 20:48:16 lattner Exp $
+// $Id: lists1.cpp,v 1.5 2004/07/24 10:44:11 alkis Exp $
// http://www.bagley.org/~doug/shootout/
#include <iostream>
@@ -27,7 +27,7 @@
}
int main(int argc, char* argv[]) {
- int N = (argc == 2 ? (atoi(argv[1]) < 1 ? 1 : atoi(argv[1])): 10000000);
+ int N = (argc == 2 ? (atoi(argv[1]) < 1 ? 1 : atoi(argv[1])): 1000000);
list<int>::iterator i;
// create empty list B
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/hash.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/hash.cpp:1.2 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/hash.cpp:1.3
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/hash.cpp:1.2 Tue Jun 15 15:48:16 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/hash.cpp Sat Jul 24 05:44:11 2004
@@ -1,5 +1,5 @@
// -*- mode: c++ -*-
-// $Id: hash.cpp,v 1.2 2004/06/15 20:48:16 lattner Exp $
+// $Id: hash.cpp,v 1.3 2004/07/24 10:44:11 alkis Exp $
// http://www.bagley.org/~doug/shootout/
#include <stdio.h>
@@ -16,7 +16,7 @@
int
main(int argc, char *argv[]) {
- int n = ((argc == 2) ? atoi(argv[1]) : 3500000);
+ int n = ((argc == 2) ? atoi(argv[1]) : 500000);
char buf[16];
typedef hash_map<const char*, int, hash<const char*>, eqstr> HM;
HM X;
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary2.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary2.cpp:1.4 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary2.cpp:1.5
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary2.cpp:1.4 Tue Jun 15 15:48:16 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary2.cpp Sat Jul 24 05:44:11 2004
@@ -1,5 +1,5 @@
// -*- mode: c++ -*-
-// $Id: ary2.cpp,v 1.4 2004/06/15 20:48:16 lattner Exp $
+// $Id: ary2.cpp,v 1.5 2004/07/24 10:44:11 alkis Exp $
// http://www.bagley.org/~doug/shootout/
#include <iostream>
@@ -7,7 +7,7 @@
int
main(int argc, char *argv[]) {
- int i, n = 10*((argc == 2) ? atoi(argv[1]) : 9000000);
+ int i, n = 10*((argc == 2) ? atoi(argv[1]) : 900000);
typedef std::vector<int> ARY;
ARY x(n);
ARY y(n);
Index: llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary.cpp
diff -u llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary.cpp:1.3 llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary.cpp:1.4
--- llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary.cpp:1.3 Tue Jun 15 15:48:16 2004
+++ llvm/test/Programs/SingleSource/Benchmarks/Shootout-C++/ary.cpp Sat Jul 24 05:44:11 2004
@@ -1,5 +1,5 @@
// -*- mode: c++ -*-
-// $Id: ary.cpp,v 1.3 2004/06/15 20:48:16 lattner Exp $
+// $Id: ary.cpp,v 1.4 2004/07/24 10:44:11 alkis Exp $
// http://www.bagley.org/~doug/shootout/
#include <iostream>
@@ -7,7 +7,7 @@
int
main(int argc, char *argv[]) {
- int i, n = ((argc == 2) ? atoi(argv[1]) : 90000000);
+ int i, n = ((argc == 2) ? atoi(argv[1]) : 9000000);
typedef std::vector<int> ARY;
ARY x(n);
ARY y(n);
More information about the llvm-commits
mailing list