Skip to content

Commit

Permalink
Refactoring of branch to merge it to master
Browse files Browse the repository at this point in the history
In order to fix the jmh benchmarking test, we need to refactor and remove some changes made to run test locally.
  • Loading branch information
fmacleal committed Feb 26, 2024
1 parent 5e5ce38 commit 16b94de
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 78 deletions.
2 changes: 1 addition & 1 deletion rskj-core/src/jmh/java/co/rsk/jmh/web3/BenchmarkWeb3.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public void traceFilterBetweenBlockRange(TracePlan plan) throws BenchmarkWeb3Exc
}

@Benchmark
@Timeout(time = 60)
@Timeout(time = 100)
public void traceFilterBetweenAddresses(TracePlan plan) throws BenchmarkWeb3Exception {
plan.getWeb3Connector().traceFilter(plan.getFromBlock(), plan.getToBlock(), plan.getFromAddresses(), plan.getToAddresses());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public void setUp(BenchmarkParams params) throws BenchmarkWeb3Exception {
private RskModuleWeb3j.EthCallArguments buildEthCallArguments() {
RskModuleWeb3j.EthCallArguments args = new RskModuleWeb3j.EthCallArguments();

args.setGasLimit(configuration.getString("eth_call.gasLimit"));
args.setFrom(configuration.getString("eth_call.transaction.from"));
args.setTo(configuration.getString("eth_call.transaction.to"));
args.setGas(configuration.getString("eth_call.transaction.gas"));
args.setGasPrice(configuration.getString("eth_call.transaction.gasPrice"));
args.setGasLimit(configuration.getString("eth_call.transaction.gasLimit"));
args.setValue(configuration.getString("eth_call.transaction.value"));
args.setData(configuration.getString("eth_call.transaction.input"));

Expand Down
2 changes: 1 addition & 1 deletion rskj-core/src/jmh/resources/conf/testnet-3_860_000.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ trace.fromAddresses=0x0000000000000000000000000000000000000000
############################
# eth_call
############################
eth_call.gasLimit=0x4e252e0
eth_call.transaction.blockNumber=0x362193
eth_call.transaction.from=0x4a727d7943b563462c96d40689836600d20b983b
eth_call.transaction.to=0x19f64674d8a5b4e652319f5e239efd3bc969a1fe
eth_call.transaction.gas=0x13069
eth_call.transaction.gasPrice=0x3e252e0
eth_call.transaction.gasLimit=0x4e252e0
eth_call.transaction.value=0x0
eth_call.transaction.input=0xa9059cbb000000000000000000000000318bb57758207dc202bb78748e39eec8f269c6e10000000000000000000000000000000000000000000000056bc75e2d63100000

Expand Down
8 changes: 1 addition & 7 deletions rskj-core/src/main/resources/config/main.conf
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,4 @@ hello.phrase = MainNet
wallet {
enabled = false
accounts = []
}

cache {
states {
max-elements = 4000000
}
}
}

This file was deleted.

0 comments on commit 16b94de

Please sign in to comment.