Skip to content

Commit d99bb01

Browse files
authored
[libc][NFC] Clean up test/src/math/differential_testing folder, renaming it to performance_testing. (#84646)
Removing all the diff tests.
1 parent 63a5dc4 commit d99bb01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+88
-666
lines changed

libc/docs/math/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,13 +567,13 @@ Legends:
567567
Performance
568568
===========
569569

570-
* Simple performance testings are located at: `libc/test/src/math/differential_testing <https://github.com/llvm/llvm-project/tree/main/libc/test/src/math/differential_testing>`_.
570+
* Simple performance testings are located at: `libc/test/src/math/performance_testing <https://github.com/llvm/llvm-project/tree/main/libc/test/src/math/performance_testing>`_.
571571

572572
* We also use the *perf* tool from the `CORE-MATH <https://core-math.gitlabpages.inria.fr/>`_
573573
project: `link <https://gitlab.inria.fr/core-math/core-math/-/tree/master>`_.
574574
The performance results from the CORE-MATH's perf tool are reported in the
575575
table below, using the system library as reference (such as the `GNU C library <https://www.gnu.org/software/libc/>`_
576-
on Linux). Fmod performance results obtained with "differential_testing".
576+
on Linux). Fmod performance results obtained with "performance_testing".
577577

578578
+--------------+-------------------------------+-------------------------------+-------------------------------------+----------------------------------------------------------------------+
579579
| <Func> | Reciprocal throughput (clk) | Latency (clk) | Testing ranges | Testing configuration |

libc/src/math/docs/add_math_function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ implementation (which is very often glibc).
129129

130130
- Add a performance test to:
131131
```
132-
libc/test/src/math/differential_testing/<func>_perf.cpp
132+
libc/test/src/math/performance_testing/<func>_perf.cpp
133133
```
134134
- Add the corresponding entry point to:
135135
```
136-
libc/test/src/math/differential_testing/CMakeLists.txt
136+
libc/test/src/math/performance_testing/CMakeLists.txt
137137
```
138138

139139
## Build and Run
@@ -189,8 +189,8 @@ implementation (which is very often glibc).
189189

190190
- Build and Run performance test:
191191
```
192-
$ ninja libc.test.src.math.differential_testing.<func>_perf
193-
$ projects/libc/test/src/math/differential_testing/libc.test.src.math.differential_testing.<func>_perf
192+
$ ninja libc.test.src.math.performance_testing.<func>_perf
193+
$ projects/libc/test/src/math/performance_testing/libc.test.src.math.performance_testing.<func>_perf
194194
$ cat <func>_perf.log
195195
```
196196

libc/test/src/math/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,5 +1721,5 @@ add_subdirectory(smoke)
17211721

17221722
if(NOT LLVM_LIBC_FULL_BUILD)
17231723
add_subdirectory(exhaustive)
1724-
add_subdirectory(differential_testing)
1724+
add_subdirectory(performance_testing)
17251725
endif()

libc/test/src/math/differential_testing/ceilf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/cosf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/exp2f_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/expf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/expm1f_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/fabsf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/floorf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/fmod_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/fmodf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/hypot_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/hypotf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/log2f_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/logbf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/logf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/nearbyintf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/rintf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/roundf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/sinf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/sqrtf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

libc/test/src/math/differential_testing/truncf_diff.cpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)