Benchmarking -- the report
This is a nerd's review of some programming languages.
When I encounter a new platform I always write a small program that tests if a number is prime or not. And then I add some logic to measure the performance. And some logic to parse the command line, and ...
This has evolved to a small, wholly unscientific and totally useless benchmark. That is the definition of a perfect hobby!
The three key findings are
- Fortran is still the fastest, even a beginner at Fortran can write efficient code thanks to good optimisation.
- Java, C++ and JavaScript also do some clever stuff with optimising your code.
- SQLite3 performs very well with a little help ...