Recent

Author Topic: Benchmarks?  (Read 1033 times)

Dan3468298

  • Full Member
  • ***
  • Posts: 131
Benchmarks?
« on: May 07, 2021, 08:07:20 pm »
Has anyone ran benchmarks on a recent version of FP using LLVM?   
MacOS 10.15.5/Lazarus 2.0.10 Build 2020-07-07

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 875
Re: Benchmarks?
« Reply #1 on: May 07, 2021, 11:35:04 pm »
There's one listed on https://github.com/neurolabusc/AppleSiliconForNeuroimaging (search for "The first test examines the CPU performance")

ChrisR

  • Full Member
  • ***
  • Posts: 206
Re: Benchmarks?
« Reply #2 on: May 10, 2021, 06:37:49 pm »
As author of that benchmark, I want to say that the differences I observed between FPC and LLVM were pretty modest for x86-64. Therefore, I only report the values for FPC and FPC-LLVM for the ARM-based aarch64. This might reflect the fact that FPC is not yet mature on aarch64, with releases focusing on compatibility and not performance. Indeed, since I wrote that article, J. Gareth Moreton has submitted a lot of aarch64 optimizations to the FPC trunk. I encourage anyone who wants to see FPC's aarch64 improved to consider sponsoring his terrific work:
  https://www.patreon.com/curiouskit
In general, I find the performance of FPC more than sufficient for my needs, and for the computationally expensive and common routines I have tried to use the GPU (GLSL, Metal) or SIMD (SSE, Neon) for acceleration. Therefore, my most critical routines tend not to evaluate the code emitted by FPC vs FPC-LLVM and I do not have benchmarks that are likely to generalize.

For x86-64 code, I think Jonas provided realistic expectations for typical benefits, e.g. around 18% if you enable link-time optimization. However, as he notes it really depends on the algorithm.
 https://wiki.freepascal.org/LLVM



 

TinyPortal © 2005-2018