-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Marius Feraru wrote:
I remember I worked long time ago on a tool that consolidates different
runs of the same benchmark, I guess it could help us getting a better
overview... but I'm a mess, have no idea about the when, where or for.
Anyway, should be simple enough to write from scratch (maybe even in
JavaScript)... we'll see. ;-)
Hm, reply to myself, not good. But anyway, curiosity killed the cat. So
I baked a quick hack to see what are we talking about. Collin, prepare
to laugh :)
A. Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061222
Firefox/2.0.0.1
B. Opera/9.10 (X11; Linux i686; U; en)
C. Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
2.0.50727; FDM)
D. Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
E. Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.5 (like Gecko)
F. Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: 1.8.1.1)
Gecko/20061204 Firefox/2.0.0.1
G. Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/ 418.9.1
(KHTML, like Gecko) Safari/419.3
Method execution rate (per second) per browser:
Method A B C D E F G
Prototype 3535 18051 4355 4303 3929 9737 27397
Prototype-oneDiv 2635 17575 5294 5679 4070 7107 25974
String.replace 15625 9242 15974 20325 3660 28571 16920
String.split 7675 28169 9009 7407 3911 15432 23753
Top method per browser:
Method A B C D E F G AVG
Prototype 3 2 4 4 2 3 1 2.71
Prototype-oneDiv 4 3 3 3 1 4 2 2.86
String.replace 1 4 1 1 4 1 4 2.29
String.split 2 1 2 2 3 2 3 2.14
Collin, checkout the average column (AVG)? :)
So, String.replace gets most tops, but also gets most bottoms. :)
The funniest thing is that String.split looks like being the best
choice. UGLY! I always hated that solution (for its ugliness if nothing
else) ;-)
... please prove me I'm wrong :)
- --
Marius Feraru
-----BEGIN PGP SIGNATURE-----
iD8DBQFFn4OvtZHp/AYZiNkRAtWjAJ49RF5MXAFcccHbXNnjciurcRybtQCgjAqO
6//6zcb7E/ncp1oXGR7cXbs=
=l9DZ
-----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
-~----------~----~----~----~------~----~------~--~---