[all-commits] [llvm/llvm-project] 2ab18d: [libc] Add differential and performance targets fo...

HedGarcia via All-commits all-commits at lists.llvm.org
Mon Aug 2 12:30:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ab18d57d77633b6071c639c223b178754b36b4d
      https://github.com/llvm/llvm-project/commit/2ab18d57d77633b6071c639c223b178754b36b4d
  Author: Hedin Garca <hedingarcia at google.com>
  Date:   2021-08-02 (Mon, 02 Aug 2021)

  Changed paths:
    M libc/test/src/math/differential_testing/CMakeLists.txt
    A libc/test/src/math/differential_testing/sqrtf_diff.cpp
    A libc/test/src/math/differential_testing/sqrtf_perf.cpp

  Log Message:
  -----------
  [libc] Add differential and performance targets for sqrtf

Comparing the runtime of the sqrt functions from LLVM libc with the system libc:
|function       |perf - LLVM libc          |perf - MSVCRT
|sqrtf - Windows|44.05 sec (44051715500 ns)| 417.84 sec (417843359900 ns) = 6.96 mins

|function       |perf - LLVM libc          |perf - glibc
|sqrtf - Linux  |30.48 sec (30479458632 ns)|43.72 sec (43716901527 ns)

By running the differential test:
|function       |diff
|sqrtf - Windows|0 differing results
|sqrtf - Linux  |0 differing results

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D107229




More information about the All-commits mailing list