Skip to content

Commit

Permalink
Merge pull request #252 from rust-lang-nursery/fixup-bench
Browse files Browse the repository at this point in the history
Touch up benchmarks.
  • Loading branch information
BurntSushi committed Jun 20, 2016
2 parents e25dcd1 + 6231325 commit 6ab5646
Show file tree
Hide file tree
Showing 6 changed files with 83,389 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bench/compile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# Enable SIMD.
export RUSTFLAGS="-C target-feature=+ssse3"
export RUSTFLAGS="-C target-cpu=native"

exec cargo build \
--release \
Expand Down
3 changes: 2 additions & 1 deletion bench/run
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ if [ $# = 0 ] || [ $1 = '-h' ] || [ $1 = '--help' ]; then
fi

# Enable SIMD.
export RUSTFLAGS="-C target-feature=+ssse3"
# export RUSTFLAGS="-C target-feature=+ssse3"
export RUSTFLAGS="-C target-cpu=native"

which="$1"
shift
Expand Down
2 changes: 1 addition & 1 deletion bench/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ macro_rules! regex {
}

#[cfg(feature = "re-rust-bytes")]
#[cfg(not(feature = "re-rust-plugin"))]
macro_rules! regex {
($re:expr) => {{
// Always enable the Unicode flag for byte based regexes.
Expand Down Expand Up @@ -250,4 +249,5 @@ macro_rules! bench_find {

mod ffi;
mod misc;
mod regexdna;
mod sherlock;

0 comments on commit 6ab5646

Please sign in to comment.