Skip to content
Open

Test #95

Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions Benchmarks/Main.lean
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import Ix.Benchmark.Bench

def add' (input: Nat): IO Nat := do
pure $ input + 1
def sub (input: Nat): IO Nat := do
pure $ input - 1

def addBench' := bgroup "Add'" [
benchIO "add' 1" add' 1,
benchIO "add' 10" add' 10
def subBench := bgroup "Sub" [
benchIO "sub 1" sub 1,
benchIO "sub 10" sub 10
] { oneShot := true }

def main : IO Unit := do
let _result ← addBench'
let _result ← subBench
2 changes: 1 addition & 1 deletion lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lean_lib «Template» where
lean_exe "template" where
root := `Main

lean_exe "bench-test" where
lean_exe "bench-test-new" where
root := `Benchmarks.Main

script "get-exe-targets" := do
Expand Down
Loading