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

Print key sizes in disk_caching_stats #16437

Open
wants to merge 1 commit into
base: compatible
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions src/app/disk_caching_stats/disk_caching_stats.ml
Original file line number Diff line number Diff line change
Expand Up @@ -619,15 +619,7 @@ let serial_bench (type a) ~(name : string)

let compute_ram_usage ~config (sizes : size_params) =
let format_gb size = Int.to_float size /. (1024.0 **. 3.0) in
(*
let format_kb size = (Int.to_float size /. 1024.0) in
Printf.printf "verification key = %fKB, side_loaded_proof = %fKB, account update = %fKB\n, command = %fKB, %d\n"
(format_kb Sizes.verification_key)
(format_kb Sizes.side_loaded_proof)
(format_kb Sizes.zkapp_account_update)
(format_kb Sizes.zkapp_command)
Params.max_zkapp_txn_account_updates ;
*)

(* this baseline measurement was taken from a fresh daemon, and serves to show the general overhead a daemon has before bootstrapping *)
let baseline =
let prover = Int.of_float (1.04 *. 1024.0 *. 1024.0 *. 1024.0) in
Expand Down Expand Up @@ -744,6 +736,15 @@ let () =

let vk = vk
end) in
let format_kb size = Int.to_float size /. 1024.0 in

Printf.printf
"verification key = %fKB, side_loaded_proof = %fKB, command = %fKB, %d\n"
(format_kb Sizes.verification_key)
(format_kb Sizes.side_loaded_proof)
(format_kb Sizes.zkapp_command)
Params.max_zkapp_txn_account_updates ;

let module Values = Sizes.Values in
print_header "PRE FIX SIZES" ;
Printf.printf !"%{sexp: size_params}\n" Sizes.pre_fix ;
Expand Down