Comment by jeffbee
22 days ago
Language choice has next to nothing to do with browser performance. Servo's "performance-focused" design currently suffers from a 10x gap between it and Chrome on the same platform.
22 days ago
Language choice has next to nothing to do with browser performance. Servo's "performance-focused" design currently suffers from a 10x gap between it and Chrome on the same platform.
Some "performance-focused" designs of Servo are already part of Firefox, and improved its performance.
https://github.com/servo/stylo
For Style and Layout, Servo is now competitive (and in many cases faster) than Chrome / Firefox according to my benchmarks https://nicoburns.github.io/browser-layout-bench/
10x gap on which benchmark?
Speedometer 3.1
Your numbers seem very outdated. Testing on a MacBook Air M4, here's what I get:
- Servo b88af263d11e12288ff3eca0848aaa675d6a52f0: 21.4
- Chrome 157: 60.9
- Safari 27.2: 59.2
- Firefox 159: 41.0
So between 2x and 3x slower than the current "big 3".
1 reply →
If you are determined enough you can even write V8 in assembly. But how many man-hours would that take?
I think the benchmark is for layout performance not JavaScript execution, but v8 is fast because it emits assembly more so than because of the language it is implemented in. That said, I would be very surprised if there is not hand tuned assembly routines for performance critical routines.
My point was that while you can implement any performant program (be it V8 or Spidermonkey, Blink or Servo) in any language, the effort required to reach a certain performance level differs between the languages.
>v8 is fast because it emits assembly
It emits machine code afaik. And secondly, do you _really_ want to implement the intermediate layers of a JIT in assembly?
3 replies →