Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'cache1-bench' of github.com:cmu-db/15721-s24-cache-benc…
Browse files Browse the repository at this point in the history
…hmark into cache1-bench
  • Loading branch information
unw9527 committed May 1, 2024
2 parents 8a8ba5a + 01bfb7e commit 74ca081
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
use client_benchmark::{benchmark::{parse_trace, run_trace}, utils};
use client_benchmark::{
benchmark::{parse_trace, run_trace},
utils,
};
use std::path::PathBuf;

#[tokio::main]
async fn main() {
// benchmark_sync().await;
// benchmark_parallel().await;
let trace = parse_trace(PathBuf::from("traces/trace_100m.csv")).unwrap();
let trace = parse_trace(PathBuf::from("traces/trace_1m_parallel.csv")).unwrap();
run_trace(trace, &utils::setup_client_1).await;
}
}
21 changes: 21 additions & 0 deletions traces/trace_1m_parallel.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
timestamp,file_index
0,1
0,2
0,1
1,8
1,2
1,2
1,1
2,1
2,3
2,5
2,1
3,2
3,3
5,3
5,2
5,2
6,2
6,8
6,2
6,1

0 comments on commit 74ca081

Please sign in to comment.