Skip to content

Instantly share code, notes, and snippets.

@methane
Created June 17, 2016 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save methane/cfad1427d87ceff9310350e78a214880 to your computer and use it in GitHub Desktop.
Save methane/cfad1427d87ceff9310350e78a214880 to your computer and use it in GitHub Desktop.
-------------------------------------------------------------------------------
PYBENCH 2.1
-------------------------------------------------------------------------------
* using CPython 3.6.0a2+ (default, Jun 17 2016, 19:59:16) [GCC 5.3.1 20160413]
* disabled garbage collection
* system check interval set to maximum: 2147483647
* using timer: time.perf_counter
* timer: resolution=1e-09, implementation=clock_gettime(CLOCK_MONOTONIC)
-------------------------------------------------------------------------------
Benchmark: compact-dict3.pyb
-------------------------------------------------------------------------------
Rounds: 10
Warp: 10
Timer: time.perf_counter
Machine Details:
Platform ID: Linux-4.4.0-24-generic-x86_64-with-debian-stretch-sid
Processor: x86_64
Python:
Implementation: CPython
Executable: /home/inada-n/work/python/compact-dict/python
Version: 3.6.0a2+
Compiler: GCC 5.3.1 20160413
Bits: 64bit
Build: Jun 17 2016 19:59:16 (#default)
Unicode: UCS4
-------------------------------------------------------------------------------
Comparing with: ../cpython/master.pyb
-------------------------------------------------------------------------------
Rounds: 10
Warp: 10
Timer: time.perf_counter
Machine Details:
Platform ID: Linux-4.4.0-24-generic-x86_64-with-debian-stretch-sid
Processor: x86_64
Python:
Implementation: CPython
Executable: /home/inada-n/work/python/cpython/python
Version: 3.6.0a2+
Compiler: GCC 5.3.1 20160413
Bits: 64bit
Build: Jun 17 2016 11:49:23 (#default)
Unicode: UCS4
Test minimum run-time average run-time
this other diff this other diff
-------------------------------------------------------------------------------
BuiltinFunctionCalls: 68ms 68ms +0.0% 68ms 69ms -0.5%
BuiltinMethodLookup: 36ms 35ms +0.3% 36ms 36ms -0.8%
CompareFloats: 39ms 39ms -0.9% 39ms 40ms -0.9%
CompareFloatsIntegers: 50ms 51ms -0.9% 50ms 51ms -0.9%
CompareIntegers: 55ms 56ms -1.4% 55ms 56ms -1.5%
CompareInternedStrings: 38ms 38ms +1.6% 39ms 38ms +0.5%
CompareLongs: 32ms 33ms -2.0% 32ms 33ms -2.2%
CompareStrings: 34ms 34ms +2.8% 35ms 34ms +2.8%
ComplexPythonFunctionCalls: 58ms 58ms -0.7% 58ms 59ms -1.0%
ConcatStrings: 41ms 40ms +1.2% 41ms 40ms +1.5%
CreateInstances: 67ms 64ms +4.2% 67ms 65ms +3.1%
CreateNewInstances: 50ms 48ms +4.4% 50ms 48ms +4.2%
CreateStringsWithConcat: 86ms 84ms +2.2% 86ms 84ms +2.4%
DictCreation: 40ms 39ms +3.2% 42ms 40ms +6.0%
DictWithFloatKeys: 53ms 52ms +1.9% 53ms 52ms +2.3%
DictWithIntegerKeys: 49ms 44ms +12.8% 50ms 44ms +14.3%
DictWithStringKeys: 39ms 37ms +4.7% 40ms 37ms +6.1%
ForLoops: 36ms 35ms +0.8% 36ms 35ms +0.8%
IfThenElse: 40ms 41ms -0.6% 40ms 41ms -0.7%
ListSlicing: 51ms 51ms -0.5% 51ms 52ms -1.1%
NestedForLoops: 48ms 48ms +1.7% 49ms 56ms -13.9%
NestedListComprehensions: 53ms 54ms -2.0% 54ms 55ms -2.6%
NormalClassAttribute: 113ms 107ms +5.3% 113ms 108ms +4.2%
NormalInstanceAttribute: 61ms 56ms +7.7% 61ms 57ms +6.8%
PythonFunctionCalls: 53ms 53ms +0.6% 53ms 53ms +0.6%
PythonMethodCalls: 73ms 71ms +3.7% 73ms 71ms +3.7%
Recursion: 88ms 84ms +4.5% 88ms 84ms +4.6%
SecondImport: 50ms 47ms +5.8% 50ms 47ms +5.8%
SecondPackageImport: 50ms 49ms +2.8% 50ms 49ms +2.0%
SecondSubmoduleImport: 102ms 102ms +0.5% 103ms 102ms +0.6%
SimpleComplexArithmetic: 33ms 33ms +0.7% 33ms 33ms +1.5%
SimpleDictManipulation: 96ms 80ms +20.3% 97ms 80ms +20.6%
SimpleFloatArithmetic: 34ms 35ms -2.3% 35ms 36ms -2.9%
SimpleIntFloatArithmetic: 39ms 38ms +2.4% 39ms 38ms +2.2%
SimpleIntegerArithmetic: 39ms 37ms +3.5% 39ms 38ms +2.8%
SimpleListComprehensions: 44ms 44ms +0.1% 45ms 45ms -0.4%
SimpleListManipulation: 41ms 41ms +1.5% 41ms 41ms +1.6%
SimpleLongArithmetic: 25ms 25ms -1.8% 25ms 26ms -1.2%
SmallLists: 50ms 49ms +2.3% 50ms 49ms +2.3%
SmallTuples: 65ms 63ms +4.0% 66ms 63ms +3.9%
SpecialClassAttribute: 112ms 105ms +6.1% 112ms 106ms +5.5%
SpecialInstanceAttribute: 62ms 60ms +4.4% 63ms 60ms +5.0%
StringMappings: 122ms 114ms +6.8% 122ms 114ms +6.7%
StringPredicates: 75ms 74ms +1.8% 75ms 74ms +1.8%
StringSlicing: 63ms 65ms -2.3% 85ms 65ms +30.4%
TryExcept: 33ms 32ms +0.5% 33ms 33ms +0.5%
TryFinally: 47ms 48ms -1.7% 47ms 48ms -1.8%
TryRaiseExcept: 19ms 19ms -0.8% 19ms 19ms -0.7%
TupleSlicing: 64ms 62ms +2.8% 64ms 63ms +2.1%
WithFinally: 74ms 76ms -1.7% 74ms 76ms -1.7%
WithRaiseExcept: 62ms 62ms +0.7% 63ms 62ms +0.6%
-------------------------------------------------------------------------------
Totals: 2854ms 2779ms +2.7% 2889ms 2804ms +3.0%
(this=compact-dict3.pyb, other=../cpython/master.pyb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment