From ccff576943674c917e4850470d9660c1a0eb91b7 Mon Sep 17 00:00:00 2001 From: "yang.zhao2" Date: Thu, 4 Jan 2024 16:06:05 +0800 Subject: [PATCH 1/4] doc: update benchmark result --- README.md | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index ed27766a0..4eac91c39 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ In addition to the relevant features and optimizations in the [TODO](https://git - [ ] Basic Debugger API - [x] Poly IC - [x] Self Poly IC - - [ ] Prototype Poly IC + - [x] Prototype Poly IC - [x] Replace malloc To [mimalloc](https://github.com/microsoft/mimalloc) - [ ] Improve The Performance Of GC @@ -21,13 +21,13 @@ In our plan, we first complete the above optimizations and then gradually add th ### How To Build -```shell -> mkdir build -> cd build -> cmake .. && make -j4 -``` +1. Clone this repo and its submodules by doing `git clone --recursive ` +2. `mkdir build` +3. `cd build` +4. `cmake ..` +5. `make -j4` -you can find `libquickjs.a` in lib folder and `qjs` / `qjsc` / `run-test262` in bin folder. +you can find `libquickjs.a` in lib folder and `qjs` / `qjsc` / `run-test262` in the `./bin` folder (from the repo root). ### How To Run Test262 @@ -47,12 +47,15 @@ Result: 573/75124 errors, 1388 excluded, 7844 skipped, 573 new > - macOS Monterey 12.2.1 > - Clang 13.0.0 arm64-apple-darwin21.3.0 -| | bellard/quickjs (2788d71) | openwebf/quickjs (latest) | +| | openwebf/quickjs (latest) | bellard/quickjs (2788d71) | Improvement(%) | | ------------- | ---------- | ---------- | -| Richards | 1188 | 1320 | -| Crypto | 1443 | 1413 | -| RayTrace | 744 | 1990 | -| NavierStokes | 2775 | 2775 | -| DeltaBlue | 1100 | 1402 | -| Total score | 1312 | 1706 (+30.03%) | -| File Size(KB) | 1.3M | 1.4M | \ No newline at end of file +| DeltaBlue | 1382 | 1021 | +35.35 | +| RayTrace | 1935 | 688 | +181.15 | +| RegExp | 353 | 255 | +38.43 | +| NavierStokes | 2756 | 2658 | +3.68 | +| PdfJS | 4934 | 3692 | +33.64 | +| Gameboy | 9948 | 9057| +9.83 | +| Box2D | 5264 | 4089| +28.77 | +| Typescript | 19108 | 13787| | +38.59 | +| Total Score | 3262 | 2339| | +39.46 | +| File Size(KB) | 1.5M | 1.3M | -15.38% | \ No newline at end of file From fdab0f2d2d44bc5ff86b73c6a78d4794caabee4a Mon Sep 17 00:00:00 2001 From: "yang.zhao2" Date: Thu, 4 Jan 2024 16:08:20 +0800 Subject: [PATCH 2/4] doc: update benchmark table markdown --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4eac91c39..94bce481d 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Result: 573/75124 errors, 1388 excluded, 7844 skipped, 573 new > - Clang 13.0.0 arm64-apple-darwin21.3.0 | | openwebf/quickjs (latest) | bellard/quickjs (2788d71) | Improvement(%) | -| ------------- | ---------- | ---------- | +| ------------- | ---------- | ---------- |---------- | | DeltaBlue | 1382 | 1021 | +35.35 | | RayTrace | 1935 | 688 | +181.15 | | RegExp | 353 | 255 | +38.43 | From 9aeb7d02092510cccca5a3e06680294af5ad4feb Mon Sep 17 00:00:00 2001 From: "yang.zhao2" Date: Thu, 4 Jan 2024 16:09:02 +0800 Subject: [PATCH 3/4] doc: update --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94bce481d..2eed46292 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,6 @@ Result: 573/75124 errors, 1388 excluded, 7844 skipped, 573 new | PdfJS | 4934 | 3692 | +33.64 | | Gameboy | 9948 | 9057| +9.83 | | Box2D | 5264 | 4089| +28.77 | -| Typescript | 19108 | 13787| | +38.59 | -| Total Score | 3262 | 2339| | +39.46 | +| Typescript | 19108 | 13787| +38.59 | +| Total Score | 3262 | 2339| +39.46 | | File Size(KB) | 1.5M | 1.3M | -15.38% | \ No newline at end of file From 36d3c78f5aa294dd8561ee9386449445fc2b4c3a Mon Sep 17 00:00:00 2001 From: "yang.zhao2" Date: Thu, 4 Jan 2024 16:11:44 +0800 Subject: [PATCH 4/4] doc: update --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2eed46292..80815ee9b 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Result: 573/75124 errors, 1388 excluded, 7844 skipped, 573 new > - macOS Monterey 12.2.1 > - Clang 13.0.0 arm64-apple-darwin21.3.0 -| | openwebf/quickjs (latest) | bellard/quickjs (2788d71) | Improvement(%) | +| | openwebf/quickjs ([32acbde](https://github.com/openwebf/quickjs/tree/32acbdebc733c4ce7e2ad3d77b9d85318834896b)) | bellard/quickjs ([3ab1c2b](https://github.com/bellard/quickjs/tree/3ab1c2b3148d1c70181607002aac23ecdd2ad482)) | Improvement(%) | | ------------- | ---------- | ---------- |---------- | | DeltaBlue | 1382 | 1021 | +35.35 | | RayTrace | 1935 | 688 | +181.15 |