Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Esprima 3.0.0-beta-7 #1289

Merged
merged 1 commit into from Sep 9, 2022
Merged

Conversation

lahma
Copy link
Collaborator

@lahma lahma commented Sep 9, 2022

  • add hooks to store static data to nodes
  • make JintFunctionDefinition less bound to engine
  • code changes to improve compatibility

@lahma
Copy link
Collaborator Author

lahma commented Sep 9, 2022

Still a bit of work in progress, but shows promise with existing (prepared) script.

Jint.Benchmark.EvaluationBenchmark

Diff Method Mean Error Allocated
Old Execute 28.76 μs 0.180 μs 33.97 KB
New 29.51 μs (+3%) 0.119 μs 34.48 KB (+2%)
Old Execute_ParsedScript 12.94 μs 0.048 μs 26.13 KB
New 12.22 μs (-6%) 0.224 μs 24.98 KB (-4%)

* add hooks to store static data to nodes
* make JintFunctionDefinition less bound to engine
* tweak DromaeoBenchmark to allow preparing script
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.

None yet

1 participant