Files
Nuake-custom/Nuake/Vendors/wren/test/benchmark/api_call.wren
2025-01-30 22:41:17 -05:00

10 lines
251 B
Plaintext

class Benchmark {
foreign static call(iterations)
}
var result = Benchmark.call(1000000)
// Returns false if it didn't calculate the right value. Otherwise returns the
// elapsed time.
System.print(result is Num)
System.print("elapsed: %(result)")