Skip to content

Instantly share code, notes, and snippets.

@mattip
Last active May 12, 2017 06:24
Show Gist options
  • Save mattip/d989b1e21a7432f97ec2011ab0074708 to your computer and use it in GitHub Desktop.
Save mattip/d989b1e21a7432f97ec2011ab0074708 to your computer and use it in GitHub Desktop.
compare test runs win32 to linux
Windows, test run requires __580__ seconds
> python pytest.py rpython\translator\c\test\test_typed.py --duration=10
[platform:msg] Set platform with 'host' cc=None, using cc='cl.exe', version=90
============================= test session starts =============================
platform win32 -- Python 2.7.13, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
pytest-2.9.2 from D:\pypy_stuff\pypy\pytest.pyc
rootdir: D:\pypy_stuff\pypy\rpython, inifile: pytest.ini
plugins: profiling-1.2.6
collected 71 items
rpython\translator\c\test\test_typed.py .....................................................................s.
========================== slowest 10 test durations ==========================
46.91s call translator/c/test/test_typed.py::TestTypedTestCase::test_unichr_unichr
45.33s call translator/c/test/test_typed.py::TestTypedTestCase::test_unichr_ne
44.55s call translator/c/test/test_typed.py::TestTypedTestCase::test_unichr_eq
42.46s call translator/c/test/test_typed.py::TestTypedTestCase::test_int_mul_ovf
40.59s call translator/c/test/test_typed.py::TestTypedTestCase::test_str_compare
22.15s call translator/c/test/test_typed.py::TestTypedTestCase::test_list_basic_ops
18.14s call translator/c/test/test_typed.py::TestTypedTestCase::test_str_methods
17.14s call translator/c/test/test_typed.py::TestTypedTestCase::test_long_long
17.12s call translator/c/test/test_typed.py::TestTypedTestCase::test_r_dict_exceptions
15.16s call translator/c/test/test_typed.py::TestTypedTestCase::test_hash_string_siphash24
=================== 70 passed, 1 skipped in 584.38 seconds ====================
Now Linux, test run requires __177__ seconds
:~/pypy_stuff/pypy$ python pytest.py rpython/translator/c/test/test_typed.py --duration=10
[platform:msg] Set platform with 'host' cc=None, using cc='gcc', version='Unknown'
============================= test session starts ==============================
platform linux2 -- Python 2.7.12, pytest-2.9.2, py-1.4.29, pluggy-0.3.1
pytest-2.9.2 from /home/matti/pypy_stuff/pypy/pytest.pyc
rootdir: /home/matti/pypy_stuff/pypy/rpython, inifile: pytest.ini
plugins: hypothesis-3.0.1
collected 71 items
rpython/translator/c/test/test_typed.py .......................................................................
========================== slowest 10 test durations ===========================
11.54s call translator/c/test/test_typed.py::TestTypedTestCase::test_r_dict_exceptions
10.88s call translator/c/test/test_typed.py::TestTypedTestCase::test_str_compare
9.98s call translator/c/test/test_typed.py::TestTypedTestCase::test_long_long
5.05s call translator/c/test/test_typed.py::TestTypedTestCase::test_hash_string_siphash24
4.65s call translator/c/test/test_typed.py::TestTypedTestCase::test_iterkeys_with_hash_on_prebuilt_dict
3.54s call translator/c/test/test_typed.py::TestTypedTestCase::test_float_ops
3.52s call translator/c/test/test_typed.py::TestTypedTestCase::test_downcast_int
3.50s call translator/c/test/test_typed.py::TestTypedTestCase::test_float
3.44s call translator/c/test/test_typed.py::TestTypedTestCase::test_hash_string_fnv
3.41s call translator/c/test/test_typed.py::TestTypedTestCase::test_str_methods
========================= 71 passed in 177.41 seconds ==========================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment