Skip to content

Instantly share code, notes, and snippets.

@gsalgado
Created August 20, 2020 04: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 gsalgado/d7c9b52347e15fd4eda1de00ddf9324f to your computer and use it in GitHub Desktop.
Save gsalgado/d7c9b52347e15fd4eda1de00ddf9324f to your computer and use it in GitHub Desktop.
============================= test session starts ==============================
platform linux -- Python 3.8.2, pytest-5.3.5, py-1.9.0, pluggy-0.13.1
Using --randomly-seed=1597896722
rootdir: /home/salgado/src/snakecharmers/trinity, inifile: pytest.ini
plugins: xdist-1.29.0, forked-1.2.0, anyio-1.3.1, cov-2.8.1, sugar-0.9.3, hypothesis-4.57.1, repeat-0.8.0, mock-1.12.1, web3-5.11.1, asyncio-0.10.0, aiohttp-0.3.0, randomly-3.1.0, Faker-4.1.1
collected 1 item
tests/core/p2p-proto/test_eth_proto.py::test_decode_perf
======= Transactions(snappy=True) =======
1 items (msg len: 94): 0.00007
10 items (msg len: 766): 0.00050
100 items (msg len: 7498): 0.00456
500 items (msg len: 38089): 0.02313
1000 items (msg len: 76089): 0.06047
======= Transactions(snappy=False) =======
1 items (msg len: 108): 0.00006
10 items (msg len: 1000): 0.00046
100 items (msg len: 9909): 0.00449
500 items (msg len: 49504): 0.02331
1000 items (msg len: 99001): 0.05989
======= BlockBodiesV65(snappy=True) =======
1 items (msg len: 339): 0.00029
10 items (msg len: 2140): 0.00257
100 items (msg len: 20122): 0.02620
500 items (msg len: 100820): 0.16677
1000 items (msg len: 201275): 0.35442
======= BlockBodiesV65(snappy=False) =======
1 items (msg len: 1226): 0.00028
10 items (msg len: 12170): 0.00258
100 items (msg len: 121608): 0.03259
500 items (msg len: 607998): 0.17256
1000 items (msg len: 1215992): 0.35618
PASSED
========================== slowest 50 test durations ===========================
19.09s call tests/core/p2p-proto/test_eth_proto.py::test_decode_perf
0.02s setup tests/core/p2p-proto/test_eth_proto.py::test_decode_perf
(0.00 durations hidden. Use -vv to show these durations.)
============================== 1 passed in 19.19s ==============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment