Intel's x86-simd-sort 4.0 Delivers A 2x Boost For AVX-512 Performance, Adds AVX2 Code

Written by Michael Larabel in Intel on 31 October 2023 at 12:28 PM EDT. 6 Comments
INTEL
Earlier this year Intel published x86-simd-sort as a very speedy sorting library that initially leveraged AVX-512 instructions for 10x to 17x faster sorts. Numpy was one of the first major projects to adopt x86-simd-sort and OpenJDK more recently adopted it. Since the initial release we've seen more features and performance optimizations added. Today marks the release of x86-simd-sort 4.0 and it's delivering even greater performance while also adding an AVX2 code path to help those without AVX-512.

With x86-simd-sort 4.0 they have managed to achieve a 2x speed-up for sorting 32-bit data. Not bad for already blazing fast sort speeds... 64-bit data meanwhile will see around a 1.5x speed-up while 16-bit data will see around a 1.25x speed-up.

Intel Xeon CPUs with AVX-512


Besides making x86-simd-sort even faster, the v4.0 release is notable for now introducing AVX2 code paths for 32-bit and 64-bit data types. With the AVX2 optimized code paths, Intel found their implementation to be 12x faster for 32-bit data than std::sort and around 7x faster for sorting 64-bit data. This is important with the latest Intel Core CPUs lacking AVX-512 so now at least they too can use x86-simd-sort with AVX2.

With this new release, x86-simd-sort 4.0 can also now be built as a shared library that also has run-time dispatching support for automatically picking the fastest version among AVX-512 / AVX2 / scalar depending upon the processor.

Downloads and more details on the x86-simd-sort 4.0 release via GitHub.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week