# Numpy.sort vs Julia sort

**URL:** <https://discourse.julialang.org/t/numpy-sort-vs-julia-sort/123421>\
**Category:** Performance\
**Tags:** benchmark, python\
**Created:** [December 3, 2024, 5:14pm UTC](https://discourse.julialang.org/t/numpy-sort-vs-julia-sort/123421 "2024-12-03T17:14:53Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Lilith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lilith/32/27492_2.png) [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Post date:** [December 4, 2024, 7:58pm UTC](https://discourse.julialang.org/t/numpy-sort-vs-julia-sort/123421/9 "2024-12-04T19:58:23Z")

</div>

> On a machine with AVX2 I can confirm `numpy.sort` is faster (but definitely not 10x):

> In contrast, `numpy.sort` seems about 10x **slower** than Julia for 108 floats on my Apple M3 laptop:

This is because I was optimizing sorting while developing on an apple machine without AVX2. If we had cross-platform benchmark infrastructure in CI, Julia would likely be 10x faster in both cases.

---

_[View the full topic](https://discourse.julialang.org/t/numpy-sort-vs-julia-sort/123421)._
