diff --git a/Jenkinsfile b/Jenkinsfile index 4c6b957246..3584623b7f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -113,6 +113,9 @@ try { stage(stage_name + 'Check javadoc') { sh './gradlew --no-daemon --parallel javadoc' } + stage(stage_name + 'Compile Benchmarks') { + sh './gradlew --no-daemon --parallel compileJmh' + } } finally { archiveArtifacts '**/build/reports/**' archiveArtifacts '**/build/test-results/**' diff --git a/ethereum/core/src/jmh/java/tech/pegasys/pantheon/ethereum/vm/operations/OperationBenchmarkHelper.java b/ethereum/core/src/jmh/java/tech/pegasys/pantheon/ethereum/vm/operations/OperationBenchmarkHelper.java index 194a4f7869..b31f53640a 100644 --- a/ethereum/core/src/jmh/java/tech/pegasys/pantheon/ethereum/vm/operations/OperationBenchmarkHelper.java +++ b/ethereum/core/src/jmh/java/tech/pegasys/pantheon/ethereum/vm/operations/OperationBenchmarkHelper.java @@ -91,7 +91,6 @@ public MessageFrame.Builder createMessageFrameBuilder() { .messageFrameStack(messageFrame.getMessageFrameStack()) .blockchain(messageFrame.getBlockchain()) .worldState(messageFrame.getWorldState()) - .privateWorldStates(messageFrame.getPrivateWorldStates()) .initialGas(messageFrame.getRemainingGas()) .address(messageFrame.getContractAddress()) .originator(messageFrame.getOriginatorAddress()) diff --git a/ethereum/eth/src/jmh/java/tech/pegasys/pantheon/ethereum/eth/sync/worldstate/WorldStateDownloaderBenchmark.java b/ethereum/eth/src/jmh/java/tech/pegasys/pantheon/ethereum/eth/sync/worldstate/WorldStateDownloaderBenchmark.java index 764fb02ca3..4825a28ac9 100644 --- a/ethereum/eth/src/jmh/java/tech/pegasys/pantheon/ethereum/eth/sync/worldstate/WorldStateDownloaderBenchmark.java +++ b/ethereum/eth/src/jmh/java/tech/pegasys/pantheon/ethereum/eth/sync/worldstate/WorldStateDownloaderBenchmark.java @@ -24,7 +24,6 @@ import tech.pegasys.pantheon.ethereum.eth.manager.RespondingEthPeer; import tech.pegasys.pantheon.ethereum.eth.manager.RespondingEthPeer.Responder; import tech.pegasys.pantheon.ethereum.eth.sync.SynchronizerConfiguration; -import tech.pegasys.pantheon.ethereum.eth.sync.SynchronizerConfiguration.Builder; import tech.pegasys.pantheon.ethereum.storage.StorageProvider; import tech.pegasys.pantheon.ethereum.storage.keyvalue.KeyValueStorageWorldStateStorage; import tech.pegasys.pantheon.ethereum.storage.keyvalue.RocksDbStorageProvider; @@ -70,7 +69,7 @@ public class WorldStateDownloaderBenchmark { @Setup(Level.Invocation) public void setUpUnchangedState() throws Exception { final SynchronizerConfiguration syncConfig = - new Builder().worldStateHashCountPerRequest(200).build(); + new SynchronizerConfiguration.Builder().worldStateHashCountPerRequest(200).build(); final Hash stateRoot = createExistingWorldState(); blockHeader = new BlockHeaderTestFixture().stateRoot(stateRoot).buildHeader();