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).
This commit is contained in:
commit
5120f4a3f9
@ -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();
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user