Investigate AccountId::compute_account_seed
multi-threaded vs single-threaded performance
#1056
Milestone
AccountId::compute_account_seed
multi-threaded vs single-threaded performance
#1056
Investigate whether using multiple threads for account ID computation still makes sense due to the PoW requirements being much lower after #982.
The trigger for this issue is that the single-threaded benchmark for account IDs outperforms the multi-threaded one:
Multi-threaded:
Single-threaded:
The actual grinding in the single-threaded approach only takes 2-3 milliseconds, so perhaps the multi-threaded approach is now more inefficient due to spawning threads, context switching and similar management tasks. We may want to investigate this by profiling to make sure.
If single threaded performance is better, we should disable multi-threading for now and reintroduce later if necessary.
Note that this uses the changes to the benchmark in #1055 (mainly using a different seed for each iteration which previously biased the result).
The text was updated successfully, but these errors were encountered: