[all-commits] [llvm/llvm-project] a205a8: [libc][math] Improve fmul performance by using dou...
Job Henandez Lara via All-commits
all-commits at lists.llvm.org
Sat Sep 14 14:32:43 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a205a854e06d36c1d0def3e3bc3743defdb6abc1
https://github.com/llvm/llvm-project/commit/a205a854e06d36c1d0def3e3bc3743defdb6abc1
Author: Job Henandez Lara <hj93 at protonmail.com>
Date: 2024-09-14 (Sat, 14 Sep 2024)
Changed paths:
M libc/src/math/generic/CMakeLists.txt
M libc/src/math/generic/fmul.cpp
M libc/test/src/math/fmul_test.cpp
M libc/test/src/math/performance_testing/CMakeLists.txt
M libc/test/src/math/performance_testing/fmul_perf.cpp
M libc/test/src/math/smoke/fmul_test.cpp
Log Message:
-----------
[libc][math] Improve fmul performance by using double-double arithmetic. (#107517)
```
Performance tests with inputs in denormal range:
-- My function --
Total time : 2731072304 ns
Average runtime : 68.2767 ns/op
Ops per second : 14646276 op/s
-- Other function --
Total time : 3259744268 ns
Average runtime : 81.4935 ns/op
Ops per second : 12270913 op/s
-- Average runtime ratio --
Mine / Other's : 0.837818
Performance tests with inputs in normal range:
-- My function --
Total time : 93467258 ns
Average runtime : 2.33668 ns/op
Ops per second : 427957777 op/s
-- Other function --
Total time : 637295452 ns
Average runtime : 15.9324 ns/op
Ops per second : 62765299 op/s
-- Average runtime ratio --
Mine / Other's : 0.146662
Performance tests with inputs in normal range with exponents close to each other:
-- My function --
Total time : 95764894 ns
Average runtime : 2.39412 ns/op
Ops per second : 417690014 op/s
-- Other function --
Total time : 639866770 ns
Average runtime : 15.9967 ns/op
Ops per second : 62513075 op/s
-- Average runtime ratio --
Mine / Other's : 0.149664
```
---------
Co-authored-by: Tue Ly <lntue at google.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list