Guest User

Untitled

a guest
Dec 14th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. 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 
  2. 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
  3. 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
  4. 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
  5. 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
  6.  
  7. indexOf beginning
  8. 29,485,553 + 4,550,417 + 8,970,576 + 19,789,237 = 62795783 / 4 = 15,698,945.75
  9.  
  10. indexOf in array
  11. 9,091,022 + 2,172,041 + 1,522,144 + 3,919,065 = 16704272 / 4 = 4,176,068
  12.  
  13. indexOf middle 
  14. 13,638,930 + 3,038,403 + 2,716,011 + 6,824,440 = 26217784 / 4 = 6,554,446
  15.  
  16. indexOf not in array
  17. 9,437,150 + 3,419,162 + 1,475,691 + 4,070,327 = 18402330 / 4 = 4,600,582.5
  18.  
  19.  
  20. 15,698,945.75 + 4,176,068 + 6,554,446 + 4,600,582.5 = 31030042.25 / 4 = 7,757,510.5625
  21.  
  22.  
  23. while beginning of array
  24. 10,538,755 + 2,025,874 + 3,311,819 + 3,652,805 = 19529253 / 4 = 4,882,313.25
  25.  
  26. while in array
  27. 83,967,082 + 4,581,419 + 34,975,476 + 44,709,423 = 168233400 / 4 = 42,058,350
  28.  
  29. while middle of array
  30. 18,223,534 + 2,840,546 + 5,802,201 + 6,647,720 = 33514001 / 4 = 8,378,500.25
  31.  
  32. while not in array 
  33. 11,987,765 + 2,670,208 + 3,294,612 + 3,649,064 = 21601649 / 4 = 5,400,412.25
  34.  
  35.  
  36. 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