Common platform: Timer: time.perf_counter CPU model: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz Timer info: namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC)', monotonic=True, resolution=1e-09) Python unicode implementation: PEP 393 CFLAGS: -Wno-unused-result -Werror=declaration-after-statement -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes Bits: int=32, long=64, long long=64, size_t=64, void*=64 Platform: Linux-3.9.4-200.fc18.x86_64-x86_64-with-fedora-18-Spherical_Cow SCM: hg revision=155e6fb309f5+ branch=default date="2013-05-21 21:02 +0200" Platform of campaign original2.txt: Timer precision: 43 ns Date: 2013-06-02 17:16:02 Python version: 3.4.0a0 (default:155e6fb309f5+, Jun 2 2013, 17:15:53) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] Platform of campaign patched2.txt: Timer precision: 44 ns Date: 2013-06-03 19:59:23 Python version: 3.4.0a0 (default:155e6fb309f5+, Jun 3 2013, 19:58:40) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] Platform of campaign patched2_fh3.txt: Python version: 3.4.0a0 (default:155e6fb309f5+, Jun 5 2013, 17:40:36) [GCC 4.7.2 20121109 (Red Hat 4.7.2-8)] Date: 2013-06-05 17:40:43 Timer precision: 39 ns ---------------------------+---------------+---------------+----------------- Length 10**1               | original2.txt |  patched2.txt | patched2_fh3.txt ---------------------------+---------------+---------------+----------------- hash('a' * 10**1)          |    102 ns (*) |        105 ns |      95 ns (-7%) hash('\u20ac' * 10**1)     |    101 ns (*) |        103 ns |            96 ns hash('\U0010ffff' * 10**1) |     95 ns (*) | 105 ns (+11%) |            97 ns ---------------------------+---------------+---------------+----------------- Total                      |    298 ns (*) |  314 ns (+5%) |           289 ns ---------------------------+---------------+---------------+----------------- ---------------------------+---------------+---------------+----------------- Length 10**2               | original2.txt |  patched2.txt | patched2_fh3.txt ---------------------------+---------------+---------------+----------------- hash('a' * 10**2)          |    200 ns (*) | 115 ns (-42%) |    105 ns (-47%) hash('\u20ac' * 10**2)     |    201 ns (*) | 123 ns (-39%) |    114 ns (-43%) hash('\U0010ffff' * 10**2) |    204 ns (*) | 139 ns (-32%) |    139 ns (-32%) ---------------------------+---------------+---------------+----------------- Total                      |    605 ns (*) | 377 ns (-38%) |    359 ns (-41%) ---------------------------+---------------+---------------+----------------- ---------------------------+---------------+---------------+----------------- Length 10**3               | original2.txt |  patched2.txt | patched2_fh3.txt ---------------------------+---------------+---------------+----------------- hash('a' * 10**3)          |   1.28 us (*) | 186 ns (-85%) |    230 ns (-82%) hash('\u20ac' * 10**3)     |   1.29 us (*) | 270 ns (-79%) |    378 ns (-71%) hash('\U0010ffff' * 10**3) |   1.27 us (*) | 448 ns (-65%) |    682 ns (-46%) ---------------------------+---------------+---------------+----------------- Total                      |   3.84 us (*) | 905 ns (-76%) |   1.29 us (-66%) ---------------------------+---------------+---------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**4               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**4)          |     12 us (*) |  954 ns (-92%) |   1.58 us (-87%) hash('\u20ac' * 10**4)     |     12 us (*) |  1.8 us (-85%) |    3.1 us (-74%) hash('\U0010ffff' * 10**4) |     12 us (*) | 3.51 us (-71%) |   6.05 us (-50%) ---------------------------+---------------+----------------+----------------- Total                      |     36 us (*) | 6.26 us (-83%) |   10.7 us (-70%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**5               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**5)          |    119 us (*) | 8.73 us (-93%) |   15.1 us (-87%) hash('\u20ac' * 10**5)     |    119 us (*) |   17 us (-86%) |   30.2 us (-75%) hash('\U0010ffff' * 10**5) |    123 us (*) | 35.3 us (-71%) |   60.5 us (-51%) ---------------------------+---------------+----------------+----------------- Total                      |    361 us (*) | 61.1 us (-83%) |    106 us (-71%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**6               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**6)          |   1.22 ms (*) | 85.5 us (-93%) |    151 us (-88%) hash('\u20ac' * 10**6)     |    1.2 ms (*) |  171 us (-86%) |    303 us (-75%) hash('\U0010ffff' * 10**6) |    1.2 ms (*) |  368 us (-69%) |    613 us (-49%) ---------------------------+---------------+----------------+----------------- Total                      |   3.62 ms (*) |  624 us (-83%) |   1.07 ms (-71%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**7               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**7)          |   12.1 ms (*) |  968 us (-92%) |   1.54 ms (-87%) hash('\u20ac' * 10**7)     |   12.2 ms (*) | 1.92 ms (-84%) |   3.18 ms (-74%) hash('\U0010ffff' * 10**7) |   12.2 ms (*) | 3.92 ms (-68%) |   6.38 ms (-48%) ---------------------------+---------------+----------------+----------------- Total                      |   36.5 ms (*) | 6.81 ms (-81%) |   11.1 ms (-70%) ---------------------------+---------------+----------------+----------------- ---------------------------+---------------+----------------+----------------- Length 10**8               | original2.txt |   patched2.txt | patched2_fh3.txt ---------------------------+---------------+----------------+----------------- hash('a' * 10**8)          |    123 ms (*) | 9.91 ms (-92%) |   15.3 ms (-88%) hash('\u20ac' * 10**8)     |    121 ms (*) |   19 ms (-84%) |   30.6 ms (-75%) hash('\U0010ffff' * 10**8) |    122 ms (*) | 38.3 ms (-69%) |   62.6 ms (-49%) ---------------------------+---------------+----------------+----------------- Total                      |    367 ms (*) | 67.3 ms (-82%) |    108 ms (-70%) ---------------------------+---------------+----------------+----------------- -------------+---------------+----------------+----------------- Summary      | original2.txt |   patched2.txt | patched2_fh3.txt -------------+---------------+----------------+----------------- Length 10**1 |    298 ns (*) |   314 ns (+5%) |           289 ns Length 10**2 |    605 ns (*) |  377 ns (-38%) |    359 ns (-41%) Length 10**3 |   3.84 us (*) |  905 ns (-76%) |   1.29 us (-66%) Length 10**4 |     36 us (*) | 6.26 us (-83%) |   10.7 us (-70%) Length 10**5 |    361 us (*) | 61.1 us (-83%) |    106 us (-71%) Length 10**6 |   3.62 ms (*) |  624 us (-83%) |   1.07 ms (-71%) Length 10**7 |   36.5 ms (*) | 6.81 ms (-81%) |   11.1 ms (-70%) Length 10**8 |    367 ms (*) | 67.3 ms (-82%) |    108 ms (-70%) -------------+---------------+----------------+----------------- Total        |    407 ms (*) | 74.8 ms (-82%) |    121 ms (-70%) -------------+---------------+----------------+-----------------