Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lua bench try# count
- bmk0 1 6928591
- bmk0 2 6922258
- bmk0 3 6921824
- bmk0 4 6921227
- bmk0 5 6921488
- a 6923077
- bmk1 1 21217
- bmk1 2 21198
- bmk1 3 21197
- bmk1 4 21197
- bmk1 5 21252
- a 21200
- bmk2 1 1639861
- bmk2 2 1639804
- bmk2 3 1639842
- bmk2 4 1639730
- bmk2 5 1639830
- a 1639814
- =============================================================================
- ARM Hack
- lua bench try# count
- bmk0 1 6930328
- bmk0 2 6937580
- bmk0 3 6930355
- bmk0 4 6929856
- bmk0 5 6929918
- a 6931607
- bmk1 1 21432
- bmk1 2 21425
- bmk1 3 21337
- bmk1 4 21432
- bmk1 5 21339
- a 21393
- bmk2 1 1666351
- bmk2 2 1666634
- bmk2 3 1666469
- bmk2 4 1666403
- bmk2 5 1666522
- a 1666475
- bmk0:
- local tick_total = 3000 --30 seconds
- local tick = rb.current_tick()
- local tick_end = tick + tick_total
- local i = 0
- repeat
- i = i + 1
- until rb.current_tick() >= tick_end
- rb.splash(500, i .. " in " .. tick_total .. " ticks")
- bmk1:
- if rb.cpu_boost then rb.cpu_boost(true) end
- rb.lcd_putsxy(1, 1, "Test")
- rb.lcd_update()
- local tick_total = 3000 --30 seconds
- local tick = rb.current_tick()
- local tick_end = tick + tick_total
- local i = 0
- repeat
- i = i + 1
- math.randomseed(0)
- if rb.audio("status") == 4 then
- os.exit(1)
- elseif math.random(2,3) == 0 then
- os.exit(2)
- elseif not rb.battery_level_safe() then
- os.exit(3)
- elseif not rb.dir_exists("/") then
- os.exit(4)
- elseif rb.file_exists("/" .. i .."test.000") then
- os.exit(5)
- elseif rb.current_path() == "" then
- os.exit(6)
- elseif rb.strchr(i .. "testing" .. i, string.byte("t")) ~= "testing" .. i then
- os.exit(7)
- elseif rb.strrchr(i .. "testing" .. i, string.byte("t")) ~= "ting" .. i then
- os.exit(8)
- elseif rb.button_queue_count() > 10 then
- os.exit(9)
- else
- rb.button_clear_queue()
- rb.lcd_putsxy(1, 1, "Loop " .. i)
- rb.lcd_update()
- end
- until rb.current_tick() >= tick_end
- rb.lcd_putsxy(1, 1, "Done " .. i)
- rb.lcd_update()
- rb.splash(1000, i .. " in " .. tick_total .. " ticks")
- if rb.cpu_boost then rb.cpu_boost(false) end
- bmk2:
- local tick_total = 3000 --30 seconds
- local tick = rb.current_tick()
- local tick_end = tick + tick_total
- local i = 0
- local s = ""
- repeat
- i = i + 1
- s = s .. "1"
- if tonumber(s) > 1111111111 then s = "" end
- until rb.current_tick() >= tick_end
- rb.splash(500, i .. " in " .. tick_total .. " ticks")
- =============================================================================
- bmk0% difference 0.123%
- bmk1% difference 0.91%
- bmk2% difference 1.61%
Add Comment
Please, Sign In to add comment