ComputerCraft performance factors
ComputerCraft performance is primarily affected by yielding functions and peripheral calls, which interact with Minecraft's main thread and make benchmarking complex.
- Code execution speed in ComputerCraft (CC) is slowed down by any code, but functions that yield (like `sleep` or inventory peripheral calls) are the biggest culprits as they pause the coroutine until the next game tick.
- CC code runs on a separate thread, so performance involves both pure compute time on the server's CPU and synchronization delays with the main Minecraft world thread, especially for peripheral calls.
- Benchmarking CC code is difficult because results vary based on server load and scheduling, and are not transferable between different server setups. `os.epoch` can measure it, but the results might be inconsistent.
- Limitations include a maximum of 127 coroutines and the issue of too many parallel physical actions choking the server, as seen with large furnace arrays or complex emulators.


