bench: Modify shootout-k-nucleotide to not read from the filesystem
This commit is contained in:
parent
a884044066
commit
03e186cd04
2 changed files with 83344 additions and 1 deletions
83337
src/test/bench/shootout-k-nucleotide.data
Normal file
83337
src/test/bench/shootout-k-nucleotide.data
Normal file
File diff suppressed because it is too large
Load diff
|
@ -119,7 +119,13 @@ fn make_sequence_processor(sz: uint, from_parent: comm::port<[u8]>, to_parent: c
|
|||
// given a FASTA file on stdin, process sequence THREE
|
||||
fn main(args: [str]) {
|
||||
let rdr = if os::getenv("RUST_BENCH").is_some() {
|
||||
result::get(io::file_reader("./shootout-fasta.data"))
|
||||
// FIXME: Using this compile-time env variable is a crummy way to
|
||||
// get to this massive data set, but #include_bin chokes on it
|
||||
let path = path::connect(
|
||||
#env("CFG_SRC_DIR"),
|
||||
"src/test/bench/shootout-k-nucleotide.data"
|
||||
);
|
||||
result::get(io::file_reader(path))
|
||||
} else {
|
||||
io::stdin()
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue