page 99999 page 9999 LogData size 9999 Legacy 1305.5 11.009 1,048,576B 16,777,216B QListString 0.055 0.0027 3,777,200B 18,644,700B Memory test: everything commented except RandomPage Memory using top: 99999 (8.5Mib file): legacy 44m,20m qliststr 33m,11m 4999999 (428MiB file): legacy 464m,442m qliststr 1090m,1.0g 'Legacy' implementation: ********* Start testing of TestLogData ********* Config: Using QTest library 4.5.0, Qt 4.5.0 PASS : TestLogData::initTestCase() - 14:12:30.621 DEBUG: Found 99999 lines. - 14:12:30.639 DEBUG: Found 99999 lines. - 14:12:30.707 DEBUG: Found 99999 lines. - 14:12:30.717 DEBUG: Found 99999 lines. - 14:12:30.728 DEBUG: Found 99999 lines. RESULT : TestLogData::simpleLoad(): 10 msec per iteration (total: 21, iterations: 2) PASS : TestLogData::simpleLoad() - 14:12:30.780 DEBUG: Found 99999 lines. RESULT : TestLogData::sequentialRead(): 650,750 msec per iteration (total: 650750, iterations: 1) PASS : TestLogData::sequentialRead() - 14:23:21.586 DEBUG: Found 99999 lines. RESULT : TestLogData::randomPageRead(): 1,305,466 msec per iteration (total: 1305466, iterations: 1) PASS : TestLogData::randomPageRead() PASS : TestLogData::cleanupTestCase() Totals: 5 passed, 0 failed, 0 skipped ********* Finished testing of TestLogData ********* With 9999 lines: RESULT : TestLogData::simpleLoad(): 1.3 msec per iteration (total: 21, iterations: 16) PASS : TestLogData::simpleLoad() - 14:53:26.232 DEBUG: Found 9999 lines. RESULT : TestLogData::sequentialRead(): 6,475 msec per iteration (total: 6475, iterations: 1) PASS : TestLogData::sequentialRead() - 14:53:32.713 DEBUG: Found 9999 lines. RESULT : TestLogData::randomPageRead(): 11,009 msec per iteration (total: 11009, iterations: 1) PASS : TestLogData::randomPageRead() PASS : TestLogData::cleanupTestCase() Totals: 5 passed, 0 failed, 0 skipped Memory: 1,048,576B Tab expansion fix: before: TestLogData::sequentialRead(): 58,011 msec TestLogData::randomPageRead(): 11,376 msec after step 1: TestLogData::sequentialRead(): 55,662 msec TestLogData::sequentialReadExpanded(): 91,141 msec TestLogData::randomPageRead(): 10,592 msec TestLogData::randomPageReadExpanded(): 183,567 msec