rhai/scripts/speed_test.rhai
2020-03-18 10:40:07 +08:00

13 lines
184 B
Plaintext

// This script runs 1 million iterations
// to test the speed of the scripting engine.
let x = 1_000_000;
print("Ready... Go!");
while x > 0 {
x = x - 1;
}
print("Finished.");