Skip to content

Commit 7e6ce66

Browse files
committed
bench: Lower the default inputs on many shootout benchmarks
Make them run a bit faster during normal testing
1 parent 1588ae2 commit 7e6ce66

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/test/bench/shootout-ackermann.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fn main(args: [str]) {
1818
let n = if vec::len(args) == 2u {
1919
int::from_str(args[1])
2020
} else {
21-
11
21+
8
2222
};
2323
std::io::println(#fmt("Ack(3,%d): %d\n", n, ack(3, n)));
2424
}

src/test/bench/shootout-binarytrees.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn main(args: [str]) {
2323
let n = if vec::len(args) == 2u {
2424
int::from_str(args[1])
2525
} else {
26-
15
26+
8
2727
};
2828
let min_depth = 4;
2929
let max_depth;

src/test/bench/shootout-fannkuchredux.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn main(args: [str]) {
6262
let n = if vec::len(args) == 2u {
6363
int::from_str(args[1])
6464
} else {
65-
10
65+
8
6666
};
6767
std::io::println(#fmt("Pfannkuchen(%d) = %d", n, fannkuch(n)));
6868
}

src/test/bench/shootout-fibo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main(args: [str]) {
1414
let n = if vec::len(args) == 2u {
1515
int::from_str(args[1])
1616
} else {
17-
40
17+
30
1818
};
1919
std::io::println(#fmt("%d\n", fib(n)));
2020
}

src/test/bench/shootout-nbody.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fn main(args: [str]) {
1717
let n = if vec::len(args) == 2u {
1818
int::from_str(args[1])
1919
} else {
20-
1000000
20+
100000
2121
};
2222
let bodies: [Body::props] = NBodySystem::MakeNBodySystem();
2323
std::io::println(#fmt("%f", NBodySystem::energy(bodies)));

0 commit comments

Comments
 (0)