about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-21 18:21:56 +0000
committerbors <bors@rust-lang.org>2015-09-21 18:21:56 +0000
commit5120f4a3f95f6695c711839b3cc8551303bee0e3 (patch)
treef8753487cb8a9d18c5c8f983d16b85dfa33ec209
parent547fd5c11e6902e2f9748e7b46893211b36da421 (diff)
parent78eee36e5bb74f8e969d569a3a9372e47f9e5629 (diff)
downloadrust-5120f4a3f95f6695c711839b3cc8551303bee0e3.tar.gz
rust-5120f4a3f95f6695c711839b3cc8551303bee0e3.zip
Auto merge of #28562 - llogiq:shootout, r=alexcrichton
Since 1.3.0 the BufWriter has seen tremendous speedups. So when I use it in the shootout benchmarks, I see some nice speedup (which up to 1.2.0 was nixed by the pessimizations during initialization).
-rw-r--r--src/test/bench/shootout-fasta-redux.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/bench/shootout-fasta-redux.rs b/src/test/bench/shootout-fasta-redux.rs
index 963a007c685..bfdbb67dfd0 100644
--- a/src/test/bench/shootout-fasta-redux.rs
+++ b/src/test/bench/shootout-fasta-redux.rs
@@ -41,6 +41,7 @@
 use std::cmp::min;
 use std::env;
 use std::io;
+use std::io::BufWriter;
 use std::io::prelude::*;
 
 const LINE_LEN: usize = 60;
@@ -214,7 +215,7 @@ fn main() {
     };
 
     let stdout = io::stdout();
-    let mut out = stdout.lock();
+    let mut out = BufWriter::new(stdout.lock());
 
     out.write_all(b">ONE Homo sapiens alu\n").unwrap();
     {