23be942b6a
[BENCHMARKS] * NEW: Little meaningless changes. [INTERPRETER] * NEW: JIT: Support for FOR EACH loops. * BUG: JIT: Handle function values that are put on stack before calling them. [COMPILER] * NEW: JIT: Optimization of mathematic functions. * NEW: JIT: Support for FOR EACH loops. * NEW: JIT: Remove successive POP_x() / PUSH_x(). * NEW: JIT: Optimization of DIV and MOD. * NEW: JIT: Support of internal control local variables used by SELECT and FOR EACH. * NEW: JIT: Support for SWAP. [GB.JIT] * NEW: Optimization of mathematic functions. * NEW: Variants management. * NEW: All conversions are handled now. * NEW: FOR EACH loops are implemented.
23 lines
397 B
Python
Executable file
23 lines
397 B
Python
Executable file
#!/usr/bin/python
|
|
|
|
import re
|
|
import time
|
|
import sys
|
|
|
|
str = 'abcdefgh'+'efghefgh'
|
|
imax = 1024 / len(str) * 512
|
|
|
|
starttime = time.time();
|
|
sys.stdout.flush()
|
|
|
|
gstr = ''
|
|
i = 0
|
|
|
|
while (i < imax+1000):
|
|
i = i + 1
|
|
gstr += str
|
|
gstr = re.sub('efgh','____',gstr)
|
|
lngth = len(gstr)
|
|
if (lngth % (1024*64) == 0):
|
|
print int(time.time()-starttime),"sec\t\t",(lngth/1024),"kb"
|
|
sys.stdout.flush()
|