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

Add trace timecost log for ChainService #18

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

eval-exec
Copy link
Owner

@eval-exec eval-exec commented Nov 2, 2023

no assume:

ubuntu@ckb-0:~/trace_0.110.0_no_assume$ grep time_cost data_dir/data/logs/run.log  | grep "block:1,"
2023-11-02 12:34:24.598 +00:00 ChainService INFO ckb_chain::chain  block:1, time_cost TimeCost { wait_process_block: 133.740144238s, process_block: 0ns, db_commit: 2.314193ms, resolve_block_transactions: 4.187µs, non_contextual_block_verifier: 74.262µs, contextual_block_verifier: 2.097785ms, verify_script: 60.976µs }

ubuntu@ckb-0:~/trace_0.110.0_no_assume$ grep time_cost data_dir/data/logs/run.log  | grep 10000000
2023-11-03 13:02:52.266 +00:00 ChainService INFO ckb_chain::chain  block:10000000, time_cost TimeCost { wait_process_block: 27845.126543862s, process_block: 88227.236892333s, db_commit: 59979.810476131s, resolve_block_transactions: 913.272139826s, non_contextual_block_verifier: 4463.308075922s, contextual_block_verifier: 52972.981170989s, verify_script: 47677.662336674s }

assume:
ubuntu@ckb-1:~/trace_0.110.0_assume$ grep time_cost data_dir/data/logs/run.log  | grep "block:1,"
2023-11-02 14:24:15.581 +00:00 ChainService INFO ckb_chain::chain  block:1, time_cost TimeCost { wait_process_block: 6462.197926647s, process_block: 0ns, db_commit: 214.11569ms, resolve_block_transactions: 9.668024ms, non_contextual_block_verifier: 94.388134ms, contextual_block_verifier: 47.872298ms, verify_script: 3.055024ms }

ubuntu@ckb-1:~/trace_0.110.0_assume$ grep time_cost data_dir/data/logs/run.log  | grep 10000000
2023-11-03 21:01:14.020 +00:00 ChainService INFO ckb_chain::chain  block:10000000, time_cost TimeCost { wait_process_block: 44180.963531719s, process_block: 116667.614114358s, db_commit: 72089.230029289s, resolve_block_transactions: 6328.861791732s, non_contextual_block_verifier: 30462.010335316s, contextual_block_verifier: 38949.41989033s, verify_script: 1546.681209002s }

@eval-exec eval-exec force-pushed the exec/trace-chainservice-timecost branch from fede2f1 to 1dccdf1 Compare November 2, 2023 10:53
@eval-exec eval-exec force-pushed the exec/trace-chainservice-timecost branch from 1dccdf1 to 6696d53 Compare November 2, 2023 11:23
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.

1 participant