Closed dlachaume closed 2 months ago
3 files ±0 43 suites ±0 8m 22s :stopwatch: -1s 978 tests ±0 978 :white_check_mark: ±0 0 :zzz: ±0 0 :x: ±0 1 072 runs ±0 1 072 :white_check_mark: ±0 0 :zzz: ±0 0 :x: ±0
Results for commit 55869cde. ± Comparison against base commit 204c7e47.
:recycle: This comment has been updated with latest results.
Content
This PR includes benchmark tests for evaluating the performance of storing Cardano transactions. The PR also includes modifications that improve them. The modifications consist of:
expand
implementation ofWhereCondition
in sqlite modulePre-submit checklist
store_transactions
with 10K transactionsCurrent state
Average time: 154.12 ms![image](https://github.com/input-output-hk/mithril/assets/135982616/27d31e3d-1d58-48ac-bccd-e2df1bc0f0af)
With modifications: adding SQL transactions
Average time: 116.35 ms![image](https://github.com/input-output-hk/mithril/assets/135982616/e8c3dbd2-1229-423f-8d2d-49280b87ec75)
With modifications: rework of
expand
implAverage time: 98.078 ms![image](https://github.com/input-output-hk/mithril/assets/135982616/fccc498f-a733-4692-b527-9e5b88be6e04)
With modifications: adding SQL transactions and rework of
expand
implAverage time: 60.628 ms![image](https://github.com/input-output-hk/mithril/assets/135982616/315a69ee-8c42-448d-9f6d-a47c53af976b)
store_transactions
with 100K transactionsCurrent state
Average time: 1.5205 s![image](https://github.com/input-output-hk/mithril/assets/135982616/0d3ebc17-f29f-4559-8494-ca4dd167d39c)
With modifications: adding SQL transactions
Average time: 1.1405 s![image](https://github.com/input-output-hk/mithril/assets/135982616/8369a3b2-4b9a-45cb-8561-27633a2cea8b)
With modifications: rework of
expand
implAverage time: 939.73 ms![image](https://github.com/input-output-hk/mithril/assets/135982616/db68d9d3-73b4-42ef-9df6-48af4c88530c)
With modifications: adding SQL transactions and rework of
expand
implAverage time: 568.32 ms![image](https://github.com/input-output-hk/mithril/assets/135982616/47632c52-43f5-4390-831e-37056e2d9136)
store_transactions
with 250K transactionsCurrent state
Average time: 3.6821 s![image](https://github.com/input-output-hk/mithril/assets/135982616/ae006f95-a69e-4ccf-8cfa-fa81798df450)
With modifications: adding SQL transactions
Average time: 2.8220 s![image](https://github.com/input-output-hk/mithril/assets/135982616/15303b2e-b865-4be4-99e2-c2864c68dc07)
With modifications: rework of
expand
implAverage time: 2.3101 s![image](https://github.com/input-output-hk/mithril/assets/135982616/c7d18550-255c-49a6-a8eb-d3d22e821678)
With modifications: adding SQL transactions and rework of
expand
implAverage time: 1.4331 s![image](https://github.com/input-output-hk/mithril/assets/135982616/51d1dc8c-149d-4410-8d29-b4a747ebc853)
store_transactions
with 500K transactionsCurrent state
Average time: 7.3614 s![image](https://github.com/input-output-hk/mithril/assets/135982616/abf39ea4-09c9-40fd-90e5-6796fe4c44cd)
With modifications: adding SQL transactions
Average time: 5.5974 s![image](https://github.com/input-output-hk/mithril/assets/135982616/e44bec21-3fc6-4140-9c30-9a45f427eed1)
With modifications: rework of
expand
implAverage time: 4.5745 s![image](https://github.com/input-output-hk/mithril/assets/135982616/7927ef86-a76c-4f81-b06d-d545f90d5c37)
With modifications: adding SQL transactions and rework of
expand
implAverage time: 2.8139 s![image](https://github.com/input-output-hk/mithril/assets/135982616/da9c7b0e-9c44-44d1-b7a7-23897a8fbb17)
store_transactions
with 1M transactionsCurrent state
Average time: 14.772 s![image](https://github.com/input-output-hk/mithril/assets/135982616/6c916269-f143-414d-8e7e-4853f3ac6f3e)
With modifications: adding SQL transactions
Average time: 11.004 s![image](https://github.com/input-output-hk/mithril/assets/135982616/d32484a1-bb84-499a-9290-67e8ec467e5e)
With modifications: rework of
expand
implAverage time: 9.2098 s![image](https://github.com/input-output-hk/mithril/assets/135982616/2c104fea-285f-4aa1-8565-e7e21d755d67)
With modifications: adding SQL transactions and rework of
expand
implAverage time: 5.5863 s![image](https://github.com/input-output-hk/mithril/assets/135982616/b561d9a2-0e1b-4ef4-a1b9-8f3459c2977e)
store_transactions
with 10M transactionsWith modifications: adding SQL transactions and rework of
expand
implAverage time: 55.304 s![image](https://github.com/input-output-hk/mithril/assets/135982616/3be911cf-ab64-4f9a-990c-a280d4fc2786)
Issue(s)
Closes #1656