Programming ≈ Fun

Written by Krešimir Bojčić

Speed Comparison (Haskell, Ruby, Python, CLISP)

I wanted to test performance on a real world example so I opted for testing this expression:

 313 ^ 150000

First of all, hats down to my i5 for even giving me back the answer in reasonable time. It makes Sessa chessboard problem trivial.

This are the results(in seconds):

I am kinda surprised with how bad CLISP is performing compared to Python, and how bad Python is performing compared to Ruby. Haskell looks impressive on this particular example.

*I was unable to even import math lib needed for Clojure for the high-tech expt function… I was appalled with that so much that I’ve left it out of comparison.

« Sub-second RSpec Testing Dependency Injection In Ruby »

Comments

Copyright © 2019 - Kresimir Bojcic (LinkedIn Profile)