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

feat: add assembly based interpreter loop to speeeup VM executions #45

Merged
merged 6 commits into from
May 6, 2019

Conversation

xxuejie
Copy link
Collaborator

@xxuejie xxuejie commented Apr 17, 2019

This PR adds a new assembly based interpreter loop to speed the VM in x86_64 architectures. While running our secp256k1-sha3 benchmark

  • Pure Rust based interpreter: ~60ms
  • Rust based interpreter with trace optimization: ~27ms
  • Baseline JIT: ~9ms
  • This PR: ~7.9ms

Note there's still room for more optimizations(profiling shows current work has a relatively higher portion of branch mis-predictions, which can affect the performance a lot), but this PR is quite large and let's leave more optimization work to the future.

@quake
Copy link
Member

quake commented May 6, 2019

It's awesome but I don't understand assembly code, let's test it with ckb :)

@doitian
Copy link
Member

doitian commented May 6, 2019

TODO: release it to CKB and deploy it to test

@xxuejie xxuejie merged commit 5c4fe34 into nervosnetwork:develop May 6, 2019
@xxuejie xxuejie deleted the asm-interpreter branch May 6, 2019 14:03
@xxuejie xxuejie mentioned this pull request May 15, 2019
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.

4 participants