bench: Lower the default inputs on many shootout benchmarks
Make them run a bit faster during normal testing
This commit is contained in:
parent
1588ae204e
commit
7e6ce6637e
5 changed files with 5 additions and 5 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue