Why Eventmachine Defer slower than Ruby Thread?
- by allenwei
I have two scripts which using mechanize to fetch google index page. I assuming Eventmachine will faster than ruby thread, but not.
Eventmachine code cost "0.24s user 0.08s system 2% cpu 12.682 total"
Ruby Thread code cost "0.22s user 0.08s system 5% cpu 5.167 total "
Am I use eventmachine in wrong way?
Who can explain it to me, thanks!
1 …