projects
/
profile
/
ivi
/
python-twisted.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import to Tizen
[profile/ivi/python-twisted.git]
/
doc
/
core
/
benchmarks
/
banana.py
1
#!/usr/bin/python
2
3
from timer import timeit
4
from twisted.spread.banana import b1282int
5
6
ITERATIONS = 100000
7
8
for length in (1, 5, 10, 50, 100):
9
elapsed = timeit(b1282int, ITERATIONS, "\xff" * length)
10
print "b1282int %3d byte string: %10d cps" % (length, ITERATIONS / elapsed)