Common platform: SCM: hg revision=25450fff5b90+ tag=tip branch=default date="2013-06-01 11:12 -0700" Python unicode implementation: PEP 393 Timer info: namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC)', monotonic=True, resolution=1e-09) Timer: time.perf_counter Platform: Linux-3.0.8+-armv7l-with-debian-wheezy-sid CFLAGS: -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes Bits: int=32, long=32, long long=64, void*=32 Platform of campaign original2.txt: Python version: 3.4.0a0 (default:25450fff5b90+, Jun 2 2013, 18:44:16) [GCC 4.7.2] Timer precision: 624 ns Date: 2013-06-02 18:44:51 Platform of campaign patched2.txt: Python version: 3.4.0a0 (default:25450fff5b90+, Jun 2 2013, 18:33:23) [GCC 4.7.2] Timer precision: 625 ns Date: 2013-06-02 18:40:46 Platform of campaign patched2_fh3.txt: Python version: 3.4.0a0 (default:25450fff5b90+, Jun 5 2013, 17:44:27) [GCC 4.7.2] Timer precision: 583 ns Date: 2013-06-05 17:49:30 ---------------------------+---------------+----------------+----------------- Length 10**1               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**1)          |    455 ns (*) |  838 ns (+84%) |    501 ns (+10%) hash('\u20ac' * 10**1)     |    451 ns (*) |  668 ns (+48%) |    543 ns (+20%) hash('\U0010ffff' * 10**1) |    443 ns (*) |  815 ns (+84%) |    533 ns (+20%) ---------------------------+---------------+----------------+----------------- Total                      |   1.35 us (*) | 2.32 us (+72%) |   1.58 us (+17%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+-----------------+----------------- Length 10**2               | original2.txt |    patched2.txt | patched2_fh3.txt ---------------------------+---------------+-----------------+----------------- hash('a' * 10**2)          |    762 ns (*) |  1.04 us (+37%) |    594 ns (-22%) hash('\u20ac' * 10**2)     |    801 ns (*) |  1.35 us (+69%) |    701 ns (-12%) hash('\U0010ffff' * 10**2) |    784 ns (*) | 1.92 us (+145%) |    917 ns (+17%) ---------------------------+---------------+-----------------+----------------- Total                      |   2.35 us (*) |  4.32 us (+84%) |    2.21 us (-6%) ---------------------------+---------------+-----------------+----------------- ---------------------------+---------------+-----------------+----------------- Length 10**3               | original2.txt |    patched2.txt | patched2_fh3.txt ---------------------------+---------------+-----------------+----------------- hash('a' * 10**3)          |   3.62 us (*) |         3.49 us |   1.55 us (-57%) hash('\u20ac' * 10**3)     |   4.23 us (*) |  6.19 us (+46%) |    2.6 us (-38%) hash('\U0010ffff' * 10**3) |   4.23 us (*) | 11.6 us (+173%) |   4.73 us (+12%) ---------------------------+---------------+-----------------+----------------- Total                      |   12.1 us (*) |  21.2 us (+76%) |   8.88 us (-27%) ---------------------------+---------------+-----------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**4               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**4)          |   34.5 us (*) | 27.4 us (-21%) |   11.1 us (-68%) hash('\u20ac' * 10**4)     |   42.6 us (*) |   55 us (+29%) |     22 us (-48%) hash('\U0010ffff' * 10**4) |   55.4 us (*) | 117 us (+111%) |          53.3 us ---------------------------+---------------+----------------+----------------- Total                      |    133 us (*) |  200 us (+51%) |   86.4 us (-35%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+-----------------+----------------- Length 10**5               | original2.txt |    patched2.txt | patched2_fh3.txt ---------------------------+---------------+-----------------+----------------- hash('a' * 10**5)          |    384 us (*) |   289 us (-25%) |    159 us (-59%) hash('\u20ac' * 10**5)     |    470 us (*) |   592 us (+26%) |    324 us (-31%) hash('\U0010ffff' * 10**5) |    583 us (*) | 1.19 ms (+104%) |    653 us (+12%) ---------------------------+---------------+-----------------+----------------- Total                      |   1.44 ms (*) |  2.07 ms (+44%) |   1.14 ms (-21%) ---------------------------+---------------+-----------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**6               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**6)          |   3.99 ms (*) |  3.2 ms (-20%) |   1.73 ms (-57%) hash('\u20ac' * 10**6)     |   4.94 ms (*) | 6.12 ms (+24%) |   3.49 ms (-29%) hash('\U0010ffff' * 10**6) |   6.25 ms (*) | 12.1 ms (+94%) |      7 ms (+12%) ---------------------------+---------------+----------------+----------------- Total                      |   15.2 ms (*) | 21.5 ms (+41%) |   12.2 ms (-20%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**7               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**7)          |     40 ms (*) | 31.9 ms (-20%) |   17.6 ms (-56%) hash('\u20ac' * 10**7)     |   49.5 ms (*) | 61.3 ms (+24%) |   34.8 ms (-30%) hash('\U0010ffff' * 10**7) |   62.4 ms (*) |  123 ms (+97%) |   70.4 ms (+13%) ---------------------------+---------------+----------------+----------------- Total                      |    152 ms (*) |  216 ms (+42%) |    123 ms (-19%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+-----------------+----------------- Length 10**8               | original2.txt |    patched2.txt | patched2_fh3.txt ---------------------------+---------------+-----------------+----------------- hash('a' * 10**8)          |    402 ms (*) |   320 ms (-20%) |    175 ms (-56%) hash('\u20ac' * 10**8)     |    485 ms (*) |   596 ms (+23%) |    353 ms (-27%) hash('\U0010ffff' * 10**8) |    608 ms (*) | 1.19 sec (+96%) |    708 ms (+16%) ---------------------------+---------------+-----------------+----------------- Total                      |   1.5 sec (*) | 2.11 sec (+41%) |  1.24 sec (-17%) ---------------------------+---------------+-----------------+----------------- -------------+---------------+-----------------+----------------- Summary      | original2.txt |    patched2.txt | patched2_fh3.txt -------------+---------------+-----------------+----------------- Length 10**1 |   1.35 us (*) |  2.32 us (+72%) |   1.58 us (+17%) Length 10**2 |   2.35 us (*) |  4.32 us (+84%) |    2.21 us (-6%) Length 10**3 |   12.1 us (*) |  21.2 us (+76%) |   8.88 us (-27%) Length 10**4 |    133 us (*) |   200 us (+51%) |   86.4 us (-35%) Length 10**5 |   1.44 ms (*) |  2.07 ms (+44%) |   1.14 ms (-21%) Length 10**6 |   15.2 ms (*) |  21.5 ms (+41%) |   12.2 ms (-20%) Length 10**7 |    152 ms (*) |   216 ms (+42%) |    123 ms (-19%) Length 10**8 |   1.5 sec (*) | 2.11 sec (+41%) |  1.24 sec (-17%) -------------+---------------+-----------------+----------------- Total        |  1.66 sec (*) | 2.35 sec (+41%) |  1.37 sec (-18%) -------------+---------------+-----------------+-----------------