Skip to content

ThreadsX.sort! #12

Open
Open
@jariji

Description

@jariji

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions