Skip to content

Commit d1a08b3

Browse files
author
llgoer
committed
基准测试增加Hermes和V8引擎
1 parent 69e4e70 commit d1a08b3

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

bench.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@
55

66
这里是 [bench-v8 version 7 benchmark](https://github.com/v8/v8/tree/master/benchmarks)的测试结果
77

8-
| 引擎 | QuickJS<br/>2019-06-23 | DukTape<br/>2.3.0 | XS<br/>8.8.0 | MuJS<br/>1.0.6 | JerryScript |
9-
| ---------------------------- | ---------------------- | ----------------- | ------------ | -------------- | ----------- |
10-
| Richards | 777 | 218 | 444 | 187 | 238 |
11-
| DeltaBlue | 761 | 266 | 553 | 245 | 209 |
12-
| Crypto | 1061 | 202 | 408 | 113 | 255 |
13-
| RayTrace | 915 | 484 | 1156 | 392 | 286 |
14-
| EarleyBoyer | 1417 | 620 | 1175 | 315 | - |
15-
| RegExp | 251 | 156 | - | - | - |
16-
| Splay | 1641 | 1389 | 1048 | 36.7 | - |
17-
| NavierStokes | 1856 | 1003 | 836 | 109 | 394 |
18-
| **Total score** | 942 | 408 | - | - | - |
19-
| Total score<br/>(w/o RegExp) | 1138 | 468 | 738 | 159 | - |
8+
| 引擎 | QuickJS | DukTape | XS | MuJS | JerryScript | **Hermes** | **V8 --jitless** | V8 (JIT) |
9+
| ---------------------------- | ------- | ------- | ---- | ---- | ----------- | ---------- | ---------------- | -------- |
10+
| 可执行文件尺寸 | 620K | 331K | 1.2M | 244K | 211K | 27M | 28M | 28M |
11+
| Richards | 777 | 218 | 444 | 187 | 238 | 818 | 1036 | 29745 |
12+
| DeltaBlue | 761 | 266 | 553 | 245 | 209 | 651 | 1143 | 65173 |
13+
| Crypto | 1061 | 202 | 408 | 113 | 255 | 1090 | 884 | 34215 |
14+
| RayTrace | 915 | 484 | 1156 | 392 | 286 | 937 | 2989 | 69781 |
15+
| EarleyBoyer | 1417 | 620 | 1175 | 315 | - | 1728 | 4583 | 48254 |
16+
| RegExp | 251 | 156 | - | - | - | 335 | 2142 | 7637 |
17+
| Splay | 1641 | 1389 | 1048 | 36.7 | - | 1602 | 4303 | 26150 |
18+
| NavierStokes | 1856 | 1003 | 836 | 109 | 394 | 1522 | 1377 | 36766 |
19+
| **Total score** | 942 | 408 | - | 158 | - | 968 | 1916 | 33640 |
20+
| Total score<br/>(w/o RegExp) | 1138 | 468 | 738 | 159 | - | 1127 | 1886 | 41576 |
2021

2122
(分数越高越好).
2223

@@ -34,5 +35,7 @@ bench-v8源代码在QuickJS测试档案(`tests/bench-v8`目录)中提供。
3435
* [XS](https://github.com/Moddable-OpenSource/moddable): version 8.8.0, xst executable, x86, 64 bits, compiled with -O3. The engine cannot correctly run the RegExp test, so it was disabled.
3536
* [MuJS](https://mujs.com/): version 1.0.6, mujs executable, x86, 64 bits, compiled with -O2. The engine cannot correctly run the RegExp test so it was disabled. JS\_STACKSIZE and JS\_ENVLIMIT were increased to 32768 to run EarleyBoyer.
3637
* [JerryScript](http://jerryscript.net/): git version 2b8c4286, jerry executable, x86, 64 bits. The engine could not run EarleyBoyer, RegExp and Splay.
38+
* [Hermes](https://hermesengine.dev/): version 0.1.0, 64 bit Linux binary downloaded from [here](https://github.com/facebook/hermes/releases). The benchmark was run with the -O option (=enable expensive optimizations).
39+
* [V8](https://v8.dev/): version 7.7.289, Linux 64 bit executable downloaded from [here](https://storage.googleapis.com/chromium-v8/official/canary/v8-linux64-rel-7.7.289.zip).
3740

3841
运行基准测试,可以按需添加其他Javascript引擎。

0 commit comments

Comments
 (0)