-
Notifications
You must be signed in to change notification settings - Fork 11.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fastx dist sys] Add DBMap / DBBatch based storage; remove broken sha…
…ring; move to more async. (#86) * Add DB store * Make handle_order async + fix tests * Make handle_confirmation_order async + fix tests * Make objects derive serialize / deserialize * Pass a database path in the config * Removed all sharding logic * Added a .parent() method to authority * MassClient uses multiple TCP connections * Added persistence test * Fix packet counters using atomics * Remove locks when not needed, and add criticial region lock * use number of CPUs in bench
- Loading branch information
Showing
18 changed files
with
1,001 additions
and
880 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
Oops, something went wrong.
1a9bdf4
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:377:13�[0m
�[0m �[0m�[0m�[1m�[38;5;12m|�[0m
�[0m�[1m�[38;5;12m377�[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 1.82s
�[0m�[0m�[1m�[32m Running�[0m
target/release/bench
[2021-12-30T20:38:01Z INFO bench] Preparing accounts.
[2021-12-30T20:38:03Z INFO bench] Preparing transactions.
[2021-12-30T20:38:11Z INFO fastpay::network] Listening to Tcp traffic on 127.0.0.1:9555
[2021-12-30T20:38:12Z INFO bench] Set max_in_flight to 500
[2021-12-30T20:38:12Z INFO bench] Sending requests.
[2021-12-30T20:38:12Z INFO fastpay::network] Sending Tcp requests to 127.0.0.1:9555
[2021-12-30T20:38:13Z INFO fastpay::network] 127.0.0.1:9555 has processed 5000 packets
[2021-12-30T20:38:14Z INFO fastpay::network] In flight 500 Remaining 35000
[2021-12-30T20:38:14Z INFO fastpay::network] 127.0.0.1:9555 has processed 10000 packets
[2021-12-30T20:38:15Z INFO fastpay::network] 127.0.0.1:9555 has processed 15000 packets
[2021-12-30T20:38:15Z INFO fastpay::network] In flight 500 Remaining 30000
[2021-12-30T20:38:16Z INFO fastpay::network] 127.0.0.1:9555 has processed 20000 packets
[2021-12-30T20:38:16Z INFO fastpay::network] In flight 500 Remaining 30000
[2021-12-30T20:38:17Z INFO fastpay::network] 127.0.0.1:9555 has processed 25000 packets
[2021-12-30T20:38:17Z INFO fastpay::network] In flight 500 Remaining 25000
[2021-12-30T20:38:17Z INFO fastpay::network] 127.0.0.1:9555 has processed 30000 packets
[2021-12-30T20:38:18Z INFO fastpay::network] In flight 500 Remaining 25000
[2021-12-30T20:38:18Z INFO fastpay::network] 127.0.0.1:9555 has processed 35000 packets
[2021-12-30T20:38:19Z INFO fastpay::network] In flight 500 Remaining 20000
[2021-12-30T20:38:19Z INFO fastpay::network] 127.0.0.1:9555 has processed 40000 packets
[2021-12-30T20:38:20Z INFO fastpay::network] In flight 500 Remaining 20000
[2021-12-30T20:38:20Z INFO fastpay::network] 127.0.0.1:9555 has processed 45000 packets
[2021-12-30T20:38:20Z INFO fastpay::network] In flight 500 Remaining 15000
[2021-12-30T20:38:21Z INFO fastpay::network] 127.0.0.1:9555 has processed 50000 packets
[2021-12-30T20:38:21Z INFO fastpay::network] In flight 500 Remaining 15000
[2021-12-30T20:38:21Z INFO fastpay::network] 127.0.0.1:9555 has processed 55000 packets
[2021-12-30T20:38:21Z INFO fastpay::network] In flight 500 Remaining 10000
[2021-12-30T20:38:22Z INFO fastpay::network] 127.0.0.1:9555 has processed 60000 packets
[2021-12-30T20:38:22Z INFO fastpay::network] In flight 500 Remaining 10000
[2021-12-30T20:38:22Z INFO fastpay::network] 127.0.0.1:9555 has processed 65000 packets
[2021-12-30T20:38:23Z INFO fastpay::network] In flight 500 Remaining 5000
[2021-12-30T20:38:23Z INFO fastpay::network] 127.0.0.1:9555 has processed 70000 packets
[2021-12-30T20:38:24Z INFO fastpay::network] 127.0.0.1:9555 has processed 75000 packets
[2021-12-30T20:38:24Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2021-12-30T20:38:25Z INFO fastpay::network] 127.0.0.1:9555 has processed 80000 packets
[2021-12-30T20:38:25Z INFO fastpay::network] Done sending Tcp requests to 127.0.0.1:9555
[2021-12-30T20:38:25Z INFO bench] Received 80000 responses.
[2021-12-30T20:38:25Z WARN bench] Total time: 12543927us, items: 40000, tx/sec: 3188.794067439965