Skip to content

Instantly share code, notes, and snippets.

@s1na
Last active January 10, 2019 09:22
Show Gist options
  • Save s1na/9363beae64e4966dd914237b369c5927 to your computer and use it in GitHub Desktop.
Save s1na/9363beae64e4966dd914237b369c5927 to your computer and use it in GitHub Desktop.
Profiling EthereumJS VM

As a first step to profile ethereumjs-vm, I used clinic on a couple of existing tests. To get a flamegraph of the blockchain tests, run:

NODE_OPTIONS="--max-old-space-size=4096" clinic flame -- node ./tests/tester.js -b --excludeDir='GeneralStateTests'

The image in this gist is the result of running this command on my personal computer.

@holgerd77
Copy link

Flamegraph image is currently broken.

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