Searchsortedlast performance

So what is the verdict? Is Numba indeed consistently outperforming Julia even after the code optimization?

1 Like

The verdict is that the improved Julia version is always faster than numba. For the original choice of parameters the speeds are very close, Julia about 7% faster. For other combinations, Julia can be faster by several factors. Julia is better for smaller xs, presumably because numba has some overhead that is more noticeable for shorter loops.

7 Likes

BTW, on hacker news they call this Ā“nerd snipingĀ“ Julia;)

3 Likes

Perhaps you can adapt the title accordingly?