Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is Google Chrome's V8 engine really that good? [closed]

Does anyone have time to take a look at it?

I've read a bit and it promises a lot, if it's half what they say, it'll change web Development a lot

like image 211
juan Avatar asked Sep 03 '08 01:09

juan


People also ask

Does Chrome still use V8 engine?

V8 is used in the following software: Chromium-based web browsers - Google Chrome, Brave, Opera, Vivaldi and Microsoft Edge. Couchbase database server. Deno runtime environment.

How does a V8 engine work in Chrome?

The V8 engine uses the Ignition interpreter, which takes in the Abstract Syntax Tree as the input and gives the byte code as the output, which further proceeds to the execution phase. When the code is being interpreted, the compiler tries to talk with the interpreter to optimize the code.

Why does Google use V8 engines?

V8 was first designed to increase the performance of JavaScript execution inside web browsers. In order to obtain speed, V8 translates JavaScript code into more efficient machine code instead of using an interpreter.


2 Answers

I have compared Mozilla Firefox 3.0.1 and Google Chrome 0.2.149.27 on SunSpider JavaScript Benchmark with the following results:

  • Firefox - total: 2900.0ms +/- 1.8%
  • Chrome - total: 1549.2ms +/- 1.7%

and on V8 Benchmark Suite with the following results (higher score is better):

  • Firefox - score: 212
  • Chrome - score: 1842

and on Web Browser Javascript Benchmark with the following results:

  • Firefox - total duration: 362 ms
  • Chrome - total duration: 349 ms

Machine: Windows XP SP2, Intel Core2 DUO T7500 @ 2.2 Ghz, 2 GB RAM

All blog posts and articles that I've read so far also claim that V8 is clearly the fastest JavaScript engine out there. See for example - V8, TraceMonkey, SquirrelFish, IE8 BenchMarks

"... Needless to say, Chrome’s V8 blows away all the current builds of the next-generation of JavaScript VMs. Just to be clear, WebKit and FireFox engines haven’t even hit beta, but it looks like the performance bar has just been set to an astronomical height by the V8 Team."

like image 77
Pavol Juhos Avatar answered Oct 10 '22 02:10

Pavol Juhos


Perhaps a bit anecdotal but comparing runs between Firefox and Chrome showed a significant difference in benchmarks.

http://www2.webkit.org/perf/sunspider-0.9/sunspider.html

Try for yourself.

like image 40
jason saldo Avatar answered Oct 10 '22 00:10

jason saldo