Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log num txs and state changed in block executed log #4683

Merged
merged 4 commits into from
Sep 7, 2023

Conversation

zhangchiqing
Copy link
Member

No description provided.

@zhangchiqing zhangchiqing marked this pull request as ready for review September 5, 2023 17:47
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

FVM Benchstat comparison

This branch with compared with the base branch onflow:master commit 6c10061

The command (for i in {1..7}; do go test ./fvm ./engine/execution/computation --bench . --tags relic -shuffle=on --benchmem --run ^$; done) was used.

Collapsed results for better readability

old.txtnew.txt
time/opdelta
ComputeBlock/16/cols/128/txes/1/max-concurrency-28.17s ± 0%7.85s ± 0%~(p=1.000 n=1+1)
ComputeBlock/16/cols/128/txes/2/max-concurrency-28.36s ± 0%8.22s ± 0%~(p=1.000 n=1+1)
 
us/txdelta
ComputeBlock/16/cols/128/txes/1/max-concurrency-23.99k ± 0%3.83k ± 0%~(p=1.000 n=1+1)
ComputeBlock/16/cols/128/txes/2/max-concurrency-24.08k ± 0%4.01k ± 0%~(p=1.000 n=1+1)
 
alloc/opdelta
ComputeBlock/16/cols/128/txes/1/max-concurrency-21.64GB ± 0%1.67GB ± 0%~(p=1.000 n=1+1)
ComputeBlock/16/cols/128/txes/2/max-concurrency-21.72GB ± 0%1.70GB ± 0%~(p=1.000 n=1+1)
 
allocs/opdelta
ComputeBlock/16/cols/128/txes/1/max-concurrency-221.9M ± 0%21.9M ± 0%~(p=1.000 n=1+1)
ComputeBlock/16/cols/128/txes/2/max-concurrency-222.6M ± 0%22.6M ± 0%~(p=1.000 n=1+1)
 

@codecov-commenter
Copy link

codecov-commenter commented Sep 5, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (6c10061) 54.89% compared to head (3636ed7) 54.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4683      +/-   ##
==========================================
- Coverage   54.89%   54.88%   -0.01%     
==========================================
  Files         916      916              
  Lines       85421    85429       +8     
==========================================
- Hits        46894    46891       -3     
- Misses      34930    34947      +17     
+ Partials     3597     3591       -6     
Flag Coverage Δ
unittests 54.88% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
engine/execution/ingestion/engine.go 56.07% <100.00%> (+0.44%) ⬆️

... and 8 files with indirect coverage changes

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

@@ -717,6 +719,14 @@ func (e *Engine) executeBlock(

}

func transactionCount(result flow.ExecutionResult) uint64 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this include the system transaction?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does not, so this only report the user transaction (non-system transactions). system transaction is always a fixed single transaction, so I don't think we need to +1.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be called nonSystemTransactionCount then ?

@@ -717,6 +719,14 @@ func (e *Engine) executeBlock(

}

func transactionCount(result flow.ExecutionResult) uint64 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should it be called nonSystemTransactionCount then ?

@zhangchiqing zhangchiqing added this pull request to the merge queue Sep 7, 2023
Merged via the queue into master with commit 74be0fb Sep 7, 2023
66 checks passed
@zhangchiqing zhangchiqing deleted the leo/log-num-txs branch September 7, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants