Created
March 1, 2009 08:05
-
-
Save azu/72265 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
ary_normal: 1525ms | |
ary_normal_kai: 1364ms | |
ary_normal: 1532ms | |
ary_normal_kai: 1343ms | |
ary_normal: 1523ms | |
ary_normal_kai: 1374ms | |
ary_normal: 1527ms | |
ary_normal_kai: 1398ms | |
ary_normal: 1539ms | |
ary_normal_kai: 1388ms | |
ary_normal: 1529ms | |
ary_normal_kai: 1388ms | |
ary_normal: 1533ms | |
ary_normal_kai: 1381ms | |
ary_normal: 1537ms | |
ary_normal_kai: 1351ms | |
ary_normal: 1536ms | |
ary_normal_kai: 1358ms | |
function _time(data){ | |
flash.external.ExternalInterface.call("console.time", data); | |
} | |
function _timeEnd(data){ | |
flash.external.ExternalInterface.call("console.timeEnd", data); | |
} | |
var ary = new Array(1000000); | |
_time("ary_normal"); | |
for (var i = 0; i < ary.length; i++) { | |
; | |
} | |
_timeEnd("ary_normal"); | |
_time("ary_normal_kai"); | |
for (var i = 0, l = ary.length; i < l; i++) { | |
; | |
} | |
_timeEnd("ary_normal_kai"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment