@@ -83,7 +83,8 @@ fn generate_julia_benchmark(manifest: &Manifest, units: &[TranslationUnit]) -> S
8383 writeln ! ( out, "# Auto-generated by julianiser — benchmark script" ) . expect ( "TODO: handle error" ) ;
8484 writeln ! ( out, "# Project: {}" , manifest. project. name) . expect ( "TODO: handle error" ) ;
8585 writeln ! ( out, "#" ) . expect ( "TODO: handle error" ) ;
86- writeln ! ( out, "# Run with: julia --project=. benchmarks/benchmark.jl" ) . expect ( "TODO: handle error" ) ;
86+ writeln ! ( out, "# Run with: julia --project=. benchmarks/benchmark.jl" )
87+ . expect ( "TODO: handle error" ) ;
8788 writeln ! ( out) . expect ( "TODO: handle error" ) ;
8889
8990 writeln ! ( out, "using BenchmarkTools" ) . expect ( "TODO: handle error" ) ;
@@ -112,7 +113,8 @@ fn generate_julia_benchmark(manifest: &Manifest, units: &[TranslationUnit]) -> S
112113 writeln ! ( out, "println(\" =\" ^60)" ) . expect ( "TODO: handle error" ) ;
113114 writeln ! ( out) . expect ( "TODO: handle error" ) ;
114115
115- writeln ! ( out, "# Warm up Julia's JIT compiler before benchmarking." ) . expect ( "TODO: handle error" ) ;
116+ writeln ! ( out, "# Warm up Julia's JIT compiler before benchmarking." )
117+ . expect ( "TODO: handle error" ) ;
116118 writeln ! ( out, "println(\" Warming up JIT...\" )" ) . expect ( "TODO: handle error" ) ;
117119 for unit in units {
118120 writeln ! ( out, "try" ) . expect ( "TODO: handle error" ) ;
@@ -147,7 +149,8 @@ fn generate_julia_benchmark(manifest: &Manifest, units: &[TranslationUnit]) -> S
147149 unit. module_name
148150 )
149151 . expect ( "TODO: handle error" ) ;
150- writeln ! ( out, "display(bench_{})" , to_snake( & unit. module_name) ) . expect ( "TODO: handle error" ) ;
152+ writeln ! ( out, "display(bench_{})" , to_snake( & unit. module_name) )
153+ . expect ( "TODO: handle error" ) ;
151154 writeln ! ( out, "println()" ) . expect ( "TODO: handle error" ) ;
152155 writeln ! ( out) . expect ( "TODO: handle error" ) ;
153156 }
@@ -238,8 +241,10 @@ fn generate_benchmark_runner(manifest: &Manifest, units: &[TranslationUnit]) ->
238241
239242 match unit. language {
240243 SourceLanguage :: Python => {
241- writeln ! ( out, "if command -v python3 &> /dev/null; then" ) . expect ( "TODO: handle error" ) ;
242- writeln ! ( out, " echo \" Timing: python3 {}\" " , unit. source_path) . expect ( "TODO: handle error" ) ;
244+ writeln ! ( out, "if command -v python3 &> /dev/null; then" )
245+ . expect ( "TODO: handle error" ) ;
246+ writeln ! ( out, " echo \" Timing: python3 {}\" " , unit. source_path)
247+ . expect ( "TODO: handle error" ) ;
243248 writeln ! (
244249 out,
245250 " time python3 \" $PROJECT_DIR/../{}\" 2>&1 || echo \" (Python script failed or not found)\" " ,
@@ -255,8 +260,10 @@ fn generate_benchmark_runner(manifest: &Manifest, units: &[TranslationUnit]) ->
255260 writeln ! ( out, "fi" ) . expect ( "TODO: handle error" ) ;
256261 }
257262 SourceLanguage :: R => {
258- writeln ! ( out, "if command -v Rscript &> /dev/null; then" ) . expect ( "TODO: handle error" ) ;
259- writeln ! ( out, " echo \" Timing: Rscript {}\" " , unit. source_path) . expect ( "TODO: handle error" ) ;
263+ writeln ! ( out, "if command -v Rscript &> /dev/null; then" )
264+ . expect ( "TODO: handle error" ) ;
265+ writeln ! ( out, " echo \" Timing: Rscript {}\" " , unit. source_path)
266+ . expect ( "TODO: handle error" ) ;
260267 writeln ! (
261268 out,
262269 " time Rscript \" $PROJECT_DIR/../{}\" 2>&1 || echo \" (R script failed or not found)\" " ,
0 commit comments