Allocation Performance
Description
Measured allocation performance using following code with n=10
:
class A:
pass
def alloc(n):
for i in range(n):
a = A()
def target(driver, args):
...
def main(argv):
...
for i in range(iterations):
cb.begin()
for j in range(1000000):
alloc(n)
cb.end()
cb.report(resfile)
return 0
Mean of measured results:
stack | result |
---|---|
RPython Mu Zebu | 0.00072474 |
RPython C clang -O0
|
0.00432998 |
RPython C clang -O1
|
0.0000008 |