I wrote a simple Fiber benchmark (based on an earlier one I found).
I ran it one MRI ruby 1.9.2-p180 and -p290. The performance
difference was dramatic. p290 executed the benchmark 25-50
times faster. I didn’t plot the scaling factor, cuz I don’t know an easy
graph plotting tool.
Does anyone know why there is this dramatic Fiber preformance
difference?
Later, I played with that after my original post. But even execution
times (rather than
creation+execution) show significant speed up between p180 and p290 .
It is still 1.35s versus .252s for execution. I am happy and all. I was
hoping someone could point out if it was GC or Fiber optimizations.
I am relatively new to Ruby and I find Fibers facinating. I once
played with continuation type code in a C++ eventloop; like
em-synchrony does.
Thanks,
-LLeo
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.