starcoinorg / starcoin

Starcoin - A Move smart contract blockchain network that scales by layering
Apache License 2.0
1.38k stars 289 forks source link

Update the block header to ensure compatibility with future updates #4175

Closed jackzhhuang closed 3 months ago

jackzhhuang commented 3 months ago

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

The block header will remain compatible if more fields are added in the future.

Summary by CodeRabbit

These changes collectively enhance the blockchain's performance, reliability, and overall user experience.

coderabbitai[bot] commented 3 months ago

Walkthrough

The recent updates involve significant changes to blockchain functionality, including the removal of certain test functions, enhancements to block headers with new fields for versioning and pruning, and revisions aimed at deterministic block creation. These changes also optimize verification processes and adjustment of logging for better debugging. Overall, these modifications are intended to streamline operations and improve the reliability and integrity of the system.

Changes

Files Grouped Change Summary
executor/tests/*, network/tests/* Removed outdated tests for FlexiDagConfig; updated block creation to use deterministic methods for reliability.
types/src/block/mod.rs, flexidag/src/blockdag.rs Enhanced BlockHeader with new fields for versioning and pruning; introduced PruningPointManager for improved state management.
vm/vm-runtime/src/starcoin_vm.rs, vm/types/src/block_metadata/mod.rs, vm/types/src/genesis_config.rs Removed the ability to retrieve FlexiDagConfig; modified handling of parents_hash; added new methods for specific ChainId instances.
vm/transaction-builder/src/lib.rs, vm/starcoin-transactional-test-harness/src/lib.rs Updated block creation logic, including hardcoded values for consistent behavior in transaction processing.
vm/starcoin-transactional-test-harness/tests/cases/* Simplified test cases and adjusted initialization commands for greater adaptability.

Sequence Diagram(s)

sequenceDiagram
    participant A as Client
    participant B as Executor
    participant C as Block
    participant D as Config

    A->>B: Request block creation
    B->>D: Check configuration for parameters
    D-->>B: Return parameters (version, pruning)
    B->>C: Create block with parameters
    C-->>B: Return new block
    B->>A: Send block confirmation

🐇 "In the code where changes bloom,
Blocks march forth, dispelling gloom.
Headers pruned, and tests refined,
A rabbit's joy for what's aligned!
From chaos, order starts to grow,
Hopping forth, let's watch it flow!" 🥕


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` - `@coderabbitai help me debug CodeRabbit configuration file.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai full review` to do a full review from scratch and review all the files again. - `@coderabbitai summary` to regenerate the summary of the PR. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configuration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
github-actions[bot] commented 3 months ago

Benchmark for fa0d004

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | accumulator_append | 750.7±83.02µs | 762.9±72.57µs | +1.63% | | block_apply/block_apply_10 | **363.8±14.88ms** | 378.2±7.16ms | **+3.96%** | | block_apply/block_apply_1000 | **38.4±1.09s** | 39.6±1.13s | **+3.13%** | | get_with_proof/db_store | **45.4±1.97µs** | 48.2±8.10µs | **+6.17%** | | get_with_proof/mem_store | 38.0±7.59µs | **36.4±0.95µs** | **-4.21%** | | put_and_commit/db_store/1 | 118.2±16.04µs | **113.8±4.08µs** | **-3.72%** | | put_and_commit/db_store/10 | 1028.5±32.64µs | 1057.8±107.98µs | +2.85% | | put_and_commit/db_store/100 | 9.6±1.02ms | 9.4±0.56ms | -2.08% | | put_and_commit/db_store/5 | 529.8±21.34µs | 525.3±34.32µs | -0.85% | | put_and_commit/db_store/50 | 5.1±0.53ms | 5.0±0.53ms | -1.96% | | put_and_commit/mem_store/1 | 71.1±6.09µs | 72.1±10.21µs | +1.41% | | put_and_commit/mem_store/10 | 671.7±68.34µs | 662.9±54.45µs | -1.31% | | put_and_commit/mem_store/100 | **6.4±0.30ms** | 6.8±0.93ms | **+6.25%** | | put_and_commit/mem_store/5 | 340.5±40.87µs | 334.8±27.59µs | -1.67% | | put_and_commit/mem_store/50 | 3.3±0.28ms | 3.3±0.41ms | 0.00% | | query_block/query_block_in(10)_times(100) | **4.5±0.12ms** | 8.6±0.39ms | **+91.11%** | | query_block/query_block_in(10)_times(1000) | **44.7±0.76ms** | 89.3±3.21ms | **+99.78%** | | query_block/query_block_in(10)_times(10000) | **448.8±17.58ms** | 908.3±68.44ms | **+102.38%** | | query_block/query_block_in(1000)_times(100) | **1160.9±20.12µs** | 1809.8±34.96µs | **+55.90%** | | query_block/query_block_in(1000)_times(1000) | **11.7±0.54ms** | 17.7±0.31ms | **+51.28%** | | query_block/query_block_in(1000)_times(10000) | **116.0±2.59ms** | 179.4±4.79ms | **+54.66%** | | storage_transaction | 1063.3±415.20µs | 1139.6±476.14µs | +7.18% | | vm/transaction_execution/1 | 419.5±14.73ms | 414.2±13.96ms | -1.26% | | vm/transaction_execution/10 | 137.7±15.91ms | 147.4±19.94ms | +7.04% | | vm/transaction_execution/20 | **120.0±2.17ms** | 123.1±3.68ms | **+2.58%** | | vm/transaction_execution/5 | **156.4±5.43ms** | 162.0±6.93ms | **+3.58%** | | vm/transaction_execution/50 | 138.9±5.99ms | 137.5±4.86ms | -1.01% |
github-actions[bot] commented 3 months ago

Benchmark for 393ef6e

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | accumulator_append | 821.9±164.36µs | 887.8±188.56µs | +8.02% | | block_apply/block_apply_10 | 398.3±30.61ms | **374.7±8.47ms** | **-5.93%** | | block_apply/block_apply_1000 | 41.0±1.41s | **40.1±1.08s** | **-2.20%** | | get_with_proof/db_store | 48.1±6.63µs | 47.2±4.86µs | -1.87% | | get_with_proof/mem_store | 38.0±4.38µs | **36.4±0.70µs** | **-4.21%** | | put_and_commit/db_store/1 | 114.9±11.88µs | 125.4±20.35µs | +9.14% | | put_and_commit/db_store/10 | 1028.3±37.89µs | 1027.0±45.73µs | -0.13% | | put_and_commit/db_store/100 | 9.8±0.45ms | 10.1±1.52ms | +3.06% | | put_and_commit/db_store/5 | 638.9±175.63µs | **556.5±47.75µs** | **-12.90%** | | put_and_commit/db_store/50 | **5.0±0.32ms** | 7.0±1.21ms | **+40.00%** | | put_and_commit/mem_store/1 | 71.9±6.30µs | 72.1±6.69µs | +0.28% | | put_and_commit/mem_store/10 | 705.2±110.94µs | 711.6±112.63µs | +0.91% | | put_and_commit/mem_store/100 | 6.6±0.51ms | 7.1±1.43ms | +7.58% | | put_and_commit/mem_store/5 | 340.2±29.98µs | 337.3±27.21µs | -0.85% | | put_and_commit/mem_store/50 | 3.3±0.42ms | 3.6±0.81ms | +9.09% | | query_block/query_block_in(10)_times(100) | **4.5±0.12ms** | 8.7±0.31ms | **+93.33%** | | query_block/query_block_in(10)_times(1000) | **45.5±3.21ms** | 89.9±3.62ms | **+97.58%** | | query_block/query_block_in(10)_times(10000) | **449.4±14.18ms** | 888.1±36.12ms | **+97.62%** | | query_block/query_block_in(1000)_times(100) | **1132.1±10.80µs** | 1763.1±80.09µs | **+55.74%** | | query_block/query_block_in(1000)_times(1000) | **11.5±0.27ms** | 18.1±1.37ms | **+57.39%** | | query_block/query_block_in(1000)_times(10000) | **115.6±1.72ms** | 174.6±3.98ms | **+51.04%** | | storage_transaction | 1243.0±531.70µs | 1154.5±336.41µs | -7.12% | | vm/transaction_execution/1 | 451.9±31.03ms | 435.7±18.66ms | -3.58% | | vm/transaction_execution/10 | 150.3±14.69ms | 144.9±11.85ms | -3.59% | | vm/transaction_execution/20 | **130.0±3.92ms** | 149.2±8.91ms | **+14.77%** | | vm/transaction_execution/5 | 178.2±12.01ms | 183.4±10.51ms | +2.92% | | vm/transaction_execution/50 | 147.2±10.16ms | 151.8±10.92ms | +3.13% |
github-actions[bot] commented 3 months ago

Benchmark for ba243e0

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | accumulator_append | 742.8±80.97µs | 749.0±85.36µs | +0.83% | | block_apply/block_apply_10 | **363.6±3.94ms** | 394.4±77.99ms | **+8.47%** | | block_apply/block_apply_1000 | **38.1±0.56s** | 39.1±0.78s | **+2.62%** | | get_with_proof/db_store | 44.8±0.86µs | 45.4±2.13µs | +1.34% | | get_with_proof/mem_store | 37.1±2.41µs | 37.4±2.89µs | +0.81% | | put_and_commit/db_store/1 | 113.3±9.47µs | 117.4±8.84µs | +3.62% | | put_and_commit/db_store/10 | 1002.1±40.12µs | 997.0±46.17µs | -0.51% | | put_and_commit/db_store/100 | 9.3±0.33ms | 9.4±0.66ms | +1.08% | | put_and_commit/db_store/5 | 517.0±38.80µs | 519.8±53.32µs | +0.54% | | put_and_commit/db_store/50 | 4.6±0.23ms | 4.8±0.22ms | +4.35% | | put_and_commit/mem_store/1 | 70.3±6.22µs | 70.9±6.11µs | +0.85% | | put_and_commit/mem_store/10 | 664.6±48.60µs | 669.0±52.60µs | +0.66% | | put_and_commit/mem_store/100 | 6.4±0.31ms | 6.4±0.30ms | 0.00% | | put_and_commit/mem_store/5 | 337.0±28.21µs | 338.2±27.15µs | +0.36% | | put_and_commit/mem_store/50 | 3.2±0.14ms | 3.2±0.15ms | 0.00% | | query_block/query_block_in(10)_times(100) | **4.5±0.17ms** | 8.8±0.19ms | **+95.56%** | | query_block/query_block_in(10)_times(1000) | **45.2±1.60ms** | 91.3±8.57ms | **+101.99%** | | query_block/query_block_in(10)_times(10000) | **458.1±10.88ms** | 900.7±50.67ms | **+96.62%** | | query_block/query_block_in(1000)_times(100) | **1147.5±8.57µs** | 1707.8±24.33µs | **+48.83%** | | query_block/query_block_in(1000)_times(1000) | **12.3±1.94ms** | 17.3±0.41ms | **+40.65%** | | query_block/query_block_in(1000)_times(10000) | **117.5±3.67ms** | 176.0±7.06ms | **+49.79%** | | storage_transaction | 1082.2±406.59µs | 1112.6±416.24µs | +2.81% | | vm/transaction_execution/1 | 425.8±27.37ms | 422.9±28.02ms | -0.68% | | vm/transaction_execution/10 | 132.9±7.01ms | 131.5±6.18ms | -1.05% | | vm/transaction_execution/20 | 120.0±7.55ms | 118.9±5.36ms | -0.92% | | vm/transaction_execution/5 | 160.4±4.26ms | 162.2±5.78ms | +1.12% | | vm/transaction_execution/50 | 143.5±12.01ms | 139.0±6.95ms | -3.14% |
github-actions[bot] commented 3 months ago

Benchmark for 053f15e

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | accumulator_append | 793.3±118.64µs | 745.0±67.26µs | -6.09% | | block_apply/block_apply_10 | **368.8±10.58ms** | 392.6±40.71ms | **+6.45%** | | block_apply/block_apply_1000 | 39.2±0.68s | **39.1±1.43s** | **-0.26%** | | get_with_proof/db_store | 62.6±20.37µs | **45.0±1.09µs** | **-28.12%** | | get_with_proof/mem_store | 38.1±4.63µs | 37.4±4.83µs | -1.84% | | put_and_commit/db_store/1 | 115.7±3.61µs | 114.9±4.49µs | -0.69% | | put_and_commit/db_store/10 | 1062.6±81.65µs | 1035.1±89.69µs | -2.59% | | put_and_commit/db_store/100 | 9.7±0.38ms | 9.6±0.54ms | -1.03% | | put_and_commit/db_store/5 | 570.1±59.02µs | **530.9±33.84µs** | **-6.88%** | | put_and_commit/db_store/50 | 5.3±0.67ms | 5.0±0.45ms | -5.66% | | put_and_commit/mem_store/1 | 71.6±7.02µs | 71.1±7.00µs | -0.70% | | put_and_commit/mem_store/10 | 669.9±50.36µs | 681.1±101.47µs | +1.67% | | put_and_commit/mem_store/100 | 6.9±0.99ms | **6.5±0.33ms** | **-5.80%** | | put_and_commit/mem_store/5 | 342.4±28.73µs | 338.0±27.56µs | -1.29% | | put_and_commit/mem_store/50 | 3.3±0.49ms | 3.2±0.16ms | -3.03% | | query_block/query_block_in(10)_times(100) | **4.6±0.25ms** | 8.9±0.42ms | **+93.48%** | | query_block/query_block_in(10)_times(1000) | **45.8±3.82ms** | 87.0±2.67ms | **+89.96%** | | query_block/query_block_in(10)_times(10000) | **452.3±14.07ms** | 879.0±15.57ms | **+94.34%** | | query_block/query_block_in(1000)_times(100) | **1108.2±17.06µs** | 1751.9±24.43µs | **+58.09%** | | query_block/query_block_in(1000)_times(1000) | **11.1±0.32ms** | 17.5±0.33ms | **+57.66%** | | query_block/query_block_in(1000)_times(10000) | **113.8±4.18ms** | 175.6±3.72ms | **+54.31%** | | storage_transaction | 1145.2±553.30µs | 1090.7±467.13µs | -4.76% | | vm/transaction_execution/1 | 428.2±15.56ms | 419.4±17.17ms | -2.06% | | vm/transaction_execution/10 | 161.2±22.14ms | **142.3±12.82ms** | **-11.72%** | | vm/transaction_execution/20 | 138.1±12.70ms | **120.0±4.46ms** | **-13.11%** | | vm/transaction_execution/5 | 169.1±12.48ms | 163.3±7.87ms | -3.43% | | vm/transaction_execution/50 | 158.2±14.97ms | 148.1±14.87ms | -6.38% |
github-actions[bot] commented 3 months ago

Benchmark for 37a89c4

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | accumulator_append | 783.8±106.07µs | 779.6±113.45µs | -0.54% | | block_apply/block_apply_10 | 370.5±6.37ms | 375.8±11.28ms | +1.43% | | block_apply/block_apply_1000 | 39.2±1.69s | **38.8±1.04s** | **-1.02%** | | get_with_proof/db_store | 47.2±4.17µs | 48.8±9.47µs | +3.39% | | get_with_proof/mem_store | 39.7±6.47µs | 37.4±2.88µs | -5.79% | | put_and_commit/db_store/1 | 117.2±4.64µs | 117.0±8.35µs | -0.17% | | put_and_commit/db_store/10 | 1048.6±128.31µs | 1087.7±150.97µs | +3.73% | | put_and_commit/db_store/100 | **9.5±0.39ms** | 11.1±3.13ms | **+16.84%** | | put_and_commit/db_store/5 | 535.9±19.38µs | 530.1±26.07µs | -1.08% | | put_and_commit/db_store/50 | 4.9±0.38ms | 4.8±0.19ms | -2.04% | | put_and_commit/mem_store/1 | 72.5±6.91µs | 70.9±6.04µs | -2.21% | | put_and_commit/mem_store/10 | 679.5±79.95µs | 662.6±48.82µs | -2.49% | | put_and_commit/mem_store/100 | 7.2±1.40ms | **6.5±0.34ms** | **-9.72%** | | put_and_commit/mem_store/5 | 339.4±30.82µs | 339.8±33.91µs | +0.12% | | put_and_commit/mem_store/50 | 3.3±0.36ms | 3.2±0.25ms | -3.03% | | query_block/query_block_in(10)_times(100) | **4.5±0.07ms** | 9.5±1.18ms | **+111.11%** | | query_block/query_block_in(10)_times(1000) | **46.7±3.62ms** | 87.6±3.05ms | **+87.58%** | | query_block/query_block_in(10)_times(10000) | **452.2±11.46ms** | 899.6±39.52ms | **+98.94%** | | query_block/query_block_in(1000)_times(100) | **1134.2±45.85µs** | 1712.2±52.44µs | **+50.96%** | | query_block/query_block_in(1000)_times(1000) | **11.2±0.33ms** | 17.0±0.18ms | **+51.79%** | | query_block/query_block_in(1000)_times(10000) | **109.8±3.01ms** | 172.9±1.89ms | **+57.47%** | | storage_transaction | 1140.1±474.70µs | 1137.6±442.44µs | -0.22% | | vm/transaction_execution/1 | 423.0±13.09ms | 434.1±21.54ms | +2.62% | | vm/transaction_execution/10 | 136.7±6.66ms | 133.5±9.15ms | -2.34% | | vm/transaction_execution/20 | 137.2±10.74ms | **126.6±6.77ms** | **-7.73%** | | vm/transaction_execution/5 | 168.0±10.80ms | 164.1±8.61ms | -2.32% | | vm/transaction_execution/50 | 159.0±21.34ms | 146.2±13.68ms | -8.05% |
github-actions[bot] commented 3 months ago

Benchmark for 291802e

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | accumulator_append | 760.9±66.35µs | 750.0±59.06µs | -1.43% | | block_apply/block_apply_10 | 367.0±8.21ms | 372.6±8.03ms | +1.53% | | block_apply/block_apply_1000 | **39.2±0.96s** | 39.3±0.96s | **+0.26%** | | get_with_proof/db_store | 45.6±1.61µs | 45.4±0.93µs | -0.44% | | get_with_proof/mem_store | 41.6±8.75µs | 38.8±3.36µs | -6.73% | | put_and_commit/db_store/1 | 120.6±5.87µs | 119.4±7.51µs | -1.00% | | put_and_commit/db_store/10 | 1140.0±171.62µs | **1027.2±33.56µs** | **-9.89%** | | put_and_commit/db_store/100 | 9.6±0.53ms | 9.8±0.51ms | +2.08% | | put_and_commit/db_store/5 | 559.0±30.71µs | **532.0±22.37µs** | **-4.83%** | | put_and_commit/db_store/50 | 5.0±0.35ms | 4.9±0.28ms | -2.00% | | put_and_commit/mem_store/1 | 72.8±7.02µs | 73.4±6.48µs | +0.82% | | put_and_commit/mem_store/10 | 693.3±64.80µs | 700.5±51.82µs | +1.04% | | put_and_commit/mem_store/100 | **6.7±0.37ms** | 8.3±2.42ms | **+23.88%** | | put_and_commit/mem_store/5 | 345.1±34.72µs | 338.4±27.64µs | -1.94% | | put_and_commit/mem_store/50 | 3.3±0.16ms | 3.3±0.34ms | 0.00% | | query_block/query_block_in(10)_times(100) | **4.6±0.34ms** | 8.8±0.24ms | **+91.30%** | | query_block/query_block_in(10)_times(1000) | **45.4±1.39ms** | 85.4±2.45ms | **+88.11%** | | query_block/query_block_in(10)_times(10000) | **453.9±16.12ms** | 929.4±44.13ms | **+104.76%** | | query_block/query_block_in(1000)_times(100) | **1183.7±67.48µs** | 1778.6±44.72µs | **+50.26%** | | query_block/query_block_in(1000)_times(1000) | **12.0±0.59ms** | 20.1±6.27ms | **+67.50%** | | query_block/query_block_in(1000)_times(10000) | **116.0±1.69ms** | 183.6±14.23ms | **+58.28%** | | storage_transaction | 1118.5±425.82µs | 1097.5±428.18µs | -1.88% | | vm/transaction_execution/1 | **407.3±5.13ms** | 413.1±7.25ms | **+1.42%** | | vm/transaction_execution/10 | 129.8±2.98ms | 132.1±4.63ms | +1.77% | | vm/transaction_execution/20 | 128.3±10.07ms | 127.4±5.16ms | -0.70% | | vm/transaction_execution/5 | **157.3±1.52ms** | 160.1±2.99ms | **+1.78%** | | vm/transaction_execution/50 | **139.0±2.67ms** | 148.4±11.67ms | **+6.76%** |
github-actions[bot] commented 3 months ago

Benchmark for 0f0949b

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | accumulator_append | 746.2±49.11µs | 761.2±84.79µs | +2.01% | | block_apply/block_apply_10 | 377.9±12.04ms | **367.0±7.90ms** | **-2.88%** | | block_apply/block_apply_1000 | 39.7±1.13s | **39.6±0.92s** | **-0.25%** | | get_with_proof/db_store | 45.1±1.20µs | 46.0±2.47µs | +2.00% | | get_with_proof/mem_store | 37.1±1.32µs | 38.0±3.55µs | +2.43% | | put_and_commit/db_store/1 | 117.2±4.79µs | 119.4±5.71µs | +1.88% | | put_and_commit/db_store/10 | 1082.9±99.23µs | **1017.2±64.04µs** | **-6.07%** | | put_and_commit/db_store/100 | **9.3±0.49ms** | 10.0±0.42ms | **+7.53%** | | put_and_commit/db_store/5 | 529.2±52.54µs | 521.3±29.41µs | -1.49% | | put_and_commit/db_store/50 | **4.8±0.18ms** | 5.1±0.22ms | **+6.25%** | | put_and_commit/mem_store/1 | 72.7±6.62µs | 72.9±6.82µs | +0.28% | | put_and_commit/mem_store/10 | 779.8±249.62µs | **677.8±52.94µs** | **-13.08%** | | put_and_commit/mem_store/100 | 6.7±0.73ms | 6.6±0.55ms | -1.49% | | put_and_commit/mem_store/5 | 357.8±48.97µs | 339.9±28.19µs | -5.00% | | put_and_commit/mem_store/50 | 3.3±0.14ms | 3.3±0.17ms | 0.00% | | query_block/query_block_in(10)_times(100) | **4.5±0.13ms** | 9.0±0.59ms | **+100.00%** | | query_block/query_block_in(10)_times(1000) | **44.5±0.76ms** | 88.4±1.90ms | **+98.65%** | | query_block/query_block_in(10)_times(10000) | **452.3±19.12ms** | 888.8±22.67ms | **+96.51%** | | query_block/query_block_in(1000)_times(100) | **1089.2±9.47µs** | 1722.6±23.64µs | **+58.15%** | | query_block/query_block_in(1000)_times(1000) | **11.1±0.22ms** | 17.3±0.41ms | **+55.86%** | | query_block/query_block_in(1000)_times(10000) | **109.0±1.73ms** | 170.9±1.54ms | **+56.79%** | | storage_transaction | 1094.5±438.70µs | 1008.8±383.92µs | -7.83% | | vm/transaction_execution/1 | 416.6±8.92ms | 414.7±16.23ms | -0.46% | | vm/transaction_execution/10 | 130.9±3.76ms | 129.8±3.50ms | -0.84% | | vm/transaction_execution/20 | **117.7±3.13ms** | 126.1±5.62ms | **+7.14%** | | vm/transaction_execution/5 | 160.1±6.15ms | 164.0±7.01ms | +2.44% | | vm/transaction_execution/50 | 141.2±6.06ms | 139.9±6.00ms | -0.92% |