[libc-commits] [libc] [libc][math][c23] Add exp10f16 C23 math function (PR #101588)
via libc-commits
libc-commits at lists.llvm.org
Tue Aug 6 06:26:13 PDT 2024
overmighty wrote:
On i7-13700H:
- With Clang 18, without `-march=native`:
```
Performance tests with inputs in denormal range:
-- My function --
Total time : 1627880300 ns
Average runtime : 79.564 ns/op
Ops per second : 12568491 op/s
-- Other function --
Total time : 21792295 ns
Average runtime : 1.06512 ns/op
Ops per second : 938863942 op/s
-- Average runtime ratio --
Mine / Other's : 74.6998
Performance tests with inputs in normal range:
-- My function --
Total time : 25289960974 ns
Average runtime : 41.1634 ns/op
Ops per second : 24293434 op/s
-- Other function --
Total time : 648779538 ns
Average runtime : 1.05599 ns/op
Ops per second : 946978078 op/s
-- Average runtime ratio --
Mine / Other's : 38.9808
```
- With Clang 18, with `-march=native`:
```
Performance tests with inputs in denormal range:
-- My function --
Total time : 348120098 ns
Average runtime : 17.0147 ns/op
Ops per second : 58772820 op/s
-- Other function --
Total time : 21815025 ns
Average runtime : 1.06623 ns/op
Ops per second : 937885700 op/s
-- Average runtime ratio --
Mine / Other's : 15.9578
Performance tests with inputs in normal range:
-- My function --
Total time : 24294542949 ns
Average runtime : 39.5432 ns/op
Ops per second : 25288806 op/s
-- Other function --
Total time : 648768173 ns
Average runtime : 1.05597 ns/op
Ops per second : 946994667 op/s
-- Average runtime ratio --
Mine / Other's : 37.4472
```
https://github.com/llvm/llvm-project/pull/101588
More information about the libc-commits
mailing list