Common platform: CPU model: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz SCM: hg revision=d3185be3e8d7+ tag=tip branch=default date="2013-04-08 22:43 +0200" Timer info: namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC)', monotonic=True, resolution=1e-09) Python unicode implementation: PEP 393 CFLAGS: -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fno-builtin-memcmp Bits: int=32, long=64, long long=64, size_t=64, void*=64 Timer: time.perf_counter Platform: Linux-3.8.1-201.fc18.x86_64-x86_64-with-fedora-18-Spherical_Cow Platform of campaign original: Python version: 3.4.0a0 (default:d3185be3e8d7+, Apr 8 2013, 23:42:14) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] Timer precision: 40 ns Date: 2013-04-08 23:42:14 Platform of campaign patched: Python version: 3.4.0a0 (default:d3185be3e8d7+, Apr 8 2013, 23:25:58) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] Timer precision: 39 ns Date: 2013-04-08 23:41:11 -----------------------+------------+------------- Length 1 | original | patched -----------------------+------------+------------- hash('a' * 1) | 76 ns (*) | 81 ns (+7%) hash('\u20ac' * 1) | 79 ns (*) | 80 ns hash('\U0010ffff' * 1) | 76 ns (*) | 83 ns (+9%) -----------------------+------------+------------- Total | 231 ns (*) | 244 ns (+6%) -----------------------+------------+------------- -----------------------+------------+------------- Length 3 | original | patched -----------------------+------------+------------- hash('a' * 3) | 79 ns (*) | 83 ns hash('\u20ac' * 3) | 79 ns (*) | 86 ns (+8%) hash('\U0010ffff' * 3) | 79 ns (*) | 85 ns (+7%) -----------------------+------------+------------- Total | 238 ns (*) | 253 ns (+6%) -----------------------+------------+------------- ------------------------+------------+-------- Length 10 | original | patched ------------------------+------------+-------- hash('a' * 10) | 84 ns (*) | 83 ns hash('\u20ac' * 10) | 85 ns (*) | 85 ns hash('\U0010ffff' * 10) | 85 ns (*) | 83 ns ------------------------+------------+-------- Total | 254 ns (*) | 251 ns ------------------------+------------+-------- ------------------------+------------+------------- Length 20 | original | patched ------------------------+------------+------------- hash('a' * 20) | 94 ns (*) | 86 ns (-8%) hash('\u20ac' * 20) | 92 ns (*) | 84 ns (-9%) hash('\U0010ffff' * 20) | 94 ns (*) | 86 ns (-8%) ------------------------+------------+------------- Total | 280 ns (*) | 256 ns (-8%) ------------------------+------------+------------- -------------------------+------------+-------------- Length 100 | original | patched -------------------------+------------+-------------- hash('a' * 100) | 175 ns (*) | 92 ns (-47%) hash('\u20ac' * 100) | 178 ns (*) | 102 ns (-43%) hash('\U0010ffff' * 100) | 175 ns (*) | 127 ns (-27%) -------------------------+------------+-------------- Total | 528 ns (*) | 321 ns (-39%) -------------------------+------------+-------------- -----------------------------+-------------+--------------- Length 10 ** 4 | original | patched -----------------------------+-------------+--------------- hash('a' * 10 ** 4) | 10.7 us (*) | 1.4 us (-87%) hash('\u20ac' * 10 ** 4) | 10.7 us (*) | 2.73 us (-74%) hash('\U0010ffff' * 10 ** 4) | 10.7 us (*) | 5.35 us (-50%) -----------------------------+-------------+--------------- Total | 32 us (*) | 9.49 us (-70%) -----------------------------+-------------+--------------- -----------------------------+------------+--------------- Length 10 ** 8 | original | patched -----------------------------+------------+--------------- hash('a' * 10 ** 8) | 108 ms (*) | 14.7 ms (-86%) hash('\u20ac' * 10 ** 8) | 109 ms (*) | 29.7 ms (-73%) hash('\U0010ffff' * 10 ** 8) | 112 ms (*) | 59.6 ms (-47%) -----------------------------+------------+--------------- Total | 329 ms (*) | 104 ms (-68%) -----------------------------+------------+--------------- ---------------+------------+--------------- Summary | original | patched ---------------+------------+--------------- Length 1 | 231 ns (*) | 244 ns (+6%) Length 3 | 238 ns (*) | 253 ns (+6%) Length 10 | 254 ns (*) | 251 ns Length 20 | 280 ns (*) | 256 ns (-8%) Length 100 | 528 ns (*) | 321 ns (-39%) Length 10 ** 4 | 32 us (*) | 9.49 us (-70%) Length 10 ** 8 | 329 ms (*) | 104 ms (-68%) ---------------+------------+--------------- Total | 329 ms (*) | 104 ms (-68%) ---------------+------------+---------------