Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b5f38041 authored by Fyodor Kupolov's avatar Fyodor Kupolov
Browse files

Updated NewDatabasePerformanceTests

Restored kMultiplier back to 100. Renamed to SIZE_MULTIPLIER
Removed overlapping tests.
Added REPEAT_COUNT multiplier for testing fast read-only operations.

Added python script to process log output from multiple runs and present
results in human-readable form.

Example output:
*** TOTAL ALL TESTS (ms) ***: [49658, 45961, 53069, 52784, 53712] avg: 51036.8
Delete100: [3046, 2629, 3302, 3215, 2594] avg: 2957.2
DeleteIndexWhere100: [1645, 1784, 1989, 1780, 1919] avg: 1823.4
DeleteIndexed100: [2871, 2396, 3323, 3277, 2975] avg: 2968.4
DeleteWhere100: [2054, 1772, 1761, 1845, 1689] avg: 1824.2
InnerJoin100: [2661, 2992, 3375, 2823, 3362] avg: 3042.6
InnerJoinNoIndex100: [3548, 2886, 3514, 3458, 3530] avg: 3387.2
InnerJoinOneSide100: [2249, 2906, 3425, 3394, 3538] avg: 3102.4
Insert100: [1446, 1337, 1534, 1625, 1350] avg: 1458.4
InsertIndexed100: [1701, 1496, 1668, 1787, 1549] avg: 1640.2
Select100: [1841, 1734, 1897, 1976, 1740] avg: 1837.6
SelectIndex100: [1776, 1741, 1892, 1776, 1829] avg: 1802.8
SelectIndexString100: [1527, 1262, 1772, 1863, 1630] avg: 1610.8
SelectIndexStringComparison100: [1729, 1515, 1716, 1716, 2036] avg: 1742.4
SelectInteger100: [1493, 872, 1637, 1722, 1502] avg: 1445.2
SelectIntegerIndex100: [1853, 1305, 1656, 1548, 1694] avg: 1611.2
SelectString100: [1539, 1180, 1612, 1764, 1535] avg: 1526.0
SelectStringComparison100: [1402, 1584, 1627, 1834, 1531] avg: 1595.6
SelectStringContains100: [1779, 1553, 1771, 1728, 1742] avg: 1714.6
SelectStringIndexedContains100: [1552, 1755, 1770, 1747, 1793] avg: 1723.4
SelectStringStartsWith100: [1821, 1321, 1602, 1697, 1716] avg: 1631.4
SelectSubQIndex100: [3323, 3427, 3538, 3438, 3573] avg: 3459.8
UpdateIndexWhere100: [3382, 3341, 3367, 3413, 5412] avg: 3783.0
UpdateWhere100: [3420, 3173, 3321, 3358, 3473] avg: 3349.0

Test: runtest --path frameworks/base/core/tests/coretests/src/android/database/NewDatabasePerformanceTestSuite.java
Test: python process_newdb_perf_test_logs.py <path_to_logcat_output_file>

Bug: 38499845
Change-Id: Ibd703ec51671212c45d99c947245dee7e31d2c16
parent 631f7b7e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment