SHARE
TWEET

Untitled

a guest Oct 2nd, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. lua bench try# count
  2.  
  3. bmk0 1 6928591
  4. bmk0 2 6922258
  5. bmk0 3 6921824
  6. bmk0 4 6921227
  7. bmk0 5 6921488
  8. a 6923077
  9. bmk1 1 2993
  10. bmk1 2 3000
  11. bmk1 3 3000
  12. bmk1 4 3000
  13. bmk1 5 3000
  14. a -
  15. bmk2 1 1639861
  16. bmk2 2 1639804
  17. bmk2 3 1639842
  18. bmk2 4 1639730
  19. bmk2 5 1639830
  20. a 1639814
  21. lua bench try# count
  22.  
  23. bmk0 1 6930328
  24. bmk0 2 6937580
  25. bmk0 3 6930355
  26. bmk0 4 6929856
  27. bmk0 5 6929918
  28. a 6931607
  29. bmk1 1 3000
  30. bmk1 2 2982
  31. bmk1 3 2982
  32. bmk1 4 2982
  33. bmk1 5 2982
  34.  
  35. bmk2 1 1666351
  36. bmk2 2 1666634
  37. bmk2 3 1666469
  38. bmk2 4 1666403
  39. bmk2 5 1666522
  40. a 1666475
  41.  
  42. bmk0:
  43. local tick_total = 3000 --30 seconds
  44. local tick = rb.current_tick()
  45. local tick_end = tick + tick_total
  46. local i = 0
  47.  
  48. repeat
  49.     i = i + 1
  50.  
  51. until rb.current_tick() >= tick_end
  52.  
  53. rb.splash(500, i .. " in " .. tick_total .. " ticks")
  54.  
  55. bmk1:
  56. local tick_total = 3000 --30 seconds
  57. local tick = rb.current_tick()
  58. local tick_end = tick + tick_total
  59. local i = 0
  60.  
  61. repeat
  62.     i = i + 1
  63.     rb.sleep(0)
  64. until rb.current_tick() >= tick_end
  65.  
  66. rb.splash(500, i .. " in " .. tick_total .. " ticks")
  67.  
  68. bmk2:
  69. local tick_total = 3000 --30 seconds
  70. local tick = rb.current_tick()
  71. local tick_end = tick + tick_total
  72. local i = 0
  73.  
  74. local s = ""
  75. repeat
  76.     i = i + 1
  77.     s = s .. "1"
  78.     if tonumber(s) > 1111111111 then s = "" end
  79. until rb.current_tick() >= tick_end
  80.  
  81. rb.splash(500, i .. " in " .. tick_total .. " ticks")
  82.  
  83. bmk1%  difference 0.123%
  84.  
  85. bmk3%  difference 1.61%
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top