Start a new game and run the following code:
Code: Select all
game.speed = 1
local start_tick = game.tick
local profiler = game.create_profiler(true)
script.on_event(defines.events.on_tick,
function(e)
profiler.restart()
if e.tick-start_tick == 1000 then
game.print(profiler)
script.on_event(defines.events.on_tick, nil)
end
profiler.stop()
end
)I would expect these results to be about the same. There is certainly some variability in the results, but not nearly enough to explain the results being given.

