Brython 3.8.10 performance compared to CPython 3.9.0

User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0

Test Brython
(100 = CPython)
Code
simple assignment62
for i in range(1000000):
    a = 1
augmented assignment15
a = 0
for i in range(1000000):
    a += 1
augmented assignment and list append407
t = []
i = 0
while i < 100000:
    t.append(i)
    i += 1
simple assignment to float178
for i in range(1000000):
    a = 1.0
big integers385
n = 60
for i in range(10000):
    2 ** n
build dictionary1717
for i in range(1000000):
    a = {0: 0}
build dictionary 2174
d = {}
for i in range(100000):
    d[i] = i
set dictionary item105
a = {0: 0}
for i in range(1000000):
    a[0] = i
build set776
for i in range(1000000):
    a = {0, 2.7, "x"}
build list48
for i in range(1000000):
    a = [1, 2, 3]
set list item54
a = [0]
for i in range(1000000):
    a[0] = i
list slice550
a = [1, 2, 3]
for i in range(100000):
    a[:]
integer addition129
a, b, c = 1, 2, 3
for i in range(1000000):
    a + b + c
string addition157
a, b, c = 'a', 'b', 'c'
for i in range(1000000):
    a + b + c
cast int to string119
for i in range(100000):
    str(i)
create function without arguments380
for i in range(1000000):
    def f():
        pass
create function, single positional argument384
for i in range(1000000):
    def f(x):
        pass
create function, complex arguments530
for i in range(1000000):
    def f(x, y=1, *args, **kw):
        pass
function call333
def f(x):
    return x
for i in range(1000000):
    f(i)
function call, complex arguments719
def f(x, y=0, *args, **kw):
    return x
for i in range(100000):
    f(i, 5, 6, a=8)
create simple class543
for i in range(10000):
    class A:
        pass
create class with init569
for i in range(10000):
    class A:
        def __init__(self, x):
            self.x = x
create instance of simple class91
class A:
    pass

for i in range(1000000):
    A()
create instance of class with init575
class A:
    def __init__(self, x):
        self.x = x

for i in range(100000):
    A(i)
call instance method670
class A:
    def __init__(self, x):
        self.x = x

    def f(self):
        return self.x

a = A(1)
for i in range(100000):
    a.f()