Side note: Can somebody explain the difference between real, user, and sys? I understand that real is basically the time spent from start to finish (which can be affected by other processes), whereas user and sys consider the amount of time where the CPU was actually busy running a program (not waiting for other things like I/O).
For example, what is the meaning of user and sys from this example? [1]:<p><pre><code> $ time wget https://download.virtualbox.org/virtualbox/6.1.28/virtualbox-6.1_6.1.28-147628~Ubuntu~eoan_amd64.deb
real 0m8.515s
user 0m0.125s
sys 0m0.487s
</code></pre>
According to [2], user + sys would be a better measurement than real for comparing Python, Cython, and C++.<p>[1] <a href="https://www.hostinger.com/tutorials/linux-time-command" rel="nofollow">https://www.hostinger.com/tutorials/linux-time-command</a><p>[2] <a href="https://stackoverflow.com/questions/10265162/the-meaning-of-real-user-and-sys-in-output-of-linux-time-command" rel="nofollow">https://stackoverflow.com/questions/10265162/the-meaning-of-...</a>
That's a very interesting article, thanks. Interesting to note that Cython is only about twice as fast as Python 3.10 and only about 40% faster than Python 3.11.<p>The official Python site advertises a speedup of 25% from 3.10 to 3.11; in the article a speedup of 60% was measured. It therefore usually makes sense to measure different algorithms. Unfortunately there is no Python or C++ implementation yet for <a href="https://github.com/smarr/are-we-fast-yet">https://github.com/smarr/are-we-fast-yet</a>.