Commit ec79d1bc authored by Kevin Modzelewski's avatar Kevin Modzelewski

Simple string benchmark

Even this is 2x slower
parent 053a23d6
def f():
s = "hello world!" * 500
count = 0
for i in xrange(10000):
for c in s:
if c == '!':
count += 1
print count
f()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment