2020-03-16 14:50:12 +08:00
|
|
|
// This script runs 1 million iterations
|
|
|
|
// to test the speed of the scripting engine.
|
|
|
|
|
2020-04-11 16:06:57 +08:00
|
|
|
let now = timestamp();
|
2020-03-16 14:50:12 +08:00
|
|
|
let x = 1_000_000;
|
|
|
|
|
|
|
|
print("Ready... Go!");
|
|
|
|
|
2016-03-01 21:36:46 -05:00
|
|
|
while x > 0 {
|
2020-05-25 20:14:31 +08:00
|
|
|
x -= 1;
|
2016-03-01 21:36:46 -05:00
|
|
|
}
|
2020-03-16 14:50:12 +08:00
|
|
|
|
2020-05-30 10:30:21 +08:00
|
|
|
print("Finished. Run time = " + now.elapsed + " seconds.");
|