This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfg: version 1.4.0-dev (474ad2fc7 2015-09-08) | |
cfg: build triple i686-unknown-linux-gnu | |
cfg: host triples i686-unknown-linux-gnu | |
cfg: target triples i686-unknown-linux-gnu | |
cfg: host for i686-unknown-linux-gnu is i386 | |
cfg: os for i686-unknown-linux-gnu is unknown-linux-gnu | |
cfg: good valgrind for i686-unknown-linux-gnu is 1 | |
cfg: using CC=gcc (CFG_CC) | |
cfg: enabling valgrind run-pass tests (CFG_ENABLE_VALGRIND_RPASS) | |
cfg: valgrind-rpass command set to "/usr/bin/valgrind" --error-exitcode=100 --fair-sched=try --quiet --soname-synonyms=somalloc=NONE --suppressions=/home/andre/projects/rust/src/etc/x86.supp --tool=memcheck --leak-check=full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! rustc -C opt-level=3 --test cowbell.rs && ./cowbell --bench | |
//! | |
//! running 8 tests | |
//! test empty ... bench: 0 ns/iter (+/- 0) | |
//! test format_str ... bench: 70 ns/iter (+/- 2) | |
//! test format_str_cow ... bench: 76 ns/iter (+/- 0) | |
//! test format_string ... bench: 75 ns/iter (+/- 0) | |
//! test format_string_cow ... bench: 78 ns/iter (+/- 1) | |
//! test to_cow ... bench: 2 ns/iter (+/- 0) | |
//! test to_owned_cow ... bench: 27 ns/iter (+/- 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/projects/rust$ ./configure --enable-compiler-docs | |
configure: looking for configure programs | |
configure: found program 'cmp' | |
configure: found program 'mkdir' | |
configure: found program 'printf' | |
configure: found program 'cut' | |
configure: found program 'head' | |
configure: found program 'grep' | |
configure: found program 'xargs' | |
configure: found program 'cp' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test)] | |
extern crate test; | |
use std::mem; | |
use std::intrinsics::copy; | |
fn rotate(x: &mut [i32]) { | |
let mut prev = x[0]; | |
for place in x.iter_mut().rev() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test)] | |
#![feature(step_by)] | |
extern crate test; | |
fn for_loop() -> usize { | |
let mut counter = 1; | |
for i in (0..1_000_000) { | |
counter += test::black_box(i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test, rand)] | |
/// benchmarks for different map implementation | |
extern crate test; | |
extern crate rand; | |
use test::Bencher; | |
use rand::Rng; | |
use std::mem::replace; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gnu.trove.set.TIntSet; | |
import gnu.trove.set.hash.TIntHashSet; | |
import java.util.concurrent.ThreadLocalRandom; | |
import net.openhft.collect.set.hash.HashIntSet; | |
import com.google.caliper.Benchmark; | |
import com.google.caliper.runner.CaliperMain; |
NewerOlder