HyperScript 1.7.11
The limit on how long a loop may run is now a setting, and there is a ready-made speed test.
Added
loop-limitinconfig.yml(100000 by default, from 1000 to 50000000). It is the most roundsloop N timesaccepts, and how often awhileloop may go round without awaitbefore it is stopped. It used to be fixed at 100000. The message when a loop is refused now names the setting. Aconfig.ymlfrom an older version has no such line and keeps 100000.SpeedTest.hs, a ready-made script:/speedtest [rounds]times twelve kinds of work, from adding to a local variable up to asking the world for a block, and says for each how long it took and how many it would do in a second. That makes 39 scripts.
First speed numbers from a live server
Measured on Paper 26.2 with a one-line loop: 100,000 rounds of add 1 to _k in 1 to 3 milliseconds once warmed up (10 ms the first time), which is about fifty million simple steps a second. A server tick is 50 ms.
That is the cheapest thing a script can do. Lines that ask the server for something cost more, and the speed test shows how much.