Skip to content

Conversation

hinto-janai
Copy link
Contributor

What

Adds Criterion benchmarks for cuprate-rpc-types in benches/criterion/cuprate-rpc-types.

Requires #196.

@github-actions github-actions bot added A-dependency Area: Related to dependencies, or changes to a Cargo.{toml,lock} file. A-workspace Area: Changes to a root workspace file or general repo file. A-docs Area: Related to documentation. A-benches Area: Related to benchmarks. A-books Area: Related to Cuprate's books. A-book-architecture Area: Related to the Architecture book. labels Oct 26, 2024
@hinto-janai
Copy link
Contributor Author

Initial results.

benchmark average time per call
epee_from_bytes_get_blocks_request 86.675 ns
epee_to_bytes_get_blocks_request 108.94 ns
serde_from_str_tx_entry 928.48 ns
serde_to_string_tx_entry 190.51 ns
serde_from_str_get_last_block_header_response 651.84 ns
serde_to_string_get_last_block_header_response 507.25 ns
serde_from_str_calc_pow_request 183.96 ns
serde_to_string_calc_pow_request 60.611 ns
serde_from_str_sync_info_response 1.5147 µs
serde_to_string_sync_info_response 180.23 ns
serde_from_str_get_info_response 997.70 ns
serde_to_string_get_info_response 843.08 ns
serde_from_str_get_block_response 1.7308 µs
serde_to_string_get_block_response 576.69 ns
serde_from_str_get_connections_response 1.0853 µs
serde_to_string_get_connections_response 46.413 ns
serde_from_str_get_block_template_response 469.21 ns
serde_to_string_get_block_template_response 267.68 ns
serde_from_str_get_block_headers_range_response 1.1637 µs
serde_to_string_get_block_headers_range_response 74.125 ns

@hinto-janai hinto-janai mentioned this pull request Oct 26, 2024
28 tasks
@hinto-janai
Copy link
Contributor Author

See #354.

@hinto-janai hinto-janai closed this Dec 3, 2024
@hinto-janai hinto-janai deleted the rpc-types-benches branch December 4, 2024 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-benches Area: Related to benchmarks. A-book-architecture Area: Related to the Architecture book. A-books Area: Related to Cuprate's books. A-dependency Area: Related to dependencies, or changes to a Cargo.{toml,lock} file. A-docs Area: Related to documentation. A-workspace Area: Changes to a root workspace file or general repo file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant