Home About Blog

Comparing programming languages!

So a few months ago, I started prime number generation just for fun. Initially, I wrote everything in Python. I soon learned that Python does have a performance drop from compiled languages. This is where I put those to the test.

Methodology

I attempted to write the exact same code but in different languages. Thus far, I have not tested as many languages as I would like and do not have many data points. I will attempt to write a script to run the program many times and time run time.

Language Time (seconds)
Python 2 256
C (GCC) 3