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

[WIP] Benchmarking geth+evmc with static libs #511

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cdetrio
Copy link
Contributor

@cdetrio cdetrio commented Mar 26, 2019

Don't merge, for reference only,

@@ -22,10 +22,10 @@ ExternalProject_Add(wabt
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DCMAKE_BUILD_TYPE=Release
-DWITH_EXCEPTIONS=ON
-DWITH_EXCEPTIONS=OFF
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does this needs to be turned off?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It matches wabt default build options.
This breaks some EEI. Long term it would be worth to re-implement EEI without exceptions.

@@ -569,11 +569,15 @@ void BinaryenEngine::verifyContract(wasm::Module & module)
"Contract export (\"memory\") missing."
);

/*
***** in the metering benchmarks, inline-block and inline-super both export the inline useGas functions
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do they export it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a workaround to make the wast code use the debug name useGas for the function (if the inline function wasn't exported, its name would get mangled by the metering injector).

src/hera.cpp Show resolved Hide resolved
@axic axic changed the title Benchmarking geth+evmc with static libs [WIP] Benchmarking geth+evmc with static libs Apr 25, 2019
@axic axic force-pushed the benchmarking branch 2 times, most recently from 3730c1c to 03f1c31 Compare April 25, 2019 12:55
@axic axic changed the base branch from benchmarking to master April 25, 2019 13:00
@axic
Copy link
Member

axic commented Apr 30, 2019

Is there something we can salvage from this PR?

@axic axic force-pushed the benchmarking-static-lib branch from 4e187a0 to 3e01d99 Compare May 2, 2019 13:15
@axic axic marked this pull request as draft June 9, 2020 13:50
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.

3 participants