[libc-commits] [PATCH] D128995: [libc][math] Improved ExhaustiveTest performance.

Kirill Okhotnikov via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jul 1 07:44:46 PDT 2022


orex created this revision.
orex added reviewers: lntue, sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
orex requested review of this revision.

Previous implementation splits value ranges around threads. Because of
very different performance of testing functions over different ranges,
CPU utilization were poor. Current implementation split test range
over small pieces and threads take the pieces when they finish with
previous. Therefore the CPU load is constant during testing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128995

Files:
  libc/test/src/math/exhaustive/exhaustive_test.cpp
  libc/test/src/math/exhaustive/exhaustive_test.h
  libc/test/src/math/exhaustive/exp2f_test.cpp
  libc/test/src/math/exhaustive/expf_test.cpp
  libc/test/src/math/exhaustive/expm1f_test.cpp
  libc/test/src/math/exhaustive/hypotf_test.cpp
  libc/test/src/math/exhaustive/log10f_test.cpp
  libc/test/src/math/exhaustive/log1pf_test.cpp
  libc/test/src/math/exhaustive/log2f_test.cpp
  libc/test/src/math/exhaustive/logf_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128995.441691.patch
Type: text/x-patch
Size: 18531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220701/21d3f408/attachment-0001.bin>


More information about the libc-commits mailing list