Try different array expressions and investigate how much numexpr can speed them up. Try to vary also the number of threads used by numexpr. IPython and %timeit magic can be useful in testing.