test_bloatnet_call_value_new_account()¶
Documentation for tests/benchmark/stateful/bloatnet/test_multi_opcode.py::test_bloatnet_call_value_new_account@892e6d1e.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/benchmark/stateful/bloatnet/test_multi_opcode.py::test_bloatnet_call_value_new_account --gas-benchmark-values 1
Benchmark CALL with value transfer to non-existent accounts.
Generate unique addresses via keccak256(counter) and CALL each with value=1 wei. Since these addresses have no code, the subcall succeeds (via the 2300 gas stipend), transferring value and creating a new account in the trie. Each iteration costs ~36,600 gas: - GAS_COLD_ACCOUNT_ACCESS: 2,600 - CALL_VALUE: 9,000 - NEW_ACCOUNT: 25,000
This stresses trie expansion through massive new account creation.
Source code in tests/benchmark/stateful/bloatnet/test_multi_opcode.py
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 3 forks.