-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: polish tx pool stress test and don't clock the TransactionFacto…
…ry (#2575) * Properly use TransactionFactory to generate transactions with different ids instead of manually overriding the "id" member. Add a generateTestTransactions() method, used in all 3 stress tests. * The overall timing of "✓ multiple additions and retrievals (884ms)" is now not sufficient to assess the speed of the add+retrieve of the pool because it includes generating the test transactions with TransactionFactory which is about 11 times slower than the actual add+retrieve that is done by the test. Thus clock only the relevant snippet of the code with console.time().
- Loading branch information
1 parent
e1111a5
commit d2b426e
Showing
1 changed file
with
37 additions
and
32 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