Skip to content

Instantly share code, notes, and snippets.

@hackaugusto
Created February 26, 2016 16:11
Show Gist options
  • Select an option

  • Save hackaugusto/c0b05db259eea3547587 to your computer and use it in GitHub Desktop.

Select an option

Save hackaugusto/c0b05db259eea3547587 to your computer and use it in GitHub Desktop.
second run
3598395 function calls (3793231 primitive calls) in 10.645 seconds
Ordered by: internal time
List reduced from 325 to 15 due to restriction <15>
ncalls tottime percall cumtime percall filename:lineno(function)
7000 0.718 0.000 1.049 0.000 __init__.py:224(ecdsa_recover_compact)
17000/122000 0.622 0.000 1.817 0.000 umsgpack.py:338(_pack2)
53020 0.451 0.000 1.455 0.000 keccak.py:79(Keccak_Hash.__init__)
5000 0.369 0.000 0.398 0.000 __init__.py:136(_ecdsa_sign_recoverable)
99000 0.320 0.000 0.542 0.000 umsgpack.py:268(_pack_binary)
53020 0.306 0.000 1.861 0.000 keccak.py:164(new)
106040 0.304 0.000 0.565 0.000 api.py:224(FFI.new)
53020 0.291 0.000 0.894 0.000 keccak.py:125(Keccak_Hash.digest)
146990 0.261 0.000 0.421 0.000 umsgpack.py:484(_read_except)
53020 0.240 0.000 0.481 0.000 keccak.py:97(Keccak_Hash.update)
53020 0.198 0.000 3.111 0.000 utils.py:3(<lambda>)
17000/23000 0.191 0.000 0.817 0.000 encoding.py:83(MediatedTransfer.serialize)
43994 0.174 0.000 0.307 0.000 utils_py2.py:29(packl)
17000/23000 0.169 0.000 1.641 0.000 umsgpack.py:308(_pack_array)
17631/17999 0.156 0.000 13.088 0.001 greenlet.py:513(TransferTask.run)
3598395 function calls (3793231 primitive calls) in 10.645 seconds
Ordered by: cumulative time
List reduced from 325 to 15 due to restriction <15>
ncalls tottime percall cumtime percall filename:lineno(function)
17631/17999 0.156 0.000 13.088 0.001 greenlet.py:513(TransferTask.run)
9999 0.028 0.000 6.445 0.001 baseserver.py:151(_close_when_done)
9999 0.019 0.000 6.411 0.001 transport.py:21(UDPTransport.receive)
9999 0.081 0.000 6.392 0.001 raiden_protocol.py:66(RaidenProtocol.receive)
2000 0.066 0.000 5.436 0.003 tasks.py:97(TransferTask._run)
53020 0.112 0.000 3.269 0.000 utils.py:109(sha3)
53020 0.198 0.000 3.111 0.000 utils.py:3(<lambda>)
9999 0.053 0.000 2.836 0.000 encoding.py:197(Decoder.decode)
5000 0.070 0.000 2.740 0.001 raiden_service.py:67(RaidenService.on_message)
5000 0.022 0.000 2.311 0.000 encoding.py:151(decode)
4000 0.015 0.000 2.155 0.001 channel.py:230(Channel.register_transfer)
7000 0.029 0.000 1.918 0.000 encoding.py:174(MediatedTransfer._recover_sender)
17000 0.026 0.000 1.902 0.000 encoding.py:52(encode_msg)
17000 0.048 0.000 1.876 0.000 umsgpack.py:434(_packb2)
53020 0.306 0.000 1.861 0.000 keccak.py:164(new)
Completed 1000 transfers at 73.2363860257 tps
ncalls tottime percall % cumtime percall function
16000 0.018 0.000 0.17 0.152 0.000 <genexpr>
19999 0.054 0.000 0.50 0.155 0.000 BigEndianInt.deserialize
71000 0.089 0.000 0.84 0.131 0.000 is_integer
43994 0.174 0.000 1.64 0.307 0.000 packl
2000 0.005 0.000 0.05 0.018 0.000 encode_hex
19999 0.026 0.000 0.24 0.242 0.000 deserialize
4999 0.013 0.000 0.12 0.419 0.000 decode
2000 0.014 0.000 0.13 0.068 0.000 deserialize
18000 0.017 0.000 0.16 1.199 0.000 MediatedTransfer.sender
9999 0.081 0.000 0.76 0.514 0.000 deserialize
4000 0.009 0.000 0.09 0.041 0.000 is_sequence
17000/23000 0.169 0.000 1.59 1.641 0.000 _pack_array
4000 0.017 0.000 0.16 0.043 0.000 Binary.serialize
44997 0.119 0.000 1.12 0.396 0.000 _unpack_binary
7000 0.029 0.000 0.27 1.918 0.000 MediatedTransfer._recover_sender
17000/122000 0.622 0.000 5.85 1.817 0.000 _pack2
47000 0.055 0.000 0.52 0.548 0.000 serialize
4000 0.050 0.000 0.47 0.237 0.000 List.serialize
4000 0.041 0.000 0.39 0.167 0.000 List.__init__
9999 0.053 0.000 0.50 2.836 0.000 Decoder.decode
9999/11999 0.073 0.000 0.68 0.696 0.000 _unpack_array
7000 0.028 0.000 0.26 1.490 0.000 MediatedTransfer.encode
4000/16000 0.058 0.000 0.55 0.264 0.000 infer_sedes
28000 0.039 0.000 0.37 0.075 0.000 is_sedes
8000 0.011 0.000 0.11 0.017 0.000 length_prefix
16000 0.027 0.000 0.25 0.037 0.000 is_valid_type
4000 0.009 0.000 0.08 0.014 0.000 Binary.is_valid_length
9999/56996 0.109 0.000 1.02 0.757 0.000 _unpack
9999 0.014 0.000 0.13 0.818 0.000 decode_msg
76998 0.037 0.000 0.35 0.037 0.000 serialize
55000 0.116 0.000 1.09 0.523 0.000 BigEndianInt.serialize
5000 0.017 0.000 0.16 0.435 0.000 Ack.encode
17000 0.048 0.000 0.45 1.876 0.000 _packb2
4000 0.020 0.000 0.19 0.791 0.000 encode
71999 0.148 0.000 1.39 0.269 0.000 hex_encode
19999 0.045 0.000 0.43 0.084 0.000 big_endian_to_int
17000/23000 0.191 0.000 1.79 0.817 0.000 MediatedTransfer.serialize
99000 0.320 0.000 3.01 0.542 0.000 _pack_binary
23000 0.034 0.000 0.32 0.051 0.000 MediatedTransfer.__repr__
17000 0.026 0.000 0.24 1.902 0.000 encode_msg
4000/16000 0.071 0.000 0.67 0.266 0.000 encode_raw
9999 0.042 0.000 0.39 0.804 0.000 _unpackb2
5000 0.022 0.000 0.20 2.311 0.000 decode
146990 0.261 0.000 2.45 0.421 0.000 _read_except
5000 0.037 0.000 0.35 1.658 0.000 MediatedTransfer.sign
Runtime: 10.645245548, Total %: 32.50049561
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment