gambas-source-code/benchmark/string2.py
gambas 262fe72e3e Add a new string benchmark.
[BENCHMARK]
* NEW: Add a new string benchmark.
2020-04-06 04:44:09 +02:00

11 lines
141 B
Python
Executable file

#!/usr/bin/python
str = ''
i = 0
for i in range(0, 1000000):
for j in range(65, 91):
c = chr(j)
str += '.(' + c + ')'
print len(str)