-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Parse and expand authority public keys once and reuse (#121)
* Parse and expand authority public keys once and reuse * Key derivation in single place + add TODO validation issue Co-authored-by: George Danezis <[email protected]>
- Loading branch information
Showing
6 changed files
with
49 additions
and
38 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
5a482af
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bench results
�[0m�[1m�[33mwarning�[0m�[0m�[1m: unused variable:
num_immutable_objects
�[0m�[0m �[0m�[0m�[1m�[38;5;12m--> �[0m�[0mfastx_programmability/adapter/src/adapter.rs:370:13�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m370�[0m�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m let mut num_immutable_objects = 0;�[0m
�[0m �[0m�[0m�[1m�[38;5;12m| �[0m�[0m �[0m�[0m�[1m�[33m^^^^^^^^^^^^^^^^^^^^^�[0m�[0m �[0m�[0m�[1m�[33mhelp: if this is intentional, prefix it with an underscore:
_num_immutable_objects
�[0m�[0m �[0m�[0m�[1m�[38;5;12m= �[0m�[0m�[1mnote�[0m�[0m:
#[warn(unused_variables)]
on by default�[0m�[0m�[0m�[1m�[33mwarning�[0m�[1m:�[0m
fastx-adapter
(lib) generated 1 warning�[0m�[0m�[1m�[32m Finished�[0m release [optimized + debuginfo] target(s) in 3.62s
�[0m�[0m�[1m�[32m Running�[0m
target/release/bench
[2022-01-05T15:56:19Z INFO bench] Starting benchmark: OrdersAndCerts
[2022-01-05T15:56:19Z INFO bench] Preparing accounts.
[2022-01-05T15:56:21Z INFO bench] Preparing transactions.
[2022-01-05T15:56:29Z INFO fastpay::network] Listening to Tcp traffic on 127.0.0.1:9555
[2022-01-05T15:56:30Z INFO bench] Set max_in_flight to 500
[2022-01-05T15:56:30Z INFO bench] Sending requests.
[2022-01-05T15:56:30Z INFO fastpay::network] Sending Tcp requests to 127.0.0.1:9555
[2022-01-05T15:56:30Z INFO fastpay::network] 127.0.0.1:9555 has processed 5000 packets
[2022-01-05T15:56:31Z INFO fastpay::network] In flight 500 Remaining 35000
[2022-01-05T15:56:31Z INFO fastpay::network] 127.0.0.1:9555 has processed 10000 packets
[2022-01-05T15:56:32Z INFO fastpay::network] 127.0.0.1:9555 has processed 15000 packets
[2022-01-05T15:56:33Z INFO fastpay::network] In flight 500 Remaining 30000
[2022-01-05T15:56:33Z INFO fastpay::network] 127.0.0.1:9555 has processed 20000 packets
[2022-01-05T15:56:34Z INFO fastpay::network] 127.0.0.1:9555 has processed 25000 packets
[2022-01-05T15:56:34Z INFO fastpay::network] In flight 500 Remaining 25000
[2022-01-05T15:56:35Z INFO fastpay::network] 127.0.0.1:9555 has processed 30000 packets
[2022-01-05T15:56:35Z INFO fastpay::network] In flight 500 Remaining 25000
[2022-01-05T15:56:35Z INFO fastpay::network] 127.0.0.1:9555 has processed 35000 packets
[2022-01-05T15:56:36Z INFO fastpay::network] In flight 500 Remaining 20000
[2022-01-05T15:56:36Z INFO fastpay::network] 127.0.0.1:9555 has processed 40000 packets
[2022-01-05T15:56:37Z INFO fastpay::network] 127.0.0.1:9555 has processed 45000 packets
[2022-01-05T15:56:38Z INFO fastpay::network] In flight 500 Remaining 15000
[2022-01-05T15:56:38Z INFO fastpay::network] 127.0.0.1:9555 has processed 50000 packets
[2022-01-05T15:56:39Z INFO fastpay::network] 127.0.0.1:9555 has processed 55000 packets
[2022-01-05T15:56:39Z INFO fastpay::network] In flight 500 Remaining 10000
[2022-01-05T15:56:40Z INFO fastpay::network] 127.0.0.1:9555 has processed 60000 packets
[2022-01-05T15:56:40Z INFO fastpay::network] In flight 500 Remaining 10000
[2022-01-05T15:56:40Z INFO fastpay::network] 127.0.0.1:9555 has processed 65000 packets
[2022-01-05T15:56:41Z INFO fastpay::network] In flight 500 Remaining 5000
[2022-01-05T15:56:41Z INFO fastpay::network] 127.0.0.1:9555 has processed 70000 packets
[2022-01-05T15:56:42Z INFO fastpay::network] 127.0.0.1:9555 has processed 75000 packets
[2022-01-05T15:56:42Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-05T15:56:43Z INFO fastpay::network] 127.0.0.1:9555 has processed 80000 packets
[2022-01-05T15:56:43Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2022-01-05T15:56:43Z INFO bench] Received 80000 responses.
[2022-01-05T15:56:43Z WARN bench] Completed benchmark for OrdersAndCerts
Total time: 13126270us, items: 40000, tx/sec: 3047.3241827266997