diff --git a/benchmarks/string_builder.mojo b/benchmarks/string_builder.mojo index d98fa05..6479a63 100644 --- a/benchmarks/string_builder.mojo +++ b/benchmarks/string_builder.mojo @@ -53,17 +53,17 @@ fn main() raises: report = benchmark.run[benchmark_string_builder[100]](max_iters=20) report.print(benchmark.Unit.ms) - print("Running benchmark_concat - 1000 batches") - report = benchmark.run[benchmark_concat[1000]](max_iters=20) - report.print(benchmark.Unit.ms) + # print("Running benchmark_concat - 1000 batches") + # report = benchmark.run[benchmark_concat[1000]](max_iters=20) + # report.print(benchmark.Unit.ms) print("Running benchmark_string_builder - 1000 batches") report = benchmark.run[benchmark_string_builder[1000]](max_iters=20) report.print(benchmark.Unit.ms) - print("Running benchmark_concat - 10000 batches") - report = benchmark.run[benchmark_concat[10000]](max_iters=2) - report.print(benchmark.Unit.ms) + # print("Running benchmark_concat - 10000 batches") + # report = benchmark.run[benchmark_concat[10000]](max_iters=2) + # report.print(benchmark.Unit.ms) print("Running benchmark_string_builder - 10000 batches") report = benchmark.run[benchmark_string_builder[10000]](max_iters=20) diff --git a/scripts/benchmarks.sh b/scripts/benchmarks.sh index 90b6264..a30a371 100755 --- a/scripts/benchmarks.sh +++ b/scripts/benchmarks.sh @@ -7,12 +7,13 @@ PACKAGE_NAME=gojo mkdir -p $TEMP_DIR echo "[INFO] Building $PACKAGE_NAME package and running benchmarks." -cp -R benchmarks/ $TEMP_DIR +cp -a benchmarks/. $TEMP_DIR magic run mojo package src/$PACKAGE_NAME -o $TEMP_DIR/$PACKAGE_NAME.mojopkg echo "[INFO] Running benchmarks..." magic run mojo $TEMP_DIR/scanner.mojo magic run mojo $TEMP_DIR/string_builder.mojo +magic run mojo $TEMP_DIR/buffer.mojo echo "[INFO] Cleaning up the benchmarks directory." rm -R $TEMP_DIR