Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add bench
  • Loading branch information
forfudan committed Mar 29, 2025
commit 5972e7ad0cf2636f247cc1d04ebd3fea816bc20d
5 changes: 5 additions & 0 deletions benches/bigdecimal/bench.mojo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from bench_bigdecimal_add import main as bench_add
from bench_bigdecimal_subtract import main as bench_sub
from bench_bigdecimal_multiply import main as bench_multiply
from bench_bigdecimal_divide import main as bench_divide


fn main() raises:
Expand All @@ -12,6 +13,7 @@ This is the BigInt Benchmarks
add: Add
sub: Subtract
mul: Multiply
div: Divide (true divide)
all: Run all benchmarks
q: Exit
=========================================
Expand All @@ -24,10 +26,13 @@ q: Exit
bench_sub()
elif command == "mul":
bench_multiply()
elif command == "div":
bench_divide()
elif command == "all":
bench_add()
bench_sub()
bench_multiply()
bench_divide()
elif command == "q":
return
else:
Expand Down
Loading