Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UserAgent indexOf beginning indexOf in array indexOf middle indexOf not in array while beginning of array while in array while middle of array while not in array # Tests
- Chrome 13.0.782 29,485,553 9,091,022 13,638,930 9,437,150 10,538,755 83,967,082 18,223,534 11,987,765 1
- Firefox 7.0 4,550,417 2,172,041 3,038,403 3,419,162 2,025,874 4,581,419 2,840,546 2,670,208 1
- Opera 11.51 8,970,576 1,522,144 2,716,011 1,475,691 3,311,819 34,975,476 5,802,201 3,294,612 1
- Safari 5.1 19,789,237 3,919,065 6,824,440 4,070,327 3,652,805 44,709,423 6,647,720 3,649,064 1
- indexOf beginning
- 29,485,553 + 4,550,417 + 8,970,576 + 19,789,237 = 62795783 / 4 = 15,698,945.75
- indexOf in array
- 9,091,022 + 2,172,041 + 1,522,144 + 3,919,065 = 16704272 / 4 = 4,176,068
- indexOf middle
- 13,638,930 + 3,038,403 + 2,716,011 + 6,824,440 = 26217784 / 4 = 6,554,446
- indexOf not in array
- 9,437,150 + 3,419,162 + 1,475,691 + 4,070,327 = 18402330 / 4 = 4,600,582.5
- 15,698,945.75 + 4,176,068 + 6,554,446 + 4,600,582.5 = 31030042.25 / 4 = 7,757,510.5625
- while beginning of array
- 10,538,755 + 2,025,874 + 3,311,819 + 3,652,805 = 19529253 / 4 = 4,882,313.25
- while in array
- 83,967,082 + 4,581,419 + 34,975,476 + 44,709,423 = 168233400 / 4 = 42,058,350
- while middle of array
- 18,223,534 + 2,840,546 + 5,802,201 + 6,647,720 = 33514001 / 4 = 8,378,500.25
- while not in array
- 11,987,765 + 2,670,208 + 3,294,612 + 3,649,064 = 21601649 / 4 = 5,400,412.25
- 4,882,313.25 + 42,058,350 + 8,378,500.25 + 5,400,412.25 = 60719575.75 / 4 = 15,179,893.9375
Add Comment
Please, Sign In to add comment