Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add performance suite #9460

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Add performance suite #9460

wants to merge 13 commits into from

Conversation

sklam
Copy link
Member

@sklam sklam commented Feb 22, 2024

building on #9436

TODO:

  • every benchmark should run in a fresh process in benchmark mode df39900

@sklam
Copy link
Member Author

sklam commented Feb 23, 2024

Sample runs of the perfsuite:

% NUMBA_PERFSUITE_BENCHMARK=1 python runtests.py -k perfsuite -m=1 --junit --show-timing -v
skipped CUDA tests
skipped CUDA tests
Parallel: 1. Serial: 0
test_find_chr_next_occurance (numba.tests.perfsuite.test_perf_range.TestFindChrNextOccurance.test_find_chr_next_occurance) ... ok
    Runtime (seconds): 3.0769517086446285
    execution_time           : 0.318s /   500 runs = 635.98us
    compile_time             : 0.211s /     2 runs = 105.58ms

----------------------------------------------------------------------
Ran 1 test in 3.874s

OK

And with #9428 changes applied:

% NUMBA_PERFSUITE_BENCHMARK=1 python runtests.py -k perfsuite -m=1 --junit --show-timing -v
skipped CUDA tests
skipped CUDA tests
Parallel: 1. Serial: 0
test_find_chr_next_occurance (numba.tests.perfsuite.test_perf_range.TestFindChrNextOccurance.test_find_chr_next_occurance) ... ok
    Runtime (seconds): 2.7484857086092234
    execution_time           : 0.212s /   500 runs = 424.51us
    compile_time             : 0.226s /     2 runs = 112.91ms

----------------------------------------------------------------------
Ran 1 test in 3.548s

OK

@sklam
Copy link
Member Author

sklam commented Apr 26, 2024

Buildfarm failed vectorizer tests on linux:

======================================================================
FAIL: test_unsigned_refusal_to_vectorize (numba.tests.test_parfors.TestParforsVectorizer.test_unsigned_refusal_to_vectorize)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/conda/envs/testenv_8d765046/lib/python3.11/site-packages/numba/tests/support.py", line 664, in test_inner
func(self)
File "/opt/conda/envs/testenv_8d765046/lib/python3.11/site-packages/numba/tests/test_parfors.py", line 4793, in test_unsigned_refusal_to_vectorize
self.assertTrue('zmm' in v)
AssertionError: False is not true

Windows has probelm with writing to tempfile:

STDOUT
  Traceback (most recent call last):
    File "<frozen runpy>", line 198, in _run_module_as_main
    File "<frozen runpy>", line 88, in _run_code
    File "C:\path\to\miniconda3\envs\testenv_6b76c2ba\Lib\site-packages\numba\testing\subproc_runner.py", line 77, in <module>
      main()
    File "C:\path\to\miniconda3\envs\testenv_6b76c2ba\Lib\site-packages\numba\testing\subproc_runner.py", line 61, in main
      with open(outfilename, mode='wb') as outfile:
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  PermissionError: [Errno 13] Permission denied: 'C:\\Users\\ci\\AppData\\Local\\Temp\\tmpnvkzgojq'

END

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant