Today there are many browsers and they all somehow fight each other for the market. The main players are: Internet Explorer, Mozilla Firefox, Google Chrome, Safari. And today they are copying each other’s appearance (everyone is trying to be like Google Chrome) and everyone is praising who is the best for HTML 5, though the main thing is that they praise it - it is a canvas tag.
I decided to compare this speed and did a little research. I wrote a search program for n prime numbers: not the best task for computing performance, but a lot of different elements of the language (floating-point numbers, containers, cycles, branching) participate in it and launched it on different platforms (browsers, JVM, Linux) . Well, actually the result will be presented in the form of coefficients:
- Linux Native Application (Ubuntu, g ++ 4.4) - 1
- Java Application (Ubuntu, Oracle Java 6.20) - 1.53
- Firefox 4b6pre (Ubuntu) - 1.62
- Internet Explorer 9 beta (Windows) - 1.87
- Google Chrome 6.0.472 (Windows, Ubuntu) - 2.09
- Opera 10.64 (Ubuntu) - 2.93
- Firefox 4b5 (Windows) - 3.12
- Safari 5.0.3 (Windows) - 4.37
By passing, I checked Firefox 3.6 (Ubuntu, Windows), Konqueror 4.4.2 (Ubuntu) and Internet Explorer 8, but their performance was lower by an order of magnitude. There is no completeness of all possible actual systems, but only some of them that were convenient for me to run. Again, some conclusions can be drawn from this data.
Operating systems used: Ubuntu 10.04 x64, Windows 7 Home Premium x64
, in C ++