-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(avm): more stats and codegen cleanup (#7475)
* Add trace size stats and proof sections time tracking * Use `bb:constexpr_for` instead of custom template that did the same Example public transfer ``` bytecode size: 31218 calldata size: 6 public_inputs size: 481 hints.storage_value_hints size: 2 hints.note_hash_exists_hints size: 0 hints.nullifier_exists_hints size: 1 hints.l1_to_l2_message_exists_hints size: 0 hints.externalcall_hints size: 0 hints.contract_instance_hints size: 0 using cached crs of size 8388609 at "/mnt/user-data/facundo/.bb-crs/bn254_g1.dat" Deserialized 2524 instructions ------- GENERATING TRACE ------- Trace sizes before padding: main_trace_size: 1638 mem_trace_size: 3880 alu_trace_size: 811 range_check_size: 65536 conv_trace_size: 1 lookup_table_size: 0 sha256_trace_size: 0 poseidon2_trace_size: 0 pedersen_trace_size: 4 gas_trace_size: 1620 fixed_gas_table_size: 65 slice_trace_size: 7 Final trace size: 65537 ------- PROVING EXECUTION ------- proof written to: "/mnt/user-data/facundo/tmp-8Q3xgk/proof" vk written to: "/mnt/user-data/facundo/tmp-8Q3xgk/vk" vk as fields written to: "/mnt/user-data/facundo/tmp-8Q3xgk/vk_fields.json" ------- STATS ------- incl_main_tag_err_ms: 78 incl_mem_tag_err_ms: 79 kernel_output_lookup_ms: 79 lookup_byte_lengths_ms: 75 lookup_byte_operations_ms: 81 lookup_cd_value_ms: 77 lookup_div_u16_0_ms: 100 lookup_div_u16_1_ms: 98 lookup_div_u16_2_ms: 99 lookup_div_u16_3_ms: 97 lookup_div_u16_4_ms: 99 lookup_div_u16_5_ms: 103 lookup_div_u16_6_ms: 97 lookup_div_u16_7_ms: 97 lookup_into_kernel_ms: 83 lookup_mem_rng_chk_hi_ms: 79 lookup_mem_rng_chk_lo_ms: 95 lookup_mem_rng_chk_mid_ms: 108 lookup_opcode_gas_ms: 78 lookup_pow_2_0_ms: 84 lookup_pow_2_1_ms: 79 lookup_ret_value_ms: 82 lookup_u16_0_ms: 107 lookup_u16_10_ms: 107 lookup_u16_11_ms: 96 lookup_u16_12_ms: 96 lookup_u16_13_ms: 97 lookup_u16_14_ms: 103 lookup_u16_1_ms: 95 lookup_u16_2_ms: 96 lookup_u16_3_ms: 97 lookup_u16_4_ms: 98 lookup_u16_5_ms: 111 lookup_u16_6_ms: 99 lookup_u16_7_ms: 97 lookup_u16_8_ms: 97 lookup_u16_9_ms: 96 lookup_u8_0_ms: 79 lookup_u8_1_ms: 77 perm_main_alu_ms: 82 perm_main_bin_ms: 76 perm_main_conv_ms: 75 perm_main_mem_a_ms: 80 perm_main_mem_b_ms: 77 perm_main_mem_c_ms: 75 perm_main_mem_d_ms: 77 perm_main_mem_ind_addr_a_ms: 76 perm_main_mem_ind_addr_b_ms: 77 perm_main_mem_ind_addr_c_ms: 74 perm_main_mem_ind_addr_d_ms: 76 perm_main_pedersen_ms: 75 perm_main_pos2_perm_ms: 79 perm_main_slice_ms: 74 perm_slice_mem_ms: 80 prove/check_circuit: 5120 prove/execute_log_derivative_inverse_commitments_round_ms: 532 prove/execute_log_derivative_inverse_round_ms: 5199 prove/execute_pcs_rounds_ms: 413 prove/execute_relation_check_rounds_ms: 1328 prove/execute_wire_commitments_round_ms: 1742 prove/gen_trace: 850 range_check_da_gas_hi_ms: 98 range_check_da_gas_lo_ms: 103 range_check_l2_gas_hi_ms: 100 range_check_l2_gas_lo_ms: 98 ```
- Loading branch information
Showing
8 changed files
with
74 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters