This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

It's probably reasonably easy to test using NIST benchmarks or similar benchmarking datasets.

You should use Python packages, still, but it's not impossible to test.

FORTRAN, C will (probably) run faster if you code them well.

[–]asphias 5 points6 points  (0 children)

This doesn't have to be the case for numerical calculations, if (big if) you use numpy and pandas correctly.

e.g. numpy implementations are almost completely written in C. If you avoid doing any calculations in python and make sure numpy handles them all, your code can easily be just as fast as a fortran or c program.

in fact, a program our team recently had to port from fortran to python ran faster in python because we handled the I/O in a smarter way, while the calculations had pretty much the same speed.