> You've probably forgotten to disable the power-saving features of
> your CPU/OS. The runtimes are quite short, so this is running at a
> fraction of the CPU frequency for the first part and then at full
> speed towards the end of each run. The delay until the CPU goes
> full speed is more or less random or depends on unrelated things
> (e.g. more system-calls due to memory allocation from
> coroutine.create).
This isn't a personal machine, so I can't change the power saving settings. Why would "local x" cause more memory allocation for coroutine creation?
> Umm, what is running slower than what? The loop runs at exactly
> the same speed as a C version (using doubles).
The gcc version is slower. Probably this is just a quirk of this machine.
> BTW: Please don't call this a benchmark or try to infer anything
> from it. It's a trivial loop and has zero practical significance.