Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Fix cinterop numerical benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Elena Lepilkina authored and LepilkinaElena committed Nov 2, 2020
1 parent 4a73de7 commit accf52d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions performance/numerical/src/main/kotlin-native/launcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ fun konanBellardPi() {
}

fun clangBellardPi() {
for (n in 1 .. 1000 step 9)
cinterop.pi_nth_digit(n)
for (n in 1 .. 1000 step 9) {
val result = cinterop.pi_nth_digit(n)
Blackhole.consume(result)
}
}

0 comments on commit accf52d

Please sign in to comment.