Skip to content

Commit

Permalink
Chain config for beta 5 network (#1507)
Browse files Browse the repository at this point in the history
The block gas limit for 1 second of production remains 30M. Based on the
result from the sanity check it is a good value to fit 1/3 from block
production time. The `noop` opcode takes ~12ms for 1M -> for 30M it
should be around ~360ms. Most opcodes have the same execution time, or
maybe less(only several have higher execution time in worst scenarios).

The max gas per script and predicate was increased from 10M to 30M
because all transactions became more expensive. With the `63` gas per
byte, the 30M limit allows the deployment of contracts up to 465 KB. The
`max_storage_slots` was increased because we've started to charge
separately for the state of the contract, and the limit is defined
mainly by the gas limit. The `new_storage_per_byte` is manually set to
be the same as `gas_per_byte` for now.

The default coinbase contract has `ContractId`
"0x7777777777777777777777777777777777777777777777777777777777777777".
The contract is created with command:

```shell
fuel-core generate-fee-contract 94318e6e453f30e85bf6088f7161d44e57b86a6af0c955d22b353f91b2465f5e
```

Where `94318e6e453f30e85bf6088f7161d44e57b86a6af0c955d22b353f91b2465f5e`
is 7th address generated from the beta 5 [seed
phrase](https://github.com/FuelLabs/org/blob/master/networks/beta-1/wallet.md)
by `forc-wallet account new` command.

The size of the transaction and opcodes that modify storage are the most
expensive.

Sanity check results for 1M block gas limit:

```shell
block target estimation/alu/add opcode
                        time:   [9.6945 ms 9.6991 ms 9.7036 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) low mild
block target estimation/alu/addi opcode
                        time:   [9.2619 ms 9.2654 ms 9.2688 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/alu/and opcode
                        time:   [9.6389 ms 9.6469 ms 9.6558 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/alu/andi opcode
                        time:   [9.6831 ms 9.6876 ms 9.6922 ms]
block target estimation/alu/div opcode
                        time:   [10.389 ms 10.406 ms 10.423 ms]
block target estimation/alu/divi opcode
                        time:   [10.077 ms 10.083 ms 10.090 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/alu/eq opcode
                        time:   [9.4103 ms 9.4166 ms 9.4230 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/alu/exp opcode
                        time:   [10.847 ms 10.855 ms 10.863 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/alu/expi opcode
                        time:   [10.491 ms 10.505 ms 10.519 ms]
block target estimation/alu/gt opcode
                        time:   [9.3366 ms 9.3413 ms 9.3460 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) low mild
block target estimation/alu/lt opcode
                        time:   [9.5865 ms 9.5916 ms 9.5967 ms]
block target estimation/alu/mlog opcode
                        time:   [11.258 ms 11.266 ms 11.274 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/alu/mod opcode
                        time:   [10.231 ms 10.235 ms 10.240 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high severe
block target estimation/alu/modi opcode
                        time:   [9.9911 ms 9.9950 ms 9.9990 ms]
block target estimation/alu/move opcode
                        time:   [8.9027 ms 8.9063 ms 8.9100 ms]
Found 3 outliers among 100 measurements (3.00%)
  1 (1.00%) low mild
  2 (2.00%) high mild
block target estimation/alu/movi opcode
                        time:   [9.1850 ms 9.1891 ms 9.1933 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/mroo opcode
                        time:   [11.194 ms 11.198 ms 11.202 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/alu/mul opcode
                        time:   [9.6178 ms 9.6262 ms 9.6346 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/muli opcode
                        time:   [9.3876 ms 9.3920 ms 9.3964 ms]
Found 4 outliers among 100 measurements (4.00%)
  3 (3.00%) low mild
  1 (1.00%) high mild
block target estimation/alu/mldv opcode
                        time:   [7.8830 ms 7.8859 ms 7.8889 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/alu/noop opcode
                        time:   [11.567 ms 11.571 ms 11.575 ms]
block target estimation/alu/not opcode
                        time:   [9.0525 ms 9.0575 ms 9.0626 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/or opcode
                        time:   [9.3047 ms 9.3099 ms 9.3151 ms]
block target estimation/alu/ori opcode
                        time:   [9.3479 ms 9.3529 ms 9.3579 ms]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
block target estimation/alu/sll opcode
                        time:   [9.4795 ms 9.4855 ms 9.4915 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/slli opcode
                        time:   [9.3000 ms 9.3066 ms 9.3131 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) low mild
block target estimation/alu/srl opcode
                        time:   [9.5507 ms 9.5572 ms 9.5636 ms]
block target estimation/alu/srli opcode
                        time:   [9.6669 ms 9.6724 ms 9.6778 ms]
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) low mild
  3 (3.00%) high mild
block target estimation/alu/sub opcode
                        time:   [9.4321 ms 9.4363 ms 9.4412 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/alu/subi opcode
                        time:   [9.4125 ms 9.4158 ms 9.4191 ms]
block target estimation/alu/xor opcode
                        time:   [9.6297 ms 9.6351 ms 9.6406 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/alu/xori opcode
                        time:   [9.2958 ms 9.3020 ms 9.3081 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) low mild
block target estimation/alu/wdcm opcode
                        time:   [9.8170 ms 9.8212 ms 9.8254 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) low mild
  1 (1.00%) high mild
block target estimation/alu/wdop opcode
                        time:   [11.550 ms 11.559 ms 11.569 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/wdml opcode
                        time:   [11.453 ms 11.464 ms 11.475 ms]
block target estimation/alu/wddv opcode
                        time:   [11.902 ms 11.906 ms 11.910 ms]
Found 4 outliers among 100 measurements (4.00%)
  3 (3.00%) high mild
  1 (1.00%) high severe
block target estimation/alu/wdmd opcode
                        time:   [12.972 ms 12.974 ms 12.978 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/alu/wdam opcode
                        time:   [13.101 ms 13.106 ms 13.111 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/wdmm opcode
                        time:   [12.809 ms 12.812 ms 12.816 ms]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) low mild
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/alu/wqcm opcode
                        time:   [10.604 ms 10.614 ms 10.624 ms]
block target estimation/alu/wqop opcode
                        time:   [11.614 ms 11.621 ms 11.627 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/alu/wqml opcode
                        time:   [11.319 ms 11.328 ms 11.337 ms]
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) low mild
  3 (3.00%) high mild
block target estimation/alu/wqdv opcode
                        time:   [11.409 ms 11.414 ms 11.420 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/alu/wqmd opcode
                        time:   [12.758 ms 12.760 ms 12.762 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/wdmm opcode
                        time:   [12.809 ms 12.812 ms 12.816 ms]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) low mild
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/alu/wqcm opcode
                        time:   [10.604 ms 10.614 ms 10.624 ms]
block target estimation/alu/wqop opcode
                        time:   [11.614 ms 11.621 ms 11.627 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/alu/wqml opcode
                        time:   [11.319 ms 11.328 ms 11.337 ms]
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) low mild
  3 (3.00%) high mild
block target estimation/alu/wqdv opcode
                        time:   [11.409 ms 11.414 ms 11.420 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/alu/wqmd opcode
                        time:   [12.758 ms 12.760 ms 12.762 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/wqam opcode
                        time:   [12.641 ms 12.648 ms 12.656 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/alu/wqmm opcode
                        time:   [19.251 ms 19.257 ms 19.263 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/contract/bal contract
                        time:   [14.725 ms 14.733 ms 14.740 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/contract/bal script
                        time:   [14.612 ms 14.624 ms 14.637 ms]
block target estimation/contract/bhei
                        time:   [9.3087 ms 9.3283 ms 9.3565 ms]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/bhsh
                        time:   [11.444 ms 11.466 ms 11.496 ms]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) high mild
  2 (2.00%) high severe
block target estimation/contract/burn
                        time:   [11.051 ms 11.054 ms 11.058 ms]
Found 6 outliers among 100 measurements (6.00%)
  1 (1.00%) low mild
  4 (4.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/call 1
                        time:   [10.877 ms 10.882 ms 10.887 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/contract/call 10
                        time:   [10.866 ms 10.873 ms 10.881 ms]
Found 1 outliers among 100 measurements (1.00%)
block target estimation/contract/call 1000
                        time:   [10.524 ms 10.528 ms 10.532 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/call 10000
                        time:   [9.9281 ms 9.9310 ms 9.9341 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/contract/call 19753
                        time:   [9.3603 ms 9.3626 ms 9.3648 ms]
block target estimation/contract/call 29629
                        time:   [9.4653 ms 9.4672 ms 9.4690 ms]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) low mild
  3 (3.00%) high mild
block target estimation/contract/call 44444
                        time:   [9.3232 ms 9.3262 ms 9.3301 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/call 66666
                        time:   [9.0877 ms 9.0896 ms 9.0916 ms]
Found 4 outliers among 100 measurements (4.00%)
  4 (4.00%) high mild
block target estimation/contract/call 100000
                        time:   [9.2118 ms 9.2141 ms 9.2166 ms]
Found 10 outliers among 100 measurements (10.00%)
  8 (8.00%) high mild
  2 (2.00%) high severe
block target estimation/contract/cb
                        time:   [11.252 ms 11.266 ms 11.280 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) low mild
block target estimation/contract/ccp 1
                        time:   [9.4254 ms 9.4299 ms 9.4343 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/contract/ccp 10
                        time:   [9.6353 ms 9.6391 ms 9.6428 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/contract/ccp 100
                        time:   [7.9365 ms 7.9431 ms 7.9493 ms]
Found 7 outliers among 100 measurements (7.00%)
  2 (2.00%) low severe
  4 (4.00%) low mild
  1 (1.00%) high mild
block target estimation/contract/ccp 1000
                        time:   [3.5176 ms 3.5186 ms 3.5195 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/contract/ccp 10000
                        time:   [2.8955 ms 2.9051 ms 2.9144 ms]
block target estimation/contract/ccp 19753
                        time:   [2.5702 ms 2.5768 ms 2.5833 ms]
block target estimation/contract/ccp 29629
                        time:   [2.4370 ms 2.4416 ms 2.4462 ms]
block target estimation/contract/ccp 44444
                        time:   [2.3448 ms 2.3482 ms 2.3517 ms]
block target estimation/contract/ccp 66666
                        time:   [2.4630 ms 2.4655 ms 2.4681 ms]
Found 6 outliers among 100 measurements (6.00%)
  6 (6.00%) high mild
block target estimation/contract/ccp 100000
                        time:   [2.9114 ms 2.9153 ms 2.9191 ms]
block target estimation/contract/croo
                        time:   [10.958 ms 10.963 ms 10.967 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/contract/csiz 1
                        time:   [8.8856 ms 8.8929 ms 8.9005 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/contract/csiz 10
                        time:   [9.2256 ms 9.2309 ms 9.2363 ms]
block target estimation/contract/csiz 100
                        time:   [9.0832 ms 9.0890 ms 9.0949 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/contract/csiz 1000
                        time:   [7.6927 ms 7.7003 ms 7.7081 ms]
block target estimation/contract/csiz 10000
                        time:   [10.468 ms 10.507 ms 10.551 ms]
Found 15 outliers among 100 measurements (15.00%)
  1 (1.00%) low mild
  14 (14.00%) high severe
block target estimation/contract/csiz 19753
                        time:   [9.5810 ms 9.6128 ms 9.6463 ms]
block target estimation/contract/csiz 29629
                        time:   [9.2937 ms 9.3124 ms 9.3325 ms]
Found 21 outliers among 100 measurements (21.00%)
  1 (1.00%) high mild
  20 (20.00%) high severe
block target estimation/contract/csiz 44444
                        time:   [9.1104 ms 9.1239 ms 9.1380 ms]
block target estimation/contract/csiz 66666
                        time:   [9.0073 ms 9.0163 ms 9.0260 ms]
Found 23 outliers among 100 measurements (23.00%)
  2 (2.00%) low mild
  1 (1.00%) high mild
  20 (20.00%) high severe
block target estimation/contract/csiz 100000
                        time:   [8.9444 ms 8.9516 ms 8.9592 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/contract/ldc 1
                        time:   [12.500 ms 12.504 ms 12.508 ms]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
block target estimation/contract/ldc 10
                        time:   [13.152 ms 13.169 ms 13.187 ms]
block target estimation/contract/ldc 100
                        time:   [12.879 ms 12.900 ms 12.922 ms]
block target estimation/contract/ldc 1000
                        time:   [11.714 ms 11.768 ms 11.829 ms]
Found 17 outliers among 100 measurements (17.00%)
  4 (4.00%) high mild
  13 (13.00%) high severe
block target estimation/contract/ldc 10000
                        time:   [14.086 ms 14.127 ms 14.167 ms]
block target estimation/contract/ldc 19753
                        time:   [13.023 ms 13.062 ms 13.103 ms]
Found 1 outliers among 100 measurements (1.00%)
block target estimation/contract/ldc 29629
                        time:   [12.611 ms 12.640 ms 12.671 ms]
Found 23 outliers among 100 measurements (23.00%)
  15 (15.00%) low mild
  4 (4.00%) high mild
  4 (4.00%) high severe
block target estimation/contract/ldc 44444
                        time:   [12.535 ms 12.564 ms 12.596 ms]
Found 10 outliers among 100 measurements (10.00%)
  3 (3.00%) low mild
  4 (4.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/ldc 66666
                        time:   [12.854 ms 12.924 ms 13.003 ms]
Found 7 outliers among 100 measurements (7.00%)
  7 (7.00%) high severe
block target estimation/contract/ldc 100000
                        time:   [14.968 ms 15.027 ms 15.096 ms]
Found 9 outliers among 100 measurements (9.00%)
  4 (4.00%) high mild
  5 (5.00%) high severe
block target estimation/contract/log
                        time:   [5.8421 ms 5.8447 ms 5.8478 ms]
Found 12 outliers among 100 measurements (12.00%)
  5 (5.00%) low mild
  5 (5.00%) high mild
  2 (2.00%) high severe
block target estimation/contract/logd 1
^[                        time:   [4.6927 ms 4.6959 ms 4.6995 ms]
Found 21 outliers among 100 measurements (21.00%)
  1 (1.00%) high mild
  20 (20.00%) high severe
block target estimation/contract/logd 10
                        time:   [4.7148 ms 4.7380 ms 4.7810 ms]
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/logd 100
                        time:   [4.9908 ms 4.9969 ms 5.0034 ms]
Found 4 outliers among 100 measurements (4.00%)
  4 (4.00%) high mild
block target estimation/contract/logd 1000
                        time:   [7.9364 ms 7.9498 ms 7.9644 ms]
Found 10 outliers among 100 measurements (10.00%)
  8 (8.00%) high mild
  2 (2.00%) high severe
block target estimation/contract/logd 10000
                        time:   [13.200 ms 13.262 ms 13.327 ms]
Found 9 outliers among 100 measurements (9.00%)
  8 (8.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/logd 19753
                        time:   [14.013 ms 14.080 ms 14.155 ms]
Found 9 outliers among 100 measurements (9.00%)
  6 (6.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/logd 29629
                        time:   [14.407 ms 14.466 ms 14.532 ms]
Found 14 outliers among 100 measurements (14.00%)
block target estimation/contract/logd 44444
                        time:   [14.551 ms 14.618 ms 14.693 ms]
Found 8 outliers among 100 measurements (8.00%)
  5 (5.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/logd 66666
                        time:   [14.929 ms 15.015 ms 15.106 ms]
Found 8 outliers among 100 measurements (8.00%)
  7 (7.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/logd 100000
                        time:   [14.578 ms 14.664 ms 14.755 ms]
Found 13 outliers among 100 measurements (13.00%)
  12 (12.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/mint
                        time:   [10.663 ms 10.711 ms 10.767 ms]
Found 19 outliers among 100 measurements (19.00%)
  7 (7.00%) high mild
  12 (12.00%) high severe
block target estimation/contract/ret contract
                        time:   [10.880 ms 10.885 ms 10.891 ms]
Found 5 outliers among 100 measurements (5.00%)
  2 (2.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/retd contract 1
                        time:   [10.695 ms 10.701 ms 10.707 ms]
Found 4 outliers among 100 measurements (4.00%)
  3 (3.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/retd contract 10
                        time:   [10.914 ms 10.921 ms 10.930 ms]
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/retd contract 100
                        time:   [10.942 ms 10.947 ms 10.953 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/retd contract 1000
                        time:   [10.800 ms 10.806 ms 10.813 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/retd contract 10000
                        time:   [11.573 ms 11.580 ms 11.587 ms]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
block target estimation/contract/retd contract 19753
                        time:   [12.039 ms 12.060 ms 12.084 ms]
Found 14 outliers among 100 measurements (14.00%)
  5 (5.00%) high mild
  9 (9.00%) high severe
block target estimation/contract/retd contract 29629
                        time:   [12.412 ms 12.426 ms 12.441 ms]
Found 6 outliers among 100 measurements (6.00%)
  1 (1.00%) high mild
  5 (5.00%) high severe
block target estimation/contract/retd contract 44444
                        time:   [12.774 ms 12.795 ms 12.821 ms]
Found 6 outliers among 100 measurements (6.00%)
  1 (1.00%) high mild
  5 (5.00%) high severe
block target estimation/contract/retd contract 66666
                        time:   [13.540 ms 13.578 ms 13.620 ms]
Found 14 outliers among 100 measurements (14.00%)
  14 (14.00%) high severe
block target estimation/contract/retd contract 100000
                        time:   [13.845 ms 13.928 ms 14.064 ms]
Found 12 outliers among 100 measurements (12.00%)
  3 (3.00%) high mild
  9 (9.00%) high severe
block target estimation/contract/smo 1
                        time:   [4.0557 ms 4.0588 ms 4.0622 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/smo 10
                        time:   [4.0559 ms 4.0577 ms 4.0600 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/contract/smo 100
                        time:   [4.0820 ms 4.0846 ms 4.0878 ms]
Found 5 outliers among 100 measurements (5.00%)
  3 (3.00%) high mild
  2 (2.00%) high severe
block target estimation/contract/smo 1000
                        time:   [4.2952 ms 4.2985 ms 4.3022 ms]
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/smo 10000
                        time:   [5.4749 ms 5.4791 ms 5.4838 ms]
Found 11 outliers among 100 measurements (11.00%)
  7 (7.00%) high mild
  4 (4.00%) high severe
block target estimation/contract/smo 19753
                        time:   [6.7946 ms 6.8023 ms 6.8104 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/contract/smo 29629
                        time:   [7.8377 ms 7.8477 ms 7.8587 ms]
Found 10 outliers among 100 measurements (10.00%)
  5 (5.00%) high mild
  5 (5.00%) high severe
block target estimation/contract/smo 44444
                        time:   [9.3712 ms 9.3769 ms 9.3832 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/smo 66666
                        time:   [10.317 ms 10.330 ms 10.344 ms]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) high mild
  3 (3.00%) high severe
block target estimation/contract/smo 100000
                        time:   [12.632 ms 12.656 ms 12.683 ms]
Found 14 outliers among 100 measurements (14.00%)
  6 (6.00%) high mild
  8 (8.00%) high severe
block target estimation/contract/scwq
                        time:   [9.6125 ms 9.6174 ms 9.6225 ms]
Found 5 outliers among 100 measurements (5.00%)
  4 (4.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/srw
                        time:   [14.407 ms 14.419 ms 14.432 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/contract/srwq
                        time:   [10.444 ms 10.459 ms 10.474 ms]
block target estimation/contract/sww
                        time:   [14.331 ms 14.350 ms 14.371 ms]
Found 7 outliers among 100 measurements (7.00%)
  5 (5.00%) high mild
  2 (2.00%) high severe
block target estimation/contract/swwq
                        time:   [9.9269 ms 9.9506 ms 9.9751 ms]
block target estimation/contract/time
                        time:   [18.068 ms 18.139 ms 18.211 ms]
block target estimation/contract/tr
                        time:   [11.496 ms 11.504 ms 11.514 ms]
Found 6 outliers among 100 measurements (6.00%)
  4 (4.00%) high mild
  2 (2.00%) high severe
block target estimation/crypto/eck1 opcode valid
                        time:   [13.152 ms 13.174 ms 13.217 ms]
Found 6 outliers among 100 measurements (6.00%)
  5 (5.00%) high mild
  1 (1.00%) high severe
block target estimation/crypto/eck1 opcode invalid
                        time:   [12.769 ms 12.771 ms 12.773 ms]
block target estimation/crypto/ecr1 opcode
                        time:   [12.824 ms 12.828 ms 12.831 ms]
Found 10 outliers among 100 measurements (10.00%)
  6 (6.00%) high mild
  4 (4.00%) high severe
block target estimation/crypto/ed19 opcode
                        time:   [12.547 ms 12.557 ms 12.567 ms]
block target estimation/crypto/s256 opcode 1
                        time:   [8.4254 ms 8.4271 ms 8.4289 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/crypto/s256 opcode 10
                        time:   [8.0225 ms 8.0236 ms 8.0246 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) low mild
block target estimation/crypto/s256 opcode 100
                        time:   [8.9452 ms 8.9465 ms 8.9477 ms]
Found 6 outliers among 100 measurements (6.00%)
  3 (3.00%) low mild
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/crypto/s256 opcode 1000
                        time:   [13.293 ms 13.294 ms 13.296 ms]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) high mild
  2 (2.00%) high severe
block target estimation/crypto/s256 opcode 10000
                        time:   [14.147 ms 14.148 ms 14.150 ms]
Found 6 outliers among 100 measurements (6.00%)
  6 (6.00%) high mild
block target estimation/crypto/s256 opcode 19753
                        time:   [14.330 ms 14.332 ms 14.333 ms]
block target estimation/crypto/s256 opcode 29629
                        time:   [14.301 ms 14.310 ms 14.319 ms]
block target estimation/crypto/s256 opcode 44444
                        time:   [14.075 ms 14.084 ms 14.094 ms]
Found 15 outliers among 100 measurements (15.00%)
  5 (5.00%) high mild
  10 (10.00%) high severe
block target estimation/crypto/s256 opcode 66666
                        time:   [14.058 ms 14.059 ms 14.061 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/crypto/s256 opcode 100000
                        time:   [13.725 ms 13.726 ms 13.727 ms]
Found 4 outliers among 100 measurements (4.00%)
  3 (3.00%) high mild
  1 (1.00%) high severe
block target estimation/crypto/k256 opcode 1
                        time:   [2.5765 ms 2.5773 ms 2.5781 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/crypto/k256 opcode 10
                        time:   [2.5023 ms 2.5035 ms 2.5049 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/crypto/k256 opcode 100
                        time:   [2.3500 ms 2.3509 ms 2.3519 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/crypto/k256 opcode 1000
                        time:   [7.1711 ms 7.1719 ms 7.1727 ms]
block target estimation/crypto/k256 opcode 10000
                        time:   [10.831 ms 10.832 ms 10.833 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/crypto/k256 opcode 19753
                        time:   [11.256 ms 11.259 ms 11.263 ms]
Found 12 outliers among 100 measurements (12.00%)
  9 (9.00%) high mild
  3 (3.00%) high severe
block target estimation/crypto/k256 opcode 29629
                        time:   [11.439 ms 11.446 ms 11.454 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/crypto/k256 opcode 44444
                        time:   [11.339 ms 11.342 ms 11.349 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/crypto/k256 opcode 66666
                        time:   [11.263 ms 11.264 ms 11.265 ms]
Found 5 outliers among 100 measurements (5.00%)
  3 (3.00%) high mild
  2 (2.00%) high severe
block target estimation/crypto/k256 opcode 100000
                        time:   [11.267 ms 11.269 ms 11.270 ms]
block target estimation/flow/jmp opcode
                        time:   [8.9692 ms 8.9732 ms 8.9776 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high severe
block target estimation/flow/ji opcode
                        time:   [9.1226 ms 9.1274 ms 9.1322 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/flow/jne opcode
                        time:   [9.7172 ms 9.7191 ms 9.7210 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/flow/jnei opcode
                        time:   [10.104 ms 10.107 ms 10.112 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/flow/jnzi opcode
                        time:   [9.6479 ms 9.6538 ms 9.6595 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) low mild
block target estimation/flow/jmpb opcode
                        time:   [11.934 ms 11.936 ms 11.938 ms]
block target estimation/flow/jmpf opcode
                        time:   [9.7299 ms 9.7346 ms 9.7392 ms]
block target estimation/flow/jnzb opcode true
                        time:   [11.848 ms 11.856 ms 11.864 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/flow/jnzb opcode false
                        time:   [9.3918 ms 9.3952 ms 9.3987 ms]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
block target estimation/flow/jnzf opcode true
                        time:   [9.9209 ms 9.9265 ms 9.9325 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/flow/jnzf opcode false
                        time:   [9.5127 ms 9.5160 ms 9.5193 ms]
block target estimation/flow/jneb opcode not equal
                        time:   [12.017 ms 12.019 ms 12.022 ms]
block target estimation/flow/jneb opcode equal
                        time:   [9.5211 ms 9.5248 ms 9.5287 ms]
Found 5 outliers among 100 measurements (5.00%)
  4 (4.00%) high mild
  1 (1.00%) high severe
block target estimation/flow/jnef opcode not equal
                        time:   [10.129 ms 10.140 ms 10.151 ms]
block target estimation/flow/jnef opcode equal
                        time:   [9.8118 ms 9.8208 ms 9.8304 ms]
Found 3 outliers among 100 measurements (3.00%)
  2 (2.00%) high mild
  1 (1.00%) high severe
block target estimation/memory/aloc opcode
                        time:   [11.770 ms 11.774 ms 11.777 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/cfe opcode
                        time:   [9.1840 ms 9.1864 ms 9.1891 ms]
Found 7 outliers among 100 measurements (7.00%)
  1 (1.00%) high mild
  6 (6.00%) high severe
block target estimation/memory/cfei opcode
                        time:   [9.3726 ms 9.3772 ms 9.3817 ms]
block target estimation/memory/cfs opcode
                        time:   [9.0976 ms 9.1015 ms 9.1056 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/memory/cfsi opcode
                        time:   [9.2230 ms 9.2273 ms 9.2315 ms]
block target estimation/memory/lb opcode
                        time:   [9.8459 ms 9.8505 ms 9.8551 ms]
block target estimation/memory/lw opcode
                        time:   [9.6474 ms 9.6530 ms 9.6586 ms]
block target estimation/memory/mcl opcode 1
                        time:   [9.3634 ms 9.3697 ms 9.3760 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/mcl opcode 10
                        time:   [9.3658 ms 9.3717 ms 9.3781 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/memory/mcl opcode 100
                        time:   [9.5097 ms 9.5158 ms 9.5220 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/mcl opcode 1000
                        time:   [8.8797 ms 8.8867 ms 8.8937 ms]
block target estimation/memory/mcl opcode 10000
                        time:   [4.4818 ms 4.4983 ms 4.5168 ms]
Found 14 outliers among 100 measurements (14.00%)
  14 (14.00%) high severe
block target estimation/memory/mcl opcode 19753
                        time:   [3.8409 ms 3.8494 ms 3.8587 ms]
Found 21 outliers among 100 measurements (21.00%)
  21 (21.00%) high severe
block target estimation/memory/mcl opcode 29629
                        time:   [4.1930 ms 4.2085 ms 4.2242 ms]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) low mild
  2 (2.00%) high mild
block target estimation/memory/mcl opcode 44444
                        time:   [16.682 ms 16.710 ms 16.736 ms]
Found 7 outliers among 100 measurements (7.00%)
  2 (2.00%) low severe
  4 (4.00%) low mild
  1 (1.00%) high mild
block target estimation/memory/mcl opcode 66666
                        time:   [17.236 ms 17.254 ms 17.272 ms]
block target estimation/memory/mcl opcode 100000
                        time:   [17.302 ms 17.317 ms 17.332 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) low mild
block target estimation/memory/mcli opcode 1
                        time:   [9.7608 ms 9.7680 ms 9.7755 ms]
Found 7 outliers among 100 measurements (7.00%)
  7 (7.00%) high mild
block target estimation/memory/mcli opcode 10
                        time:   [9.7623 ms 9.7687 ms 9.7750 ms]
block target estimation/memory/mcli opcode 100
                        time:   [9.9050 ms 9.9104 ms 9.9158 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) low mild
block target estimation/memory/mcli opcode 1000
                        time:   [9.1599 ms 9.1643 ms 9.1687 ms]
Found 2 outliers among 100 measurements (2.00%)
block target estimation/memory/mcli opcode 10000
                        time:   [4.5411 ms 4.5592 ms 4.5793 ms]
Found 19 outliers among 100 measurements (19.00%)
  19 (19.00%) high severe
block target estimation/memory/mcli opcode 19753
                        time:   [3.8650 ms 3.8722 ms 3.8804 ms]
Found 13 outliers among 100 measurements (13.00%)
  13 (13.00%) high severe
block target estimation/memory/mcli opcode 29629
                        time:   [4.2024 ms 4.2190 ms 4.2360 ms]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) low mild
  3 (3.00%) high mild
block target estimation/memory/mcli opcode 44444
                        time:   [16.658 ms 16.682 ms 16.706 ms]
Found 5 outliers among 100 measurements (5.00%)
  5 (5.00%) low mild
block target estimation/memory/mcli opcode 66666
                        time:   [17.086 ms 17.109 ms 17.131 ms]
block target estimation/memory/mcli opcode 100000
                        time:   [17.161 ms 17.184 ms 17.204 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low severe
  1 (1.00%) low mild
block target estimation/memory/mcp opcode 1
                        time:   [10.747 ms 10.753 ms 10.759 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high severe
block target estimation/memory/mcp opcode 10
                        time:   [13.700 ms 13.796 ms 13.888 ms]
block target estimation/memory/mcp opcode 100
                        time:   [10.823 ms 10.827 ms 10.831 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/mcp opcode 1000
                        time:   [9.3348 ms 9.3424 ms 9.3496 ms]
Found 20 outliers among 100 measurements (20.00%)
  7 (7.00%) low severe
  13 (13.00%) low mild
block target estimation/memory/mcp opcode 10000
                        time:   [4.8455 ms 4.8584 ms 4.8724 ms]
Found 19 outliers among 100 measurements (19.00%)
  1 (1.00%) high mild
  18 (18.00%) high severe
block target estimation/memory/mcp opcode 19753
                        time:   [7.9587 ms 8.0265 ms 8.0958 ms]
block target estimation/memory/mcp opcode 29629
                        time:   [12.008 ms 12.062 ms 12.117 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/mcp opcode 44444
                        time:   [13.496 ms 13.530 ms 13.565 ms]
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) low mild
  2 (2.00%) high mild
block target estimation/memory/mcp opcode 66666
                        time:   [13.804 ms 13.832 ms 13.862 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/mcp opcode 100000
                        time:   [14.387 ms 14.403 ms 14.418 ms]
block target estimation/memory/mcpi opcode 1
                        time:   [6.1408 ms 6.1435 ms 6.1461 ms]
block target estimation/memory/mcpi opcode 10
                        time:   [6.0755 ms 6.0782 ms 6.0809 ms]
block target estimation/memory/mcpi opcode 100
                        time:   [6.1801 ms 6.1830 ms 6.1858 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/memory/mcpi opcode 1000
                        time:   [6.5631 ms 6.5680 ms 6.5730 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/memory/meq opcode 1
                        time:   [3.8795 ms 3.8817 ms 3.8840 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/meq opcode 10
                        time:   [3.8807 ms 3.8826 ms 3.8847 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
block target estimation/memory/meq opcode 100
                        time:   [4.0896 ms 4.0973 ms 4.1053 ms]
block target estimation/memory/meq opcode 1000
                        time:   [4.6467 ms 4.6492 ms 4.6518 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/meq opcode 10000
                        time:   [6.6958 ms 6.6987 ms 6.7017 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/meq opcode 19753
                        time:   [8.0908 ms 8.0932 ms 8.0959 ms]
Found 3 outliers among 100 measurements (3.00%)
  1 (1.00%) low mild
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/memory/meq opcode 29629
                        time:   [8.6435 ms 8.6452 ms 8.6469 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/meq opcode 44444
                        time:   [9.2329 ms 9.2343 ms 9.2356 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/memory/meq opcode 66666
                        time:   [9.8002 ms 9.8039 ms 9.8079 ms]
Found 6 outliers among 100 measurements (6.00%)
  5 (5.00%) high mild
  1 (1.00%) high severe
block target estimation/memory/meq opcode 100000
                        time:   [9.8857 ms 9.8873 ms 9.8889 ms]
Found 5 outliers among 100 measurements (5.00%)
  4 (4.00%) high mild
  1 (1.00%) high severe
block target estimation/memory/poph opcode
                        time:   [11.540 ms 11.544 ms 11.548 ms]
Found 1 outliers among 100 measurements (1.00%)
block target estimation/memory/popl opcode
                        time:   [11.421 ms 11.427 ms 11.432 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/memory/pshh opcode
                        time:   [23.152 ms 23.207 ms 23.265 ms]
Found 5 outliers among 100 measurements (5.00%)
  5 (5.00%) high mild
block target estimation/memory/pshl opcode
                        time:   [23.349 ms 23.420 ms 23.495 ms]
Found 5 outliers among 100 measurements (5.00%)
  4 (4.00%) high mild
  1 (1.00%) high severe
block target estimation/memory/sb opcode
                        time:   [10.116 ms 10.121 ms 10.125 ms]
Found 2 outliers among 100 measurements (2.00%)
  2 (2.00%) high mild
block target estimation/memory/sw opcode
                        time:   [9.8993 ms 9.9080 ms 9.9194 ms]
Found 2 outliers among 100 measurements (2.00%)
  1 (1.00%) high mild
  1 (1.00%) high severe
block target estimation/other/flag
                        time:   [11.780 ms 11.786 ms 11.791 ms]
block target estimation/other/gm
                        time:   [3.6017 ms 3.6035 ms 3.6053 ms]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) high mild
block target estimation/other/gtf
                        time:   [26.514 ms 26.558 ms 26.613 ms]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) low mild
  3 (3.00%) high severe

```
  • Loading branch information
xgreenx authored Nov 23, 2023
1 parent 65dd6f2 commit 8f6a517
Show file tree
Hide file tree
Showing 22 changed files with 616 additions and 390 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Description of the upcoming release here.

### Added

- [#1503](https://github.com/FuelLabs/fuel-core/pull/1503): Add `gtf` opcode sanity check
- [#1503](https://github.com/FuelLabs/fuel-core/pull/1503): Add `gtf` opcode sanity check.
- [#1502](https://github.com/FuelLabs/fuel-core/pull/1502): Added price benchmark for `vm_initialization`.
- [#1492](https://github.com/FuelLabs/fuel-core/pull/1492): Support backward iteration in the RocksDB. It allows backward queries that were not allowed before.
- [#1490](https://github.com/FuelLabs/fuel-core/pull/1490): Add push and pop benchmarks.
Expand Down Expand Up @@ -55,6 +55,7 @@ Description of the upcoming release here.

### Changed

- [#1507](https://github.com/FuelLabs/fuel-core/pull/1507): Updated chain configuration to be ready for beta 5 network. It includes opcode prices from the latest benchmark and contract for the block producer.
- [#1477](https://github.com/FuelLabs/fuel-core/pull/1477): Upgraded the Rust version used in CI and containers to 1.73.0. Also includes associated Clippy changes.
- [#1469](https://github.com/FuelLabs/fuel-core/pull/1469): Replaced usage of `MemoryTransactionView` by `Checkpoint` database in the benchmarks.
- [#1466](https://github.com/FuelLabs/fuel-core/pull/1466): Handling overflows during arithmetic operations.
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions benches/benches/block_target_gas.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use crate::block_target_gas_set::default_gas_costs::default_gas_costs;
use block_target_gas_set::{
alu::run_alu,
contract::run_contract,
Expand All @@ -25,7 +24,10 @@ use fuel_core::{
},
txpool::types::Word,
};
use fuel_core_benches::*;
use fuel_core_benches::{
default_gas_costs::default_gas_costs,
*,
};
use fuel_core_chain_config::ContractConfig;
use fuel_core_storage::{
tables::ContractsRawCode,
Expand Down
7 changes: 0 additions & 7 deletions benches/benches/block_target_gas_set/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
use fuel_core_types::fuel_tx::{
DependentCost,
GasCostsValues,
};

pub mod alu;

pub mod crypto;
Expand All @@ -14,5 +9,3 @@ pub mod contract;
pub mod memory;

pub mod other;

pub mod default_gas_costs;
Original file line number Diff line number Diff line change
Expand Up @@ -6,170 +6,170 @@ pub fn default_gas_costs() -> GasCostsValues {
aloc: 1,
and: 2,
andi: 2,
bal: 328,
bhei: 1,
bal: 366,
bhei: 2,
bhsh: 2,
burn: 27738,
burn: 33949,
cb: 2,
cfei: 2,
cfsi: 1,
cfsi: 2,
croo: 40,
div: 2,
divi: 2,
eck1: 3107,
ecr1: 42738,
ed19: 2897,
eck1: 3347,
ecr1: 46165,
ed19: 4210,
eq: 2,
exp: 2,
expi: 2,
flag: 1,
gm: 2,
gt: 2,
gtf: 2,
gtf: 16,
ji: 2,
jmp: 2,
jne: 2,
jnei: 2,
jnzi: 2,
jmpf: 1,
jmpb: 1,
jnzf: 1,
jnzb: 1,
jnef: 1,
jneb: 1,
jmpf: 2,
jmpb: 2,
jnzf: 2,
jnzb: 2,
jnef: 2,
jneb: 2,
lb: 2,
log: 87,
log: 754,
lt: 2,
lw: 2,
mint: 25515,
mint: 35718,
mlog: 2,
vm_initialization: DependentCost::HeavyOperation {
base: 2000,
gas_per_unit: 0,
vm_initialization: DependentCost::LightOperation {
base: 1645,
units_per_gas: 14,
},
modi: 2,
mod_op: 2,
movi: 2,
mroo: 4,
mroo: 5,
mul: 2,
muli: 2,
mldv: 4,
noop: 1,
not: 1,
not: 2,
or: 2,
ori: 2,
poph: 3,
popl: 3,
pshh: 3,
pshl: 3,
move_op: 1,
ret: 127,
pshh: 4,
pshl: 4,
move_op: 2,
ret: 733,
sb: 2,
sll: 2,
slli: 2,
srl: 2,
srli: 2,
srw: 224,
srw: 253,
sub: 2,
subi: 2,
sw: 2,
sww: 26247,
time: 76,
tr: 38925,
tro: 26756,
wdcm: 2,
sww: 29053,
time: 79,
tr: 46242,
tro: 33251,
wdcm: 3,
wqcm: 3,
wdop: 3,
wqop: 3,
wdml: 3,
wqml: 4,
wddv: 5,
wqdv: 6,
wdmd: 10,
wqmd: 17,
wqdv: 7,
wdmd: 11,
wqmd: 18,
wdam: 9,
wqam: 10,
wdmm: 10,
wqmm: 10,
wqam: 12,
wdmm: 11,
wqmm: 11,
xor: 2,
xori: 2,
call: DependentCost::LightOperation {
base: 17510,
units_per_gas: 5,
base: 21687,
units_per_gas: 4,
},
ccp: DependentCost::LightOperation {
base: 54,
units_per_gas: 21,
base: 59,
units_per_gas: 20,
},
csiz: DependentCost::LightOperation {
base: 58,
units_per_gas: 212,
base: 59,
units_per_gas: 195,
},
k256: DependentCost::LightOperation {
base: 259,
units_per_gas: 4,
base: 282,
units_per_gas: 3,
},
ldc: DependentCost::LightOperation {
base: 42,
base: 45,
units_per_gas: 65,
},
logd: DependentCost::LightOperation {
base: 413,
units_per_gas: 3,
base: 1134,
units_per_gas: 2,
},
mcl: DependentCost::LightOperation {
base: 2,
units_per_gas: 568,
base: 3,
units_per_gas: 523,
},
mcli: DependentCost::LightOperation {
base: 3,
units_per_gas: 568,
units_per_gas: 526,
},
mcp: DependentCost::LightOperation {
base: 3,
units_per_gas: 470,
units_per_gas: 448,
},
mcpi: DependentCost::LightOperation {
base: 6,
units_per_gas: 682,
base: 7,
units_per_gas: 585,
},
meq: DependentCost::LightOperation {
base: 10,
units_per_gas: 1161,
base: 11,
units_per_gas: 1097,
},
rvrt: 127,
rvrt: 722,
s256: DependentCost::LightOperation {
base: 42,
base: 45,
units_per_gas: 3,
},
scwq: DependentCost::HeavyOperation {
base: 27337,
gas_per_unit: 25552,
base: 30375,
gas_per_unit: 28628,
},
smo: DependentCost::LightOperation {
base: 55851,
base: 64196,
units_per_gas: 1,
},
srwq: DependentCost::HeavyOperation {
base: 501,
gas_per_unit: 22,
base: 579,
gas_per_unit: 24,
},
swwq: DependentCost::HeavyOperation {
base: 25619,
gas_per_unit: 24002,
base: 28484,
gas_per_unit: 26613,
},
contract_root: DependentCost::LightOperation {
base: 43,
units_per_gas: 2,
base: 45,
units_per_gas: 1,
},
state_root: DependentCost::HeavyOperation {
base: 324,
gas_per_unit: 164,
base: 350,
gas_per_unit: 176,
},
new_storage_per_byte: 1,
new_storage_per_byte: 63,
retd: DependentCost::LightOperation {
base: 434,
units_per_gas: 3,
base: 1086,
units_per_gas: 2,
},
}
}
1 change: 1 addition & 0 deletions benches/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub mod default_gas_costs;
pub mod import;

use fuel_core::database::vm_database::VmDatabase;
Expand Down
2 changes: 2 additions & 0 deletions bin/e2e-test-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ When `FUEL_CORE_E2E_CONFIG` is unset a default configuration is used which is su
endpoint = "http://localhost:4000"
wallet_sync_timeout = "10s"
full_test = false
coinbase_contract_id = "7777777777777777777777777777777777777777777777777777777777777777"


[wallet_a]
secret = "de97d8624a438121b86a1956544bd72ed68cd69f2c99555b08b1e8c51ffd511c"
Expand Down
16 changes: 14 additions & 2 deletions bin/e2e-test-client/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
use crate::SYNC_TIMEOUT;
use fuel_core_types::fuel_vm::SecretKey;
use fuel_core_types::{
fuel_tx::ContractId,
fuel_vm::SecretKey,
};
use serde::{
Deserialize,
Serialize,
};
use std::time::Duration;
use std::{
str::FromStr,
time::Duration,
};

#[derive(Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
pub struct SuiteConfig {
Expand All @@ -16,6 +22,8 @@ pub struct SuiteConfig {
pub wallet_sync_timeout: Duration,
/// Enable slower but more stressful tests. Should be used in full E2E tests but not in CI.
pub full_test: bool,
/// The contract id of the coinbase contract.
pub coinbase_contract_id: ContractId,
/// Wallet A must contain pre-existing funds
pub wallet_a: ClientConfig,
pub wallet_b: ClientConfig,
Expand All @@ -33,6 +41,10 @@ impl Default for SuiteConfig {
endpoint: "http://localhost:4000".to_string(),
wallet_sync_timeout: SYNC_TIMEOUT,
full_test: false,
coinbase_contract_id: ContractId::from_str(
"0x7777777777777777777777777777777777777777777777777777777777777777",
)
.unwrap(),
wallet_a: ClientConfig {
endpoint: None,
secret:
Expand Down
9 changes: 9 additions & 0 deletions bin/e2e-test-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ pub fn main_body(config: SuiteConfig, mut args: Arguments) {
})
}),
),
Trial::test(
"can collect fee from alice",
with_cloned(&config, |config| {
async_execute(async {
let ctx = TestContext::new(config).await;
tests::collect_fee::collect_fee(&ctx).await
})
}),
),
Trial::test(
"can execute script and get receipts",
with_cloned(&config, |config| {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ expression: serialized
endpoint = "http://localhost:4000"
wallet_sync_timeout = "10s"
full_test = false
coinbase_contract_id = "7777777777777777777777777777777777777777777777777777777777777777"

[wallet_a]
secret = "de97d8624a438121b86a1956544bd72ed68cd69f2c99555b08b1e8c51ffd511c"
Expand Down
Loading

0 comments on commit 8f6a517

Please sign in to comment.