https://github.com/astroxnetwork/flutter_webf_quickjs
https://github.com/astroxnetwork/flutter_webf_quickjs
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/astroxnetwork/flutter_webf_quickjs
- Owner: AstroxNetwork
- License: other
- Created: 2023-07-28T10:13:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T09:20:53.000Z (almost 3 years ago)
- Last Synced: 2025-03-25T17:17:20.748Z (about 1 year ago)
- Language: C
- Homepage: https://github.com/openwebf/quickjs
- Size: 3.27 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog
- License: LICENSE
Awesome Lists containing this project
README
quickjs
---

> Optimized quickjs mantained by OpenWebF team.
### Optimizations
In addition to the relevant features and optimizations in the [TODO](https://github.com/openwebf/quickjs/blob/master/TODO) file, the more important optimizations are:
- [x] Column number
- [ ] Basic Debugger API
- [x] Poly IC
- [x] Self Poly IC
- [x] Prototype Poly IC
- [x] Replace malloc To [mimalloc](https://github.com/microsoft/mimalloc)
- [ ] Improve The Performance Of GC
In our plan, we first complete the above optimizations and then gradually add the remaining parts.
### How To Build
```shell
> mkdir build
> cd build
> cmake .. && make -j4
```
you can find `libquickjs.a` in lib folder and `qjs` / `qjsc` / `run-test262` in bin folder.
### How To Run Test262
```shell
> bash scripts/test.sh
```
It will output result like:
```
Result: 573/75124 errors, 1388 excluded, 7844 skipped, 573 new
```
### Benchmark
> - Apple M1 Pro
> - macOS Monterey 12.2.1
> - Clang 13.0.0 arm64-apple-darwin21.3.0
| | bellard/quickjs (2788d71) | openwebf/quickjs (latest) |
| ------------- | ---------- | ---------- |
| Richards | 1188 | 1457 |
| Crypto | 1443 | 1527 |
| RayTrace | 744 | 1995 |
| NavierStokes | 2775 | 2979 |
| DeltaBlue | 1100 | 1595 |
| Total score | 1312 | 1840 (+40.2%) |
| File Size(KB) | 1.3M | 1.4M |