We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c00992 commit dc6bed2Copy full SHA for dc6bed2
Benchmarks/Main.lean
@@ -1,12 +1,12 @@
1
import Ix.Benchmark.Bench
2
3
-def add' (input: Nat): IO Nat := do
4
- pure $ input + 1
+def sub (input: Nat): IO Nat := do
+ pure $ input - 1
5
6
-def addBench' := bgroup "Add'" [
7
- benchIO "add' 1" add' 1,
8
- benchIO "add' 10" add' 10
+def subBench := bgroup "Sub" [
+ benchIO "sub 1" sub 1,
+ benchIO "sub 10" sub 10
9
] { oneShot := true }
10
11
def main : IO Unit := do
12
- let _result ← addBench'
+ let _result ← subBench
lakefile.lean
@@ -13,7 +13,7 @@ lean_lib «Template» where
13
lean_exe "template" where
14
root := `Main
15
16
-lean_exe "bench-test" where
+lean_exe "bench-test-new" where
17
root := `Benchmarks.Main
18
19
script "get-exe-targets" := do
0 commit comments