Permalink
Browse files

bench: Lower the default inputs on many shootout benchmarks

Make them run a bit faster during normal testing
  • Loading branch information...
1 parent 1588ae2 commit 7e6ce6637e710a92328f36f0fd8ea45671c01e91 @brson brson committed Jan 15, 2012
@@ -18,7 +18,7 @@ fn main(args: [str]) {
let n = if vec::len(args) == 2u {
int::from_str(args[1])
} else {
- 11
+ 8
};
std::io::println(#fmt("Ack(3,%d): %d\n", n, ack(3, n)));
}
@@ -23,7 +23,7 @@ fn main(args: [str]) {
let n = if vec::len(args) == 2u {
int::from_str(args[1])
} else {
- 15
+ 8
};
let min_depth = 4;
let max_depth;
@@ -62,7 +62,7 @@ fn main(args: [str]) {
let n = if vec::len(args) == 2u {
int::from_str(args[1])
} else {
- 10
+ 8
};
std::io::println(#fmt("Pfannkuchen(%d) = %d", n, fannkuch(n)));
}
@@ -14,7 +14,7 @@ fn main(args: [str]) {
let n = if vec::len(args) == 2u {
int::from_str(args[1])
} else {
- 40
+ 30
};
std::io::println(#fmt("%d\n", fib(n)));
}
@@ -17,7 +17,7 @@ fn main(args: [str]) {
let n = if vec::len(args) == 2u {
int::from_str(args[1])
} else {
- 1000000
+ 100000
};
let bodies: [Body::props] = NBodySystem::MakeNBodySystem();
std::io::println(#fmt("%f", NBodySystem::energy(bodies)));

0 comments on commit 7e6ce66

Please sign in to comment.