Has anyone else seen this behavior?
I created a simple Ruby script for giggles to see how fast it would count up on a couple machines I have. Here's the source:
for n in 1...1000000 do
I ran the script using "time ruby ./rubytest.rb"
On my not-newest-generation MacBook, running this locally took about 15 seconds.
If I SSH from work to my MacBook and run it over that SSH session (over the Internet), it takes nearly 55 seconds.
If I use "ssh localhost" on my MacBook, from the local console, running the script takes about 10 seconds.
Questions: Do Ruby scripts somehow get blocked when dumping output to a console, so it is slowed down when pumping data to a remote terminal? Does SSH compress a connection, so that when I SSH'd in locally the script was faster because it was compressing the display of data fast enough that even with the compression overhead the script could run faster because it was somehow acknowledging the output faster?