Skip to content

Commit 0ff933b

Browse files
committed
Format code
1 parent e7dff70 commit 0ff933b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

examples/src/main/scala/VirtualThreadsNativeJvmBenchmark.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import ox.*
22

33
import java.util.concurrent.atomic.AtomicLong
44

5-
/** Spawns 100,000 virtual threads in a supervised scope, each incrementing a shared counter,
6-
* then joins all. Measures wall-clock time to compare JVM vs Scala Native performance.
5+
/** Spawns 100,000 virtual threads in a supervised scope, each incrementing a shared counter, then joins all. Measures wall-clock time to
6+
* compare JVM vs Scala Native performance.
77
*
88
* Prerequisites: JDK 21+ (JVM), clang/LLVM 16+ (Native).
99
*
@@ -40,3 +40,5 @@ object VirtualThreadsNativeJvmBenchmark:
4040

4141
assert(counter.get() == n, s"Expected $n, got ${counter.get()}")
4242
println(s"Spawned and joined $n virtual threads in ${elapsed}ms")
43+
end main
44+
end VirtualThreadsNativeJvmBenchmark

0 commit comments

Comments
 (0)