2011/12/21 François Boone
> Hi Josh,
>
> In macirb, I use:
> load "actionAffiche.rb"
> 461 queries, real time: 11.578257s
>
> In Xcode:
> I use rubygems and mysql macgems
> I have one Button and one table with two columns: when I press the button,
> the function actionAffiche is running. I think
Le 2011-12-21 à 15:17, Joshua Ballanco a écrit :
> 2011/12/20 François Boone
> Hi,
>
> I have written a function with 461 queries in a MySQL database.
> With macirb, it takes more or less 1s for all queries.
> I put my file in a Xcode project and when I click on a button, the action is
> to run
2011/12/20 François Boone
> Hi,
>
> I have written a function with 461 queries in a MySQL database.
> With macirb, it takes more or less 1s for all queries.
> I put my file in a Xcode project and when I click on a button, the action
> is to run this function.
> However, it takes more or less 1s f
Hi Uliano,
The way I get the JIT to preprocess your fib code is simply to call the method
once. For example I wrapped your code in a class (not that I am saying that it
is necessary to do this - its just the first thing i tried and it worked) and
then.
(for example)
afib.fib_iter(sum,10)
and
Thank you all
I didn't realize that JIT in macruby is compiling on the fly the code piece a
piece (I thought that a source file was the compilation unit) and so JIT time
to compile the block was inside my time metrics
I re-run the test looping many times and the results are speaking for themsel
To be significant, your test should have a higher reference value.
- Matt
On Sun, Nov 22, 2009 at 5:30 PM, Laurent Sansonetti
wrote:
> Hi Uliano,
>
> Thanks for trying MacRuby.
>
> Vincent is right. Your second test is actually running too fast (0.008167
> seconds here) that most of the time is
Hi Uliano,
Thanks for trying MacRuby.
Vincent is right. Your second test is actually running too fast
(0.008167 seconds here) that most of the time is spent JIT compiling
the block. Try to loop 10 times around the test and you should see
that further calls are faster than Ruby 1.9.1. Or tr
On Sun, Nov 22, 2009 at 1:25 AM, Uliano Guerrini
wrote:
> I'm new to Ruby BECAUSE of MacRuby
>
> While learning I run this simple exercise (the sum of even fibonacci less
> than 4 million) on both MacRuby 0.5.2 and ruby 1.9.1.
>
> the recursive version runs about 5 times faster on MacRuby and that
> While learning I run this simple exercise (the sum of even fibonacci less
> than 4 million) on both MacRuby 0.5.2 and ruby 1.9.1.
>
> the recursive version runs about 5 times faster on MacRuby and that was
> expected but the iterative runs about 1000!!! times slower, and that is
> *frankly* u