mirror of https://github.com/boa-dev/boa.git
Iban Eguia
4 years ago
committed by
GitHub
47 changed files with 972 additions and 482 deletions
@ -1,13 +1,13 @@
|
||||
--- |
||||
name: Custom |
||||
about: Open an issue in the repo that is neither a bug or a feature, such a new idea |
||||
title: '' |
||||
labels: '' |
||||
assignees: '' |
||||
|
||||
title: "" |
||||
labels: "" |
||||
assignees: "" |
||||
--- |
||||
|
||||
<!-- |
||||
Thank you for contributing to Boa! Please, let us know how can we help you. |
||||
--> |
||||
|
||||
E.g.: I think we should improve the way the JavaScript interpreter works by... |
||||
|
@ -0,0 +1,51 @@
|
||||
on: |
||||
pull_request: |
||||
branches: |
||||
- master |
||||
push: |
||||
branches: |
||||
- master |
||||
|
||||
name: Webassembly demo |
||||
|
||||
jobs: |
||||
check_style: |
||||
name: Check webassembly demo style |
||||
runs-on: ubuntu-latest |
||||
steps: |
||||
- name: Checkout |
||||
uses: actions/checkout@v2 |
||||
- name: Check code formatting |
||||
uses: creyD/prettier_action@v3.0 |
||||
with: |
||||
dry: true |
||||
prettier_options: --check . |
||||
|
||||
build: |
||||
name: Build webassembly demo |
||||
runs-on: ubuntu-latest |
||||
env: |
||||
WASM_PACK_PATH: ~/.cargo/bin/wasm-pack |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
- uses: actions-rs/toolchain@v1 |
||||
with: |
||||
toolchain: stable |
||||
override: true |
||||
profile: minimal |
||||
- name: Install wasm-pack |
||||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh |
||||
- name: Cache yarn build |
||||
uses: actions/cache@v2 |
||||
with: |
||||
path: | |
||||
node_modules |
||||
target |
||||
boa_wasm/pkg |
||||
key: ${{ runner.os }}-yarn-build-target-${{ hashFiles('**/yarn.lock') }} |
||||
- uses: Borales/actions-yarn@v2.3.0 |
||||
with: |
||||
cmd: install |
||||
- uses: Borales/actions-yarn@v2.3.0 |
||||
with: |
||||
cmd: build |
@ -0,0 +1,8 @@
|
||||
# Ignore artifacts: |
||||
*.rs |
||||
target |
||||
node_modules |
||||
boa/benches/bench_scripts/mini_js.js |
||||
boa/benches/bench_scripts/clean_js.js |
||||
boa_wasm/pkg |
||||
dist |
@ -1,14 +0,0 @@
|
||||
docker-build: |
||||
docker build --tag boa .
|
||||
|
||||
docker-container: |
||||
docker create --tty --interactive \
|
||||
--name boa \
|
||||
--hostname boa \
|
||||
--volume ${PWD}/:/usr/src/myapp \
|
||||
--publish 9228:9228 \
|
||||
boa
|
||||
|
||||
docker-clean: |
||||
docker rm boa || echo "no container"
|
||||
docker rmi boa || echo "no image"
|
@ -1,9 +1,10 @@
|
||||
# Boa Benchmarks. |
||||
|
||||
We divide the benchmarks in 3 sections: |
||||
- Full engine benchmarks (lexing + parsing + realm creation + execution) |
||||
- Execution benchmarks |
||||
- Parsing benchmarks (lexing + parse - these are tightly coupled so must be benchmarked together) |
||||
|
||||
- Full engine benchmarks (lexing + parsing + realm creation + execution) |
||||
- Execution benchmarks |
||||
- Parsing benchmarks (lexing + parse - these are tightly coupled so must be benchmarked together) |
||||
|
||||
The idea is to check the performance of Boa in different scenarios and dividing the Boa execution |
||||
process in its different parts. |
||||
|
@ -1 +1 @@
|
||||
((2 + 2) ** 3 / 100 - 5 ** 3 * -1000) ** 2 + 100 - 8 |
||||
((2 + 2) ** 3 / 100 - 5 ** 3 * -1000) ** 2 + 100 - 8; |
||||
|
@ -1,7 +1,7 @@
|
||||
new Boolean( |
||||
!new Boolean( |
||||
new Boolean( |
||||
!(new Boolean(false).valueOf()) && (new Boolean(true).valueOf()) |
||||
!new Boolean(false).valueOf() && new Boolean(true).valueOf() |
||||
).valueOf() |
||||
).valueOf() |
||||
).valueOf() |
||||
).valueOf(); |
||||
|
@ -1 +1,2 @@
|
||||
let foo = 'hello world!'; foo; |
||||
let foo = "hello world!"; |
||||
foo; |
||||
|
@ -1,7 +1,5 @@
|
||||
new Number( |
||||
new Number( |
||||
new Number( |
||||
new Number(100).valueOf() - 10.5 |
||||
).valueOf() + 100 |
||||
new Number(new Number(100).valueOf() - 10.5).valueOf() + 100 |
||||
).valueOf() * 1.6 |
||||
) |
||||
); |
||||
|
@ -1,5 +1,5 @@
|
||||
(function () { |
||||
let regExp = new RegExp('hello', 'i'); |
||||
let regExp = new RegExp("hello", "i"); |
||||
|
||||
return regExp.test("Hello World"); |
||||
})(); |
||||
|
@ -1,5 +1,5 @@
|
||||
(function () { |
||||
let regExp = new RegExp('hello', 'i'); |
||||
let regExp = new RegExp("hello", "i"); |
||||
|
||||
return regExp; |
||||
})(); |
||||
|
@ -1,4 +1,4 @@
|
||||
(function(){ |
||||
(function () { |
||||
var a = "hello"; |
||||
var b = a; |
||||
})(); |
||||
|
@ -1,7 +1,7 @@
|
||||
new String( |
||||
new String( |
||||
new String( |
||||
new String('Hello').valueOf() + new String(", world").valueOf() |
||||
).valueOf() + '!' |
||||
new String("Hello").valueOf() + new String(", world").valueOf() |
||||
).valueOf() + "!" |
||||
).valueOf() |
||||
).valueOf() |
||||
).valueOf(); |
||||
|
Loading…
Reference in new issue