DeaD_EyE icon

Basic Performance Test for MicroPython

DeaD_EyE | PRO | 07/01/22 08:10:26 AM UTC | 0 ⭐ | 1199 👁️ | Never ⏰ | []
Python |

330 B

|

None

|

0 👍

/

0 👎

 
"""
Basic Performance Test for MicroPython
 
https://github.com/micropython/micropython/wiki/Performance
"""
 
import time
 
 
def performance_test():
    ticks = time.ticks_ms
    end_time = ticks() + 10_000
    count = 0
    while ticks() < end_time:
        count += 1
 
    print("Count: ", count)
 
 
performance_test()

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎