Fastest Loop

JavaScript performance comparison

Revision 25 of this test case created

Preparation code

 
<script>
Benchmark.prototype.setup = function() {
    var a = [1565,3105,2230,7246,7326,3517,1053,9922,5199,8072,4941,8026,5931,5812,6296,3002,4102,7183,1669,5494,9667,5133,5219,1115,8463,1538,4007,8958,1618,5180,1403,6243,2660,5674,9225,4743,2721,2355,6189,6831,3507,6143,4732,7410,3492,4560,3317,7568,2982,1061,7690,4634,8697,6324,6192,8591,8472,2656,9614,9974,3659,3965,8031,6280,3139,5765,4330,3874,8200,4584,6670,8037,5705,3204,4366,6423,2006,9779,8182,5826,1703,4456,7759,7586,4616,8469,4440,1212,8404,6161,9714,1484,4919,1854,6872,3077,1207,2136,4982,9655,5555,8049,8425,5628,9477,5862,6819,8799,9590,6157,1047,5241,9579,2141,7017,6316,5183,9055,5122,6182,6496,3042,4117,1671,8638,7075,4872,2712,2165,1860,8182,9534,6902,5688,2205,4344,3532,7920,4482,7713,6515,9512,2651,1730,4203,2839,2455,3544,6598,3830,4328,1403,4785,1855,6351,4924,8061,2197,4946,6317,7067,5462,9163,5394,4167,4361,8141,6054,3316,1550,7127,1334,3755,9444,4252,7586,3040,6497,2307,6829,8969,5161,4321,7437,1678,5160,5277,9228,5851,8343,5219,9581,5066,8060,5546,3511,1288,6917,1574,5837,7138,8906,6155,9128,1475,9510,1134,2995,7622,5734,5633,2440,7986,1949,8109,5431,9782,9453,5943,5861,8018,3196,6415,2815,1140,4593,6505,9792,1002,6648,2111,9670,6621,6738,6969,8167,3441,9223,1410,1280,9697,8923,4332,4184,9960,4471,8734,5708,2035,3100,9726,5466,1895,1854,9193,5171,9491,2501,2273,5157,8481,9257,5820,6019,2518,5022,3503,5817,6167,7922,6953,4724,8718,6277,6428,2409,7198,4069,5590,2136,5608,8085,3890,4801,7344,7277,8123,7689,6201,4024,9414,8104,1034,5379,6906,9718,3828,2603,2392,1462,3409,1390,9694,9050,4239,3028,1888,8127,3368,9850,9761,3306,1426,2390,1849,8761,5282,4882,7305,4700,5831,4855,2922,3358,3317,1065,8533,7916,1155,9355,9546,9282,6569,8007,7881,7368,5797,5139,6785,4871,4662,2836,3061,6975,3335,4763,2399,6430,9019,3547,8998,8244,4492,7173,2147,9090,8044,2458,8588,6166,4645,1761,5433,8365,3540,3078,2872,7680,9087,4716,9929,7881,1037,4548,4447,3029,9885,8198,3596,6070,3599,5790,5778,4025,1649,7665,6135,1197,8687,7703,1079,1015,3708,4579,6385,1520,5059,6067,5463,6999,7322,3135,9459,3880,5815,1004,3742,6842,1692,2202,9268,9978,9885,8044,1970,4014,9261,5233,3991,2957,2685,3327,4704,1732,4231,6645,9039,5932,5978,4404,6703,6739,4432,5987,6847,3034,7598,1796,4940,8431,8500,7741,1442,6947,8086,7371,4768,6542,5373,5444,6341,9193,2174,7143,8122,1885,8753,5321,2074,1575,1215,7307,4720,4372,7029,8038,1005,2968,5828,7015,1094,7468,2678,2820,7235,2570,1236,9594,2208,4076,2489,2049,8305,4670,4360,4099,4395,8572,1640,7858,4157,7885,2323,4688,2131,8151,6731,3969,7920,6312,7569,9496,2947,9536,7892,2311,7790,8295,4725,3950,2955,4335,7728,8364,5427,2086,8438,4859,9477,5297,1486,1576,3762,8735,9949,9092,1917,9918,8244,6263,4476,5495,8792,2547,4187,7566,4230,6455,1369,4047,2183,3206,2523,1428,9918,8166,9621,9470,5326,5142,2909,9887,1793,9648,9746,2932,4662,8715,6943,1203,3906,3230,8668,5786,9093,3182,9772,2027,9440,2639,8687,2612,8815,8957,4089,6184,4118,3222,1947,4260,4654,5200,4920,8216,3974,1562,2800,7248,2356,3743,2280,9727,9535,4477,2453,4031,4725,9903,6824,8926,8632,6074,2825,7452,1531,5934,2561,9941,5544,2225,3363,5845,2022,1444,3874,6796,4503,1860,4663,4786,2020,1057,4929,9959,2101,4903,5349,5315,7608,6939,5296,2031,1447,3175,1391,1976,8175,9999,7084,8457,4664,7476,1621,9813,2843,1899,8948,2155,3444,9527,8868,1898,7274,3809,2541,7806,7872,3718,9004,2793,3549,3882,2728,4324,9102,4572,8552,7950,7717,1250,3497,6538,9479,4366,6384,2767,6034,4249,8814,5116,2981,1051,4594,2777,8023,6527,2403,1328,8007,6339,1078,2881,2738,3969,8109,7013,4469,6011,2926,7673,7327,7595,9339,4233,6718,4914,3280,9441,2333,6167,2430,4543,5043,8408,4227,5628,6850,4515,9813,5054,8263,7442,2158,9983,5826,9586,5436,5275,9254,4476,8249,1261,6619,5882,7514,5367,5642,4707,6094,5101,1938,3200,9258,4109,9966,8857,3847,4818,2536,7730,6568,2331,8023,3215,8532,6672,2727,7635,5180,9635,1341,3472,2655,5527,3144,3185,2741,9374,1290,7385,3740,1028,6382,9273,3852,8373,5896,6640,9165,2645,9485,8340,8811,4403,1621,7838,6779,2923,2411,7551,2833,9645,8593,6418,6164,3064,7255,2573,6355,6344,5243,3288,1200,8644,7801,8621,6254,6677,8088,9630,7724,7845,8949,9848,5172,5813,9368,4758,1841,7707,6579,8545,1276,5037,1539,4564,4444,4442,9406,8760,7420,1795,9132,4675,4627,7821,8795,3018,5381,6144,9118,7157,8773,3508,7444,5975,7681,9683,6881,3000,8543,9288,2392,1982,6879,8871,4397,1603,4286,5864,8069,4693,7588,4375,2693,8380,8382,9629,5936,5554,6292,1054,2045,8103,9253,3269,3047,8807,5351,9084,7640,3198,8624,7965,1535,5004,4920,8824,6372,9820,9397,5129,3202,2329,3758,5875,3208,2866,4687,3265,9105,7000,6925,4931,2842,7370,8103,6726,5722,2592,4419,1751,4133,7390,9803,8277,4376,4768,5179,7868,9571,6506,7255,5037,6027,8102,6739,1865,2498,2137,9447,1257,5984,3223,4536,7025,5279,5429,1663,4606,9926,2155,7464,1558,2316,6635,8890,1569,7547,4728,9283,3832,1762,8615,6726,3160,1072,8292,2311,1339,4087,8593,6278,3293,6501,5911,2401,3858,1704,6754,9416,9974,4346,6470,1099,6539,7928,8065,2482,9559,5226,6399,2742,2191,4944,2045,1461,3994,6558,8381,3898,3086,2195,9060,8725,6271,7421,1831,8954,5176,9035,4528,9160,3942,3584,6703,2824,5175,3429,2348,9006,7361,7828,8583,2255,7691,2089,1249,2517,3442,6925,1075,1258,5920,5322,9568,9385,8925,6990,9329,1819,8065,2371,2680,1151,9064,8079,6301,1763,9428,1236,9929,6718,2538,9890,8565,3924,6332,1677,1164,9670,7599,4798,8912,1932,7562,8608,2107,7604,9694,5489,5497,7313,4687,9540,8597,3265,2233,6057,3774,6851,8991,2999,3532,6791,5441,9760,9291,2138,8361,4297,6298,2095,1870,4819,5996,7644,1672,7193,7389,4107,6303,2022,9796,2658,6184,5448,1874,6667,5110,5791,5222,1414,3717,5542,1670,2088,3927,1501,7518,6092,9621,4381,9286,9886,6438,9377,8044,5041,5441,4097,4902,2259,8567,3158,2090,8234,7255,8254,7581,1422,6694,5853,5193,9972,9339,8484,1096,7400,9450,7588,2616,4258,3987,5224,4260,1436,1746,2954,4198,6426,4225,2811,2633,2533,3198,3255,5269,8627,3097,5012,9060,8025,2995,5090,4758,7142,5386,4948,5350,5208,6044,7242,8880,4666,6460,8944,9942,1707,5489,2044,6702,7166,5508,5509,4217,5013,3504,2467,2366,4050,9713,4287,4240,1117,9349,5616,6851,3701,1434,6265,8653,6203,5130,2687,9711,8475,7627,8974,7710,8198,3644,2583,4147,4801,2718,4641,9665,1818,2905,2998,7667,7616,3311,4117,1791,2655,8528,3822,1175,3985,9758,8511,1599,9862,9431,5125,2193,5692,7030,8887,7622,5155,9286,7884,5140,9581,4828,9158,2135,4803,2777,5639,2467,1971,5034,5323,8925,4973,7920,7644,9261,9993,4518,3739,4334,1157,3321,3601,4370,5781,5264,6403,2822,6497,5053,2038,4039,7861,7610,3921,6423,3753,9510,3514,5661,1633,8257,9302,2443,5469,3929,3531,3509,4012,8642,1224,6252,9332,4834,5050,1129,1551,5636,3679,6658,3566,7350,4747,4093,5538,8417,3147,6569,2448,8004,8070,5291,2103,7374,6512,2449,5291,6788,1047,7022,1607,2555,6081,9819,1082,1142,2813,3050,2020,6655,2389,9062,8228,2079,7774,5224,3691,5309,8160,2278,9038,2593,1906,2409,7473,9497,4113,9185,6208,9103,5923,9101,7725,2429,9902,2241,8773,3120,5789,3809,2248,5514,8455,1677,1737,7191,8355,2987,6647,7115,9874,9241,6185,6330,7094,4455,8601,4513,6926,9562,5486,4922,6954,9562,2463,9535,6418,8490,6255,3010,6737,4562,9210,2853,7236,2922,1041,4881,6698,4129,9775,6953,8531,8817,7683,5925,5505,8056,7641,1772,9026,4595,7289,6935,6164,8758,7287,2036,3913,8094,2825,6736,6962,2204,1324,7805,7360,8796,2288,5828,4066,3209,3205,2207,1968,4537,6420,2346,4620,2757,7631,5333,3290,7568,4112,8310,9113,7266,5290,1118,7140,5258,4960,4201,3252,9518,6003,3583,7461,6091,1420,1081,4984,1404,2722,3956,3391,1329,8001,6257,2761,8571,5059,8925,9057,1476,2788,3884,4261,7349,7120,7961,7922,6800,8747,6803,8828,1483,9221,3038,8223,9666,7251,3243,8860,1440,7023,6587,9882,2222,7228,4123,1307,3617,1533,2249,1438,2301,5271,6993,8172,8456,7234,4462,5378,7982,7500,9487,8904,4198,8216,7637,2189,1286,8593,1480,5255,4554,8705,6588,8751,7935,3586,9621,2172,3214,2468,9617,9072,4619,6611,4862,3302,2689,7205,5062,9125,4458,4635,6693,7632,1996,5654,9127,7400,4373,7359,6930,5874,2166,1515,6186,8991,7466,1054,5469,4937,8564,6712,1883,5377,8223,7972,6514,9176,8447,7498,7073,2639,8782,8673,3412,2430,7172,8561,8506,6905,1602,8076,9692,4842,7471,6303,1947,4387,4585,8639,5159,3036,5872,4817,1000,5054,5308,2777,7033,1369,1004,4747,1393,3088,4714,3085,7769,9705,4199,1249,3497,3149,5366,2928,4356,5794,8087,2114,5258,5174,6369,6683,7442,6741,8066,7739,4097,2202,9001,1399,6537,1227,3458,2479,2048,5316,4757,4473,6898,7556,9189,1169,4039,3799,2864,1172,2178,9252,4913,7201,3130,3404,9994,9748,2643,8741,6965,4782,2924,1442,4365,9028,1369,6070,3676,8646,8681,1841,4312,7316,2295,2204,5770,7192,5511,6935,9118,2944,7541,7243,6086,2067,1266,7131,3247,2643,2963,1531,7029,8288,1776,8738,7286,9612,6672,4277,4294,4416,3240,3416,2864,8581,7646,4186,4197,9217,5975,8862,1181,8670,5448,1986,4579,8797,6160,9790,3551,9720,8815,7457,9648,4218,7962,3954,3867,3145,7475,9636,2108,3911,2731,5321,8273,4279,3671,8696,9606,3726,9919,4857,2590,6024,6487,5474,5927,2812,4476,8847,4422,8384,4258,9900,4710,6234,4981,3372,9452,3730,7338,3568,2863,6547,4058,9040,1884,7546,7799,3009,1361,9315,7211,2346,1324,6961,5672,2075,7677,1134,6154,7960,5807,3324,3221,7162,9914,3184,1857,7102,3656,7655,2439,9178,1810,3593,6704,8772,4821,1467,9445,7930,7782,1101,2149,7612,7137,6614,7324,6751,3935,2074,1008,3547,9820,5675,2749,6643,6735,6600,5974,6366,8533,6991,7885,3420,1463,5563,5500,4221,3271,3219,2775,8095,2723,3557,7727,2871,6739,8597,9706,7417,9119,6867,4211,5340,6975,4138,3493,1190,8522,6726,8472,5568,7333,2714,4282,9771,1846,7520,7739,3024,5964,7596,3045,6270,6931,1949,8218,8005,8519,8744,5354,9342,5748,7213,7742,4982,9853,4159,9358,5074,4936,5480,6577,6851,5161,7456,7517,8256,6147,8193,1361,3895,8932,5358,1560,8341,7255,1698,5893,5297,2367,3749,3037,7173,4447,9925,5355,7062,5910,9980,6288,9537,9293,1643,9788,6941,5554,8906,7125,2812,4587,6005,7116,9012,3226,8600,4427,6453,9727,5754,3510,6555,5115,5360,3728,7773,9575,2848,7140,2956,4778,6089,7971,4525,3048,3431,6174,7247,2779,7104,3217,9608,6247,1523,1777,1573,3851,5266,9114,7809,1660,1073,5735,2408,2913,6420,3253,8912,4290,9196,4275,5199,5735,1638,1780,2436,1179,9539,1132,5539,1374,7756,7552,7658,9140,6574,9153,1530,6448,1474,4863,3806,8606,3408,5721,5388,2072,7143,8094,8350,2808,7553,6842,1426,4413,7717,1005,5099,8612,8762,5999,6409,5049,4481,9586,8772,7770,8558,9954,1567,8800,9472,2951,3877,4010,4722,3555,1999,1942,4859,9568,8838,8943,2961,6246,9736,3974,2370,2115,9007,8022,6163,9869,6718,1926,9855,4340,4402,9579,5116,3029,5589,3304,5236,2652,6199,7331,4180,8394,1024,9269,5869,4261,6353,6780,3706,5749,7402,6642,9278,4863,8162,9034,3602,2280,1069,3494,6949,5755,8198,7401,7369,7113,4666,9861,8900,2339,4277,9152,2271,8306,5393,9891,5024,6081,2346,3981,9948,7003,5664,6605,5334,4013,9303,5718,7837,1116,5245,8018,5615,7977,3587,3325,8646,4218,2609,9556,5181,3393,3804,5222,8664,7134,2515,4362,6925,1281,7775,1035,9218,8268,2063,5912,8118,3320,1358,6455,6901,7662,5820,4990,7526,7545,6589,9602,1845,7222,9955,3310,2616,8545,6738,7049,4967,1164,2827,9262,6773,3600,6045,8263,9742,7884,8937,1526,3150,6947,9810,7179,6070,8165,8976,3245,7650,3431,1181,6178,5431,2347,7180,4896,7252,3650,5607,6784,7243,4077,8354,8235,8074,4264,7298,9235,9989,4721,8881,1609,3905,6892,5924,9708,6751,6741,8204,1714,9476,3462,5390,9181,8832,2110,8579,9710,5989,3300,2237,7214,8299,3023,5834,7243,4374,1299,5073,8199,4501,8474,8591,7586,3905,5754,1436,5282,7217,2600,8304,5282,2814,4106,3329,4893,3976,4241,1118,4835,1131,9125,9286,7657,4258,4970,3891,5743,9520,9020,8522,9947,8747,2968,2881,5446,3198,7100,6007,1751,6435,5381,7019,2312,8828,6100,2591,9256,3898,2555,1377,3354,8569,6606,4618,6295,1406,1371,2498,5411,4984,1274,5322,9771,9176,6642,1219,4098,6497,3441,8404,6952,3338,3437,7894,2678,8361,1049,3166,7392,8265,2368,1442,5430,6531,5101,5721,9015,3121,9677,8737,6759,1198,5916,8257,4076,5002,5454,2958,3003,3880,7496,3269,9758,8914,4258,7405,6130,1629,7929,8722,4249,8114,3037,5315,5584,5787,7805,7396,6781,7380,9994,8965,2091,1159,4625,3185,2310,2967,4528,3027,5962,9019,7678,7075,4837,8679,5709,9978,2647,3601,5653,3071,3672,4468,3997,9063,9972,4647,3502,4184,5262,5955,7741,5613,7162,7628,8863,9162,9244,8226,3402,6977,8670,7487,2361,8548,3430,9859,8868,7377,8976,6864,8208,5334,5045,4492,6894,5152,8869,4195,8562,6802,3744,8131,6324,4770,7609,7729,9390,1188,6005,7002,3231,6983,7087,4482,4770,7817,2820,9606,2264,6975,2376,7955,6145,9003,5288,9828,8558,1449,2098,3710,5881,7862,5332,2238,1779,7966,8800,2440,4866,2080,7949,7803,6258,6915,9112,5828,1587,9640,9563,9978,4698,2521,3075,3659,8438,9469,1015,8001,8124,5705,9029,4564,5022,1028,8522,9708,4881,1806,8983,5555,6525,4242,4444,6255,9458,4631,6239,7722,3874,4555,3483,5590,9073,3103,7548,9602,3420,6782,1950,7887,9197,5616,9040,5992,6780,9113,1293,2179,4587,5162,8492,6548,8153,4290,9145,7412,1819,7208,4648,1889,9529,6446,5310,9008,8241,4135,1953,5971,9208,8872,3255,1508,6976,1494,2831,6190,2654,7187,6735,8689,3064,2296,5746,4289,6274,3273,8405,9655,3325,9169,9309,9252,8108,5241,6070,7327,1564,6424,4736,8716,2090,3112,8163,9735,9403,9537,3076,3680,6930,4413,6866,7350,4031,5140,6003,9718,1928,4748,3290,4407,9809,9250,1680,8908,7202,8708,6959,1412,3485,1026,8436,9388,1416,3011,1747,5209,4015,9044,8719,6918,4636,6988,7155,8130,2309,9022,5844,3882,9690,7125,1211,5932,3047,5454,6426,1950,3435,7382,7854,5232,6027,2240,4549,7345,8826,1706,7099,8275,1539,7469,9660,2133,5642,9645,7225,8431,9593,8378,4600,6978,6574,7933,7972,3790,7528,9031,9269,9202,3584,1386,1134,4495,8942,5483,4579,9445,2457,2479,9437,6344,3437,8033,1771,7681,9295,4641,3018,2449,5384,6286,2604,6759,8554,9746,1836,3380,7866,3348,5717,4390,7789,3871,8810,9848,9141,3477,5860,8950,8558,6410,9807,6344,3115,3837,1736,1025,8411,7240,7786,4979,1661,5540,9888,3620,2021,2042,3266,9659,6501,9671,7218,1678,9511,4709,8293,8394,6364,5373,6437,1012,6870,1045,8456,1389,5276,4477,5014,5750,3757,1133,9620,2989,9879,4236,2358,8900,5717,1121,4856,2892,8610,5239,6458,6557,3071,2713,9673,2726,7527,7667,7828,6893,1662,6108,7328,1151,3488,1568,2198,2681,1281,5344,7685,7958,2505,8321,7848,1745,1522,8878,9415,3017,7911,9043,1184,1655,6472,7619,7887,9997,6203,3224,5576,8542,7079,9786,6854,1424,2977,6469,4975,5053,2765,5731,6250,2391,6311,8955,3558,4325,5991,8354,7364,2601,7260,8216,1470,4168,5287,3405,4244,3686,9694,1438,9936,2055,6476,1428,5359,7324,3611,8869,6841,4442,3535,7231,7055,7576,8932,6976,4092,1797,6407,3418,3444,9264,8055,9607,8206,7418,9908,3829,3145,4541,1866,6631,3353,1495,8482,1438,3291,9493,2280,8749,1615,6550,4959,3788,1587,3016,8578,9902,8179,7365,1191,4368,8006,9518,3794,1859,7248,8809,6226,5155,3575,3665,4193,5260,2511,5118,1880,5296,5763,8847,1251,9176,1509,2055,2283,2116,9966,4996,1300,4827,2735,9941,5442,7221,3348,1264,9461,6922,4476,8517,1941,5423,7545,1175,8955,6775,1575,3686,9245,4008,5748,8898,5312,4174,7649,5594,5381,5604,5020,9993,9700,3812,4674,1951,9442,2911,5384,8886,2144,4488,4799,3795,4185,2238,8599,1521,1517,7404,8841,4872,3569,9869,1831,2760,7423,4301,5791,9419,7065,1868,5693,4722,6201,2251,2509,9562,2803,3242,5269,3831,2189,6848,5440,6012,4852,7867,9849,4849,4620,7884,6796,8077,8024,8930,4967,2271,5592,9483,5427,4216,4989,4445,5483,3200,2522,2771,2984,1190,8680,5623,2581,4499,8369,3359,4739,2723,4947,6723,3307,3009,5865,8328,2904,9964,6445,1666,9078,9571,7722,5270,8381,1789,7440,9356,1561,2272,9561,4428,7591,3908,9703,8395,9787,6787,2052,2899,9972,7115,2510,1004,9478,9294,2883,3488,5023,5628,5095,3520,8288,9612,7869,6570,9839,8942,3455,9327,3900,9365,5895,6999,1834,6514,1847,9773,2178,4995,5985,5451,7596,3159,8943,7632,4628,4923,9907,7901,1909,6120,1025,5141,8623,1612,3201,1663,2574,4945,1545,2999,4252,5447,9417,6734,1386,1012,3130,4450,8247,5191,1571,2380,2436,8876,9502,1227,3531,4762,6967,5325,4759,5994,3084,9800,4717,4011,1594,3163,7633,3666,8082,2005,9552,3705,7644,3930,5533,2584,1548,9020,9136,4785,9904,6928,4086,7281,8536,3709,4122,4299,7480,9889,4607,7271,6116,6837,9447,4155,1438,5167,9428,8762,4380,5571,5040,5864,2042,1533,2341,3104,4137,4191,4976,8323,9234,3493,8990,7406,5772,4785,2659,7915,9137,7193,5806,9065,4550,1712,4621,2285,5811,2948,8500,4343,7531,6914,6140,6380,2340,6729,4411,3072,3756,5260,6016,6020,5639,8157,3150,2503,4565,7018,9220,5310,6958,6051,2818,5003,4078,7223,1036,9578,5714,4510,9643,1508,5082,2781,8015,7552,6342,5078,2785,9398,9081,6487,6709,2443,7613,3111,2523,4202,9617,9002,9163,7713,6964,3847,3232,8466,2075,5574,2240,6837,7789,6748,6123,7654,6558,2526,8029,5181,5742,5542,6038,5205,9675,3399,3297,6871,9442,7188,8357,3382,9165,9978,1993,3114,9663,4161,1982,3182,7470,3163,2265,5420,9541,6765,3066,2991,5928,6523,7377,8266,1475,9002,8988,4485,7252,4037,3488,2076,2267,9474,8123,8606,2923,7930,6297,7830,1525,9015,4892,3938,3265,8250,5049,9670,8781,7037,9774,9075,8403,3317,7624,1824,1699,6942,1694,1372,1921,2310,5316,5950,4487,3574,4033,3320,2078,4315,5205,2681,4902,2642,9991,8639,7195,5448,3196,2740,1754,9307,1543,4846,8542,9872,5988,1505,2993,8137,8715,9276,8458,9635,8198,9775,1226,3929,1162,1463,6117,2222,5517,1694,8759,3896,2614,4587,2091,2490,8608,9097,8153,9592,7019,3812,6772,3019,9538,6578,6529,8773,7973,8837,9728,9926,9183,1056,5438,8733,8961,1828,1369,2744,3412,8041,1310,4483,4485,7743,8848,1437,4165,7760,3296,3117,1379,8252,7998,1276,2022,6898,2696,4341,7532,3644,5979,8675,3928,8941,7190,9596,6999,5750,8716,3209,7093,1307,2495,8162,1332,2836,8975,1890,1574,8654,4999,2154,5133,5965,7168,7202,8896,2499,2382,5383,3469,2383,9021,8243,1073,1208,6960,2555,6250,6696,6826,7197,2093,3705,1255,9248,3046,6506,2106,8459,2229,1168,5881,3004,2257,3330,7817,9162,8207,4412,5287,5271,6165,2183,8390,4639,1634,8475,8738,4308,8705,3331,2739,3579,8438,5404,1341,8244,9386,9643,6502,9839,2723,6639,9166,1560,6539,4109,9085,5242,1518,4329,4467,8803,7738,1337,8615,7165,1334,5875,5437,5716,8759,3722,2661,2277,7780,2283,9926,2485,4148,7318,8512,9841,3022,5949,5522,1213,6993,6845,6087,1977,5978,7382,3688,3809,1219,4980,6152,9518,4961,2045,1326,3199,7799,3414,7444,8355,8241,7802,4564,8536,8656,6742,2727,7547,7514,1668,4126,1019,8586,7612,5101,3174,8165,5542,2339,5807,4591,9894,1986,7724,3402,2303,5214,1889,1687,1457,9788,4995,4479,2252,2412,7110,7169,6904,8258,4031,1314,8045,8904,1589,8843,9388,8014,1682,8716,8383,5501,8813,3214,8182,5794,2711,8107,2337,6273,8285,9155,3780,4220,5630,4307,8212,5826,9246,7555,4334,2149,9839,9664,2393,4952,9920,9232,7654,1207,6998,7281,3034,3702,1608,6063,9858,7474,6405,6404,7602,4050,1583,5992,1799,1516,8552,8326,2250,7639,2543,4933,4725,5126,5111,3994,3190,2828,7952,2856,1560,7511,1909,6625,6686,1803,3136,6721,2910,8517,2328,7885,2032,8110,1113,8657,5164,3352,7913,9542,1383,4420,4377,3884,6631,5856,2897,5732,5943,4494,6277,8953,4773,3919,9759,2202,8033,4725,3140,9923,9506,7703,4723,5724,3728,1910,5798,2016,4564,9360,9825,2985,8769,6803,6610,9306,8358,3566,7693,4686,2505,5033,9363,2536,9851,4021,1809,2591,2549,8942,2115,1164,3951,8155,7465,1983,9355,1083,9018,3848,5159,7819,8901,4128,3805,7186,6444,9182,8061,6864,2665,3697,9621,6319,7957,6057,5899,9253,1350,2252,1871,7782,8066,9914,7807,5989,2905,6556,3264,9307,4456,1654,7342,5351,9543,6260,4163,7081,6172,2463,7532,9209,2626,9863,3086,9531,2248,9754,4423,1134,3653,8374,4107,3987,3068,4414,9654,9872,8825,6789,7414,5025,3236,4272,8592,5889,2410,4836,4845,1182,7584,4657,9500,5608,8409,3618,9848,5530,1367,1955,9594,8832,9319,9381,6080,4393,5461,1390,2590,8103,3738,5961,9935,6177,8748,7759,5682,1835,6845,6805,9696,3115,1109,1626,8437,6984,6704,9374,7837,2368,7081,3953,7910,7361,8699,1888,4848,7242,7288,6753,9104,2096,7399,6244,3156,5222,4529,5638,2685,1672,8376,8648,1091,8978,4958,8765,4605,5925,5849,7763,6569,2912,6304,8119,4977,6259,5987,2358,4060,1613,6812,4109,6790,2820,5193,5679,3069,7698,9886,1256,7126,1192,3630,1907,3298,1338,1068,3469,5823,3581,4411,1887,5676,3481,7450,1350,2934,9510,1974,6323,3704,5171,8994,8243,1833,9243,6557,5238,1981,6660,2462,3849,8887,7890,5005,5814,6856,4012,2598,4806,5471,8172,3415,4893,6770,2812,9228,3100,5895,4724,2631,7316,5926,6447,5141,4100,4168,8267,4239,3288,4365,1356,2183,6668,8722,6510,8463,7522,7203,2614,1112,1840,1127,6176,6261,1889,9910,7310,9508,4389,8185,8476,9908,5882,7734,3332,5130,6079,9198,6651,1942,2824,3476,2164]
};
</script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
For
for (var i = 0; i < a.length; i++) {}
pending…
For (cache length)
for (var i = 0, l = a.length; i < l; i++) {}
pending…
For (reverse)
for (var i = a.length; i--;) {}
 
pending…
For In
for (var i in a) {}
pending…
For (exists)
for (var i = 1; a[i]; i++) {}
pending…
While (imitate loop)
var i = 0; while (i < a.length) { i++; }
pending…
While (imitate loop) (cache length)
var i = 0, l = a.length; while (i < l) { i++; }
pending…
While (reverse)
var i = a.length; while (i--) {}
pending…
Do While (reverse)
var i = a.length - 1; do {} while (i--);
pending…
While (pop)
var i = a; while (i.pop()) { }
pending…
.forEach()
a.forEach(function() {});
pending…
For (reverse - optimized?)
for (var i = a.length; i > 0; i -= 1) { }
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment