File tree Expand file tree Collapse file tree 4 files changed +50
-0
lines changed Expand file tree Collapse file tree 4 files changed +50
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ members = [
8383 " crates/apollo_task_executor" ,
8484 " crates/apollo_test_utils" ,
8585 " crates/apollo_time" ,
86+ " crates/bench_tools" ,
8687 " crates/blockifier" ,
8788 " crates/blockifier_reexecution" ,
8889 " crates/blockifier_test_utils" ,
@@ -211,6 +212,7 @@ async-trait = "0.1.79"
211212atomic_refcell = " 0.1.13"
212213axum = " 0.6.12"
213214base64 = " 0.13.0"
215+ bench_tools.path = " crates/bench_tools"
214216bincode = " 1.3.3"
215217bisection = " 0.1.0"
216218bitvec = " 1.0.1"
Original file line number Diff line number Diff line change 1+ [package ]
2+ name = " bench_tools"
3+ edition.workspace = true
4+ version.workspace = true
5+
6+ [lints ]
7+ workspace = true
8+
9+ [dependencies ]
10+ clap = { workspace = true , features = [" derive" ] }
Original file line number Diff line number Diff line change 1+ use clap:: { Parser , Subcommand } ;
2+
3+ #[ derive( Parser ) ]
4+ #[ command( about = "Benchmark runner and comparison tool for CI." ) ]
5+ struct Cli {
6+ #[ command( subcommand) ]
7+ command : Commands ,
8+ }
9+
10+ #[ derive( Subcommand ) ]
11+ enum Commands {
12+ /// Run benchmarks and output results.
13+ Run {
14+ /// Package name to run benchmarks for.
15+ #[ arg( short, long) ]
16+ package : String ,
17+ /// Output directory for results.
18+ #[ arg( short, long) ]
19+ out : String ,
20+ } ,
21+ }
22+
23+ fn main ( ) {
24+ let cli = Cli :: parse ( ) ;
25+
26+ match cli. command {
27+ Commands :: Run { package : _, out : _ } => {
28+ unimplemented ! ( )
29+ }
30+ }
31+ }
You can’t perform that action at this time.
0 commit comments