3 ms·
> I generally keep in my head that C/CPP is roughly 100x faster than python Right; here is a recent scientific publication which confirms about factor 50 speed
by Rochus 6y ago
> I generally keep in my head that C/CPP is roughly 100x faster than python
Right; here is a recent scientific publication which confirms about factor 50 speed-down from C++ to Python for the given micro benchmarks: https://authors.elsevier.com/a/1cP%7ELc7X4-XPM; https://authors.elsevier.com/a/1cP%7ELc7X4-XPM;
see table 4. The more time Python spends in native procedures, the more favorable the ratio is for Python; this is probably the reason why only around factor ten was measured here.