import time, gc
from sys import exit
from micropython import const

class R():
  def __init__(self):
    self._100_000 = range(100_000)
    self._200_000 = range(200_000)
 

myrange=range(100_000)
_100_000 = const(100_000)
r=R()
#print(r.r)
#exit()

print(gc.mem_free())

@micropython.viper
def loop1():
  x=0
  for i in range(100_000): #r._100_000:
    #x+=i//8
    x+=i>>16
  #print(x)

@micropython.viper
def loop2():
  i=0
  x=0
  while i < 100_000:
    #x+=i//8
    x+=i>>16
    i+=1
  #print(x)



exit()

while(1):
  start=time.ticks_ms()
  #time.sleep(1)
  for i in range(3):
    loop2()
  print(time.ticks_ms()-start)
  start=time.ticks_ms()
  for i in range(3):
    loop2()
  print(time.ticks_ms()-start)
 
  #print('.')
  #exit()
  print(gc.mem_free())
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT