Re:Ruby is too slow for programming competitions
by ClifReeder on Sunday April 21, 2013 @02:22PM
(#5585756)
This is a good point that I didn't consider. Running the 'just iterate over the range version' of this code with jruby:
[ Parent
| on HN ]
Re:Ruby is too slow for programming competitions
by digger250 on Monday April 22, 2013 @09:03AM
(#5589064)
When I run the benchmark in C-ruby (2.0.0) I get:
real 2m35.450s
user 2m35.257s
sys 0m0.139s
On jruby with invokedynamic: time ruby -Xcompile.invokedynamic=true file2.rb C-large-1.in
real 1m17.711s
user 1m15.618s
sys 0m0.830s
In jruby without invokedynamic
time ruby file2.rb C-large-1.in real 1m37.856s
user 1m39.260s
sys 0m0.854s
Re:Ruby is too slow for programming competitions
by aghoreyshi on Sunday April 21, 2013 @02:27PM
(#5585784)
What is sys time? The amount of time it's actually run on the processor?
Re:Ruby is too slow for programming competitions
by eatitraw on Sunday April 21, 2013 @02:34PM
(#5585811)
No, it is the amount of time your program spent in system calls: http://stackoverflow.com/questions/556405/what-do-real-user-...