Skip to content

POC for Vm - #461

Closed
jasonwilliams wants to merge 4 commits into
masterfrom
vm
Closed

jasonwilliams wants to merge 4 commits into
masterfrom
vm

Conversation

@jasonwilliams

Copy link
Copy Markdown
Member

No description provided.

Iovoslav Iovchev and others added 3 commits June 7, 2020 18:04
@jasonwilliams jasonwilliams mentioned this pull request Jun 7, 2020
@codecov

codecov Bot commented Jun 7, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #461 into master will decrease coverage by 0.44%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #461      +/-   ##
==========================================
- Coverage   66.00%   65.55%   -0.45%     
==========================================
  Files         146      149       +3     
  Lines        9180     9284     +104     
==========================================
+ Hits         6059     6086      +27     
- Misses       3121     3198      +77     
Impacted Files Coverage Δ
boa/src/lib.rs 80.95% <ø> (ø)
boa/src/realm.rs 56.66% <0.00%> (-4.05%) ⬇️
boa/src/vm/compilation/mod.rs 0.00% <0.00%> (ø)
boa/src/vm/instructions.rs 0.00% <0.00%> (ø)
boa/src/vm/mod.rs 0.00% <0.00%> (ø)
boa_cli/src/main.rs 33.33% <ø> (ø)
boa/src/syntax/lexer/tests.rs 99.66% <0.00%> (+0.01%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 691c0d4...1c1859f. Read the comment docs.

@github-actions

github-actions Bot commented Jun 7, 2020

Copy link
Copy Markdown

Benchmark for 498ba39

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 461.4±15.85µs 467.6±17.57µs 99%
Expression (Lexer) 2.1±0.05µs 2.2±0.05µs 99%
Expression (Parser) 4.9±0.08µs 5.1±0.22µs 96%
Fibonacci (Execution) 2.3±0.04ms 2.3±0.05ms 99%
For loop (Execution) 67.6±1.33µs 67.2±1.54µs 101%
For loop (Lexer) 5.5±0.17µs 5.5±0.22µs 101%
For loop (Parser) 14.2±0.27µs 14.0±0.28µs 101%
Hello World (Lexer) 1125.1±52.37ns 1014.5±19.02ns 111.00000000000001%
Hello World (Parser) 2.3±0.05µs 2.3±0.05µs 98%
Symbols (Execution) 17.2±0.36µs 17.3±0.33µs 99%
undefined undefined 100%

@jasonwilliams

jasonwilliams commented Jun 8, 2020 •

Copy link
Copy Markdown
Member Author

added debuggable instruction output

[boa\src\lib.rs:113] &instrs = [
    Ld  0               1,
    Ld  1               1,
    Add 0               1,
]

@github-actions

github-actions Bot commented Jun 8, 2020

Copy link
Copy Markdown

Benchmark for 37816e4

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 448.7±28.41µs 464.4±15.41µs 97%
Expression (Lexer) 2.0±0.10µs 2.1±0.06µs 96%
Expression (Parser) 5.0±0.17µs 4.8±0.29µs 104%
Fibonacci (Execution) 2.0±0.05ms 1999.7±88.50µs 100%
For loop (Execution) 62.9±2.14µs 59.4±3.76µs 106%
For loop (Lexer) 5.4±0.17µs 5.2±0.19µs 104%
For loop (Parser) 13.9±0.40µs 13.7±0.24µs 102%
Hello World (Lexer) 971.7±23.44ns 977.7±23.85ns 99%
Hello World (Parser) 2.2±0.10µs 2.3±0.04µs 95%
Symbols (Execution) 17.5±0.56µs 16.7±1.67µs 105%
undefined undefined 100%

@jasonwilliams jasonwilliams mentioned this pull request Jun 9, 2020
@jasonwilliams

Copy link
Copy Markdown
Member Author

I was blocked on this because objects were wrapped in a GC but now they’re de-coupled I can revisit this

@jasonwilliams

Copy link
Copy Markdown
Member Author

Closing due to #854

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant