Skip to content

Commit

Permalink
Fix errors in output file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Hafskjold Thoresen committed Dec 7, 2017
1 parent b68ef9b commit 553fd7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bench/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub struct BenchIdentifier {
impl BenchIdentifier {
pub fn string(&self) -> String {
format!(
"{}::{}::{}",
"{}::{}::{:02}",
self.variant,
self.name,
self.threads
Expand Down
2 changes: 1 addition & 1 deletion benchmark-runner/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SCHEMES="nothing hp hp-spin ebr cb"
THREADS="1 2 4"
DATE=`date +"%Y-%m-%d-%H:%M:%S"`

OUTPUT="output"
OUTPUT="output-$DATE"
if [[ ! -d "$OUTPUT" ]] ; then mkdir "$OUTPUT" ; fi

export RUSTFLAGS="-C target-cpu=native -C opt-level=3"
Expand Down
2 changes: 1 addition & 1 deletion benchmark-runner/src/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub mod hp {
let mut b = bench::ThreadBencher::<State, hp::JoinHandle<()>>::new(state, num_threads);
b.before(|state| while let Some(_) = state.queue.pop() {});
b.thread_bench(queue_push);
b.into_stats(format!("{}:::queue::push::{}", NAME, num_threads))
b.into_stats(format!("{}::queue::push::{}", NAME, num_threads))
}

pub fn queue_pop(num_threads: usize) -> bench::BenchStats {
Expand Down

0 comments on commit 553fd7a

Please sign in to comment.