Author louielu
Recipients azsorkin, louielu, methane, ned.deily, pitrou, python-dev, serhiy.storchaka, vstinner, xiang.zhang
Date 2017-03-29.07:52:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490773923.08.0.99706830061.issue24821@psf.upfronthosting.co.za>
In-reply-to
Content
I can now only test on Python3.6, providing much meaningful sentence,
still trying to use perf on cpython master branch.

---------------------------------------------------

$ python -m perf timeit -s 's="一件乒乓事事亏, 不乏串連产業, 万丈一争今为举, 其乎哀哉"*1000' -- 's.find("乎")'

Median +- std dev: 228 ns +- 7 ns


$ python -m perf timeit -s 's="一件乒乓事事亏, 不乏串連产業, 万丈一争今为举, 其乎哀哉"*1000' -- 's.find("乏")'  

Median +- std dev: 143 ns +- 3 ns

---------------------------------------------------

$ python -m perf timeit -s 's="一件乒乓事事亏, 不乏串連产業, 万丈一争今为举, 其哀哉"*1000' -- 's.find("乎")'  
                                                                       ^^ (missing "乎")
Median +- std dev: 100 us +- 3 us

$ python -m perf timeit -s 's="一件乒乓事事亏, 不串連产業, 万丈一争今为举, 其乎哀哉"*1000' -- 's.find("乏")'
                                             ^^ (missing "乏")
Median +- std dev: 1.67 us +- 0.05 us
History
Date User Action Args
2017-03-29 07:52:03louielusetrecipients: + louielu, pitrou, vstinner, ned.deily, methane, python-dev, serhiy.storchaka, azsorkin, xiang.zhang
2017-03-29 07:52:03louielusetmessageid: <1490773923.08.0.99706830061.issue24821@psf.upfronthosting.co.za>
2017-03-29 07:52:03louielulinkissue24821 messages
2017-03-29 07:52:02louielucreate