-
-
Save billdawson/1169054 to your computer and use it in GitHub Desktop.
Various V8 perf test results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rhino (Interpreted) | |
------------------- | |
Score: 362 | |
Richards: 425 | |
DeltaBlue: 340 | |
Crypto: 369 | |
RayTrace: 535 | |
EarleyBoyer: 474 | |
RegExp: 108 | |
Splay: 557 | |
Chrome 9.0.597.45 (V8) | |
------------------------------ | |
Score: 5752 | |
Richards: 6012 | |
DeltaBlue: 6665 | |
Crypto: 6367 | |
RayTrace: 7282 | |
EarleyBoyer: 18687 | |
RegExp: 2192 | |
Splay: 2738 | |
Firefox 4.0b9 (Jaegermonkey) | |
---------------------------------- | |
Score: 4355 | |
Richards: 7858 | |
DeltaBlue: 4390 | |
Crypto: 8073 | |
RayTrace: 3297 | |
EarleyBoyer: 4508 | |
RegExp: 1576 | |
Splay: 4555 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binding to a Java class that increments a counter for every property set and prints the value on propery get. JS loop of 10,000 iterations sets the same property to tht iterator, i.e: | |
//pseudo java | |
class A { | |
protected String a; | |
protected int counter = 0; | |
public void setA(String value) { | |
counter++; | |
this.a = value; | |
} | |
public void getA() { | |
Log.d(TAG, "counter="+counter); | |
return this.a; | |
} | |
} | |
// pseudo js | |
for (var i = 0; i < 10000; i++) { | |
a.testProperty = ""+i; | |
} | |
var x = a.testProperty; | |
v8 on Evo / Froyo 2.2 | |
---------------------- | |
630ms, 800ms, 570ms, 650ms | |
Rhino (evaluated) on Evo / Froyo 2.2 | |
------------------------------------- | |
1050ms, 1160ms, 1300ms, 1250ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global Ti, Titanium, alert, JSON, require, setTimeout, setInterval */ | |
// TEST ONE WITH PROTOTYPE | |
function User() {} | |
var timetest = new Date(); | |
var user = new User(); | |
for(var i = 0; i < 50000; i++) { | |
User.prototype[i] = {}; | |
} | |
Ti.API.info("test1: " + (new Date() - timetest)); | |
// TEST TWO Module Pattern | |
var User = function() { | |
var obj = {}; | |
for(var i = 0; i < 50000; i++) { | |
obj[i] = {}; | |
} | |
return obj; | |
}; | |
timetest = new Date(); | |
test = new User(); | |
Ti.API.info("test2: " + (new Date() - timetest)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Android 2.2 Emulator, default AVD options | |
v8 | |
--- | |
Run 1: | |
test 1: 440ms | |
test 2: 411ms | |
Run 2: | |
test 1: 437ms | |
test 2: 572ms | |
Run 3: | |
test 1: 558ms | |
test 2: 163ms | |
Rhino (compiled) | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(**NOTE**: these figures are from running the tests inside a Titanium app's app.js. Titanium Mobile SDK 1.8.0 (dev) f7c0117) | |
Rhino (compiled), T-Mobile G-Slate, Android 3.0.1 | |
------------------------------------------------- | |
Run 1: | |
test 1: 2371 | |
test 2: 1165 | |
Run 2: | |
test 1: 2244 | |
test 2: 1097 | |
Run 3: | |
test 1: 2286 | |
test 2: 1090 | |
Rhino (compiled), HTC Desire, Android 2.2 | |
------------------------------------------- | |
Run 1: | |
test 1: 2996 | |
test 2: 1448 | |
Run 2: | |
test 1: 3122 | |
test 2: 1404 | |
Run 3: | |
test 1: 3055 | |
test 2: 1428 | |
JavaScriptCore, iPhone 4, iOS version __ | |
----------------------------------------- | |
Run 1: | |
test 1: 595 | |
test 2: 434 | |
Run 2: | |
test 1: 604 | |
test 2: 402 | |
Run 3: | |
test 1: 641 | |
test 2: 427 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**NOTE** These figures come from native browsers or WebView in Titanium 1.8.0 f7c0117 accessing this page: | |
http://j.mp/ovv690 | |
That page has the same tests as above on it. | |
Google Chrome 13.0.782.215 on OS X 10.6.8 | |
---------------------------------------- | |
Run 1: | |
test1: 7 | |
test2: 5 | |
Run 2: | |
test 1: 9 | |
test 2: 3 | |
Run 3: | |
test 1: 6 | |
test 2: 4 | |
Safari 5.1 on OS X 10.6.8 | |
------------------------- | |
Run 1: | |
test 1: 25 | |
test 2: 23 | |
Run 2: | |
test 1: 24 | |
test 2: 24 | |
Run 3: | |
test 1: 29 | |
test 2: 31 | |
Safari on iPhone 4, iOS version __ | |
----------------------------------- | |
Run 1: | |
test 1: 331 | |
test 2: 295 | |
Run 2: | |
test 1: 334 | |
test 2: 355 | |
Run 3: | |
test 1: 312 | |
test 2: 264 | |
Android 2.2 Native Browser (HTC Desire) | |
---------------------------------------- | |
Run 1: | |
test 1: 129 | |
test 2: 69 | |
Run 2: | |
test 1: 143 | |
test 2: 89 | |
Run 3: | |
test 1: 263 | |
test 2: 118 | |
Android 3.0.1 Native Browser (T-Mobile G-Slate) | |
----------------------------------------------- | |
Run 1: | |
test 1: 46 | |
test 2: 160 | |
Run 2: | |
test 1: 23 | |
test 2: 64 | |
Run 3: | |
test 1: 22 | |
test 2: 60 | |
Titanium WebView, iPhone 4, iOS version __ | |
------------------------------------------- | |
Run 1: | |
test 1: 332 | |
test 2: 338 | |
Run 2: | |
test 1: 312 | |
test 2: 315 | |
Run 3: | |
test 1: 310 | |
test 2: 314 | |
Titanium WebView, HTC Desire, Android 2.2 | |
----------------------------------------- | |
Run 1: | |
test 1: 181 | |
test 2: 94 | |
Run 2: | |
test 1: 174 | |
test 2: 113 | |
Run 3: | |
test 1: 177 | |
test 2: 90 | |
Titanium WebView, T-Mobile G-Slate, Android 3.0.1 | |
------------------------------------------------- | |
Run 1: | |
test 1: 44 | |
test 2: 43 | |
Run 2: | |
test 1: 41 | |
test 2: 41 | |
Run 3: | |
test 1: 42 | |
test 2: 42 |
Well hopefully someday! We could sure use it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting stuff! ;0
Is V8 coming to Ti Android?