Skip to content

Commit

Permalink
Change loop test program
Browse files Browse the repository at this point in the history
  • Loading branch information
mliezun committed Nov 11, 2023
1 parent 56ed0d5 commit 5faa106
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ grotsky:
grotsky-rs:
@ mkdir -p $(BUILD_DIR)
@ cargo build --release
@ cp target/release/grotsky-rs build/
9 changes: 6 additions & 3 deletions test/benchmark/loop.gr
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
let start = io.clock()
let a = 1
while a < 10000000 {
a = a + 1
fn test() {
let a = 1
while a < 10000000 {
a = a + 1
}
}
test()
io.println(io.clock() - start)

0 comments on commit 5faa106

Please sign in to comment.