HACKER Q&A
📣 mardiyah

Best practical method to compare the speed some PL interpreters


How is the best practical procedure and method to compare or benchmark the speed between some interpreters on Linux (say Bash, Python, Zsh, Perl, Ruby, Raku etc)


  👤 igouy Accepted Answer ✓
Depends how many different tasks you want to compare, and how many different interpreters you want to compare, and what you want to do with the comparison.

Find a comparison someone else already made, for example:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/

Make your own time measurements:

https://github.com/tobami/codespeed/

https://github.com/sharkdp/hyperfine


👤 rurban
See debian's benchmarkgame.

You need some cross-language apps/functions, adopt community improvements and publish the results.

Rosettacode also has a lot.