I'd like to compare the performance of different languages and/or different frameworks within the same language. This is aimed at server-side languages used for web development. I know an apples to apples comparison is not possible, but I'd like it to be as unbiased as possible. Here are some ideas :
- Simple "Hello World" page
- Object initialization
- Function/method calls
- Method bodies will range from empty to large
- File access (read and write)
- Database access
They can either be measured by Requests per second or I can use a for
loop and loop many times. Some of these benchmarks should measure the overhead the language has (ie: empty function call) rather than how fast they perform a certain task. I'll take some precautions:
- They'll run on the same machine, on fresh installations with as few processes on the background as possible.
- I'll try and set up the server as officially recommended; I will not attempt any optimizations.
How can I improve on this?