Skip to content

Commit

Permalink
Merge pull request #2092 from rsksmart/rpc_benchmark_optimisations
Browse files Browse the repository at this point in the history
Rpc benchmark optimisations
  • Loading branch information
Vovchyk authored Aug 7, 2023
2 parents 47bb17e + b2521df commit a1d9d53
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions rskj-core/src/jmh/java/co/rsk/jmh/web3/BenchmarkWeb3.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
// annotated fields at class, method or field level are providing default values that can be overriden via CLI or Runner parameters
@BenchmarkMode({Mode.SingleShotTime})
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Warmup(iterations = 25)
@Measurement(iterations = 1000)
@Warmup(iterations = 5)
@Measurement(iterations = 100)
@Timeout(time = 10)
public class BenchmarkWeb3 {

Expand Down
2 changes: 1 addition & 1 deletion rskj-core/src/jmh/java/co/rsk/jmh/web3/BlocksAndTx.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import java.util.concurrent.TimeUnit;

@BenchmarkMode({Mode.SingleShotTime})
@Warmup(iterations = 25)
@Warmup(iterations = 5)
@Measurement(iterations = 100)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Timeout(time = 10)
Expand Down
4 changes: 2 additions & 2 deletions rskj-core/src/jmh/resources/conf/testnet-3_860_000.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ ethGetCode.blockNumber = 3700000
############################
trace.transactionHash=0xb1c9b18b3c1798488438db058081a4ac894a42e34985b2ffe4fe6d1d0242cb02
trace.blockHash=0xc3d9c14f6cac44ecf11e7b097999ca1fd0f27c6ea113fb3eb6af541b2ea12c42
trace.fromBlock=earliest
trace.toBlock=latest
trace.fromBlock=0x3563F8
trace.toBlock=0x3567E0
trace.toAddresses=0x0000000000000000000000000000000001000008
trace.fromAddresses=0x0000000000000000000000000000000000000000

Expand Down

0 comments on commit a1d9d53

Please sign in to comment.