nimbus-eth2/tests/official
Jacek Sieka dcf8a6b05d
improve slot processing speeds (#1670)
about 40% better slot processing times (with LTO enabled) - these don't
do BLS but are used
heavily during replay (state transition = slot + block transition)

tests using a recent medalla state and advancing it 1000 slots:

```
./ncli slots --preState2:state-302271-3c1dbf19-c1f944bf.ssz --slot:1000
--postState2:xx.ssz
```
pre:

```

All time are ms
Average,       StdDev,          Min,          Max,      Samples,
Test
Validation is turned off meaning that no BLS operations are performed
39.236,        0.000,       39.236,       39.236,            1,
Load state from file
0.049,        0.002,        0.046,        0.063,          968,
Apply slot
256.504,       81.008,      213.471,      591.902,           32,
Apply epoch slot
28.597,        0.000,       28.597,       28.597,            1,
Save state to file
```

cast:
```
All time are ms
Average,       StdDev,          Min,          Max,      Samples,
Test
Validation is turned off meaning that no BLS operations are performed
37.079,        0.000,       37.079,       37.079,            1,
Load state from file
0.042,        0.002,        0.040,        0.090,          968,
Apply slot
215.552,       68.763,      180.155,      500.103,           32,
Apply epoch slot
25.106,        0.000,       25.106,       25.106,            1,
Save state to file
```

cast+rewards:
```
All time are ms
Average,       StdDev,          Min,          Max,      Samples,
Test
Validation is turned off meaning that no BLS operations are performed
40.049,        0.000,       40.049,       40.049,            1,
Load state from file
0.048,        0.001,        0.045,        0.060,          968,
Apply slot
164.981,       76.273,      142.099,      477.868,           32,
Apply epoch slot
28.498,        0.000,       28.498,       28.498,            1,
Save state to file
```

cast+rewards+shr
```
All time are ms
Average,       StdDev,          Min,          Max,      Samples,
Test
Validation is turned off meaning that no BLS operations are performed
12.898,        0.000,       12.898,       12.898,            1,
Load state from file
0.039,        0.002,        0.038,        0.054,          968,
Apply slot
139.971,       68.797,      120.088,      428.844,           32,
Apply epoch slot
24.761,        0.000,       24.761,       24.761,            1,
Save state to file

```
2020-09-16 20:59:33 +00:00
..
all_fixtures_require_ssz.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
fixtures_utils.nim speed up shuffling 2020-08-21 16:05:10 +03:00
test_fixture_bls.nim Generate markdown test reports 2020-03-13 14:38:59 +00:00
test_fixture_const_sanity_check.nim skip hotfixed DEPOSIT_CHAIN_ID/DEPOSIT_NETWORK_ID const checks (#1434) 2020-08-04 15:53:39 +00:00
test_fixture_operations_attestations.nim restore EpochRef and flush statecaches on epoch transitions (#1312) 2020-07-15 12:44:18 +02:00
test_fixture_operations_attester_slashings.nim restore EpochRef and flush statecaches on epoch transitions (#1312) 2020-07-15 12:44:18 +02:00
test_fixture_operations_block_header.nim Bump nim-blscurve (#1491) 2020-08-15 19:33:58 +02:00
test_fixture_operations_deposits.nim Merge devel and resolve the conflicts 2020-07-08 15:36:03 +03:00
test_fixture_operations_proposer_slashings.nim restore EpochRef and flush statecaches on epoch transitions (#1312) 2020-07-15 12:44:18 +02:00
test_fixture_operations_voluntary_exit.nim use cache in process_voluntary_exit() (#1507) 2020-08-14 12:42:59 +00:00
test_fixture_rewards.nim improve slot processing speeds (#1670) 2020-09-16 20:59:33 +00:00
test_fixture_sanity_blocks.nim add EF finality tests (#1515) 2020-08-17 07:19:48 +00:00
test_fixture_sanity_slots.nim stop discarding future epochs; remove a StateCache() construction (#1610) 2020-09-07 15:04:33 +00:00
test_fixture_ssz_consensus_objects.nim cache block hash (#1329) 2020-07-16 15:16:51 +02:00
test_fixture_ssz_consensus_objects.nim.cfg Ssz fixes (#566) 2019-11-19 12:04:51 +01:00
test_fixture_ssz_generic_types.nim reorder ssz (#1099) 2020-06-03 15:52:02 +02:00
test_fixture_state_transition_epoch.nim fix get_unslashed_attesting_indices() and add official EF rewards tests for it (#1514) 2020-08-17 01:09:27 +00:00