← Back to context

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.

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 →