I have tried on Safari and Firefox MAC, safari rocks with prototype :)
Browser: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:
1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Timing 10000 iterations of Prototype, Prototype-oneDiv,
String.replace, String.split...
Prototype: 1.027s @ 9737/s (n=10000)
Prototype-oneDiv: 1.407s @ 7107/s (n=10000)
String.replace: 0.350s @ 28571/s (n=10000)
String.split: 0.648s @ 15432/s (n=10000)
Rate Prototype-oneDiv Prototype String.split
String.replace
Prototype-oneDiv 7107/s -- -27%
-54% -75%
Prototype 9737/s 37% --
-37% -66%
String.split 15432/s 117% 58%
-- -46%
String.replace 28571/s 302% 193%
85% --
Tests duration: 3.432 seconds.
Total duration: 6.867 seconds.
Browser: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/
418.9.1 (KHTML, like Gecko) Safari/419.3
Timing 10000 iterations of Prototype-oneDiv, Prototype,
String.replace, String.split...
Prototype-oneDiv: .385s @ 25974/s (n=10000)
Prototype: .365s @ 27397/s (n=10000)
String.replace: .591s @ 16920/s (n=10000)
String.split: .421s @ 23753/s (n=10000)
Rate String.replace String.split Prototype-
oneDiv Prototype
String.replace 16920/s -- -29%
-35% -38%
String.split 23753/s 40% --
-9% -13%
Prototype-oneDiv 25974/s 54% 9%
-- -5%
Prototype 27397/s 62% 15%
5% --
Tests duration: 1.762 seconds.
Total duration: 5.619 seconds.
On Jan 6, 2007, at 9:00 AM, Marius Feraru wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Christophe Porteneuve wrote:
Great page, Marius, but I find oddly faster results in my Firefox 2
(Iceweasel branded, I run Debian):
Browser: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.1) Gecko/
20061024
Iceweasel/2.0 (Debian-2.0+dfsg-1)
Timing 1000 iterations of Prototype, Prototype-oneDiv,
String.replace,
String.split...
^ 1000 iterations. I used 10000 (ten thousands) iterations.
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----
iD8DBQFFn1cOtZHp/AYZiNkRAuWMAJ9GH49EazRLg+KP3EcEXs/824aUMQCfaubg
ZWJbemGuNwGGH+7HmO7Mb4Y=
=+e4V
-----END PGP SIGNATURE-----
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---