Merge pull request #529 from matthiaskrgr/bench

benchmarks: make them build again
This commit is contained in:
Ralf Jung
2018-11-17 14:48:42 +01:00
committed by GitHub
6 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ script:
- set -e
- |
# Test and install plain miri
cargo build --release --all-features &&
cargo build --release --all-features --all-targets &&
cargo test --release --all-features &&
cargo install --all-features --force --path .
- |
+1 -1
View File
@@ -37,7 +37,7 @@ build: false
test_script:
- set RUSTFLAGS=-g
- set RUST_BACKTRACE=1
- cargo build --release
- cargo build --release --all-targets --all-features
- cargo test --release
- set MIRI_SYSROOT=%USERPROFILE%\.xargo\HOST
- cargo test --release
+2 -2
View File
@@ -1,9 +1,9 @@
#![feature(test, rustc_private)]
extern crate test;
use test::Bencher;
use crate::test::Bencher;
mod helpers;
use helpers::*;
use crate::helpers::*;
#[bench]
fn fib(bencher: &mut Bencher) {
+2 -2
View File
@@ -8,7 +8,7 @@
use self::rustc_driver::{driver, Compilation};
use std::cell::RefCell;
use std::rc::Rc;
use test::Bencher;
use crate::test::Bencher;
pub struct MiriCompilerCalls<'a>(Rc<RefCell<&'a mut Bencher>>);
@@ -50,7 +50,7 @@ pub fn run(filename: &str, bencher: &mut Bencher) {
let entry_def_id = tcx.hir.local_def_id(entry_node_id);
bencher.borrow_mut().iter(|| {
eval_main(tcx, entry_def_id, None);
eval_main(tcx, entry_def_id, false);
});
state.session.abort_if_errors();
+2 -2
View File
@@ -1,9 +1,9 @@
#![feature(test, rustc_private)]
extern crate test;
use test::Bencher;
use crate::test::Bencher;
mod helpers;
use helpers::*;
use crate::helpers::*;
#[bench]
fn repeat(bencher: &mut Bencher) {
+2 -2
View File
@@ -1,9 +1,9 @@
#![feature(test, rustc_private)]
extern crate test;
use test::Bencher;
use crate::test::Bencher;
mod helpers;
use helpers::*;
use crate::helpers::*;
#[bench]
fn noop(bencher: &mut Bencher) {