On Dec 1, 2010, at 3:50 PM, Laurent Sansonetti wrote:
> Before:
>
> $ time /usr/local/bin/macruby -e "text=File.read('/tmp/foo.txt');
> freq=Hash.new(0); text.scan(/\w+/) {}"
>
> real 0m2.430s
> user 0m1.628s
> sys 0m1.030s
>
> After :)
>
> $ time ./miniruby -e "text=File.read('/tmp/foo.txt'); freq=Hash.new(0);
> text.scan(/\w+/) {}"
>
> real 0m0.121s
> user 0m0.100s
> sys 0m0.015s
Two orders of magnitude faster! *Nice*!
- Jordan
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel