Open
Description
Idk if parallel libraries are allowed in this repo but this one seems to do a good job.
using ThreadsX, BenchmarkTools
julia> @btime sort!(xs) setup=(xs=rand(10^6));
32.477 ms (3 allocations: 7.64 MiB)
julia> @btime ThreadsX.sort!(xs) setup=(xs=rand(10^6));
7.693 ms (14183 allocations: 18.55 MiB)
julia> versioninfo()
Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 24 × AMD Ryzen 9 3900XT 12-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-15.0.7 (ORCJIT, znver2)
Threads: 17 on 24 virtual cores
Environment:
JULIA_NUM_THREADS = 12
Metadata
Metadata
Assignees
Labels
No labels