[pypy-svn] r49303 - pypy/dist/pypy/translator/microbench
cfbolz at codespeak.net
cfbolz at codespeak.net
Sun Dec 2 21:37:50 CET 2007
Author: cfbolz
Date: Sun Dec 2 21:37:50 2007
New Revision: 49303
Added:
pypy/dist/pypy/translator/microbench/test_unicode.py (contents, props changed)
Log:
a very simple unicode finding benchmark
Added: pypy/dist/pypy/translator/microbench/test_unicode.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/translator/microbench/test_unicode.py Sun Dec 2 21:37:50 2007
@@ -0,0 +1,5 @@
+N = (2 ** 19 - 1)
+
+u1 = (u"not the xyz" * N)
+def test_find_worstcase():
+ u1.find(u"not there")
More information about the Pypy-commit
mailing list