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

Skip to content
Commit e458428e authored by Lee Shombert's avatar Lee Shombert
Browse files

Correct a db perf test

The two multi-threaded read/write performance tests violate the
recommended Android database best practice: the writer loop creates a
new SQLiteDatabase on the test database file.  This leads to two
errors: the writer loop creates its database with an incompatible
journal mode in different from the actual database, and the test exits
without properly closing the database.

This change simply has the writer loop use the existing database for
its test.  The benchmark values for the multi-threaded read/write
tests change dramatically for the TRUNCATE journal mode and slightly
for the WAL journal mode; these metric changes are WAI.

Test: atest
 * SQLiteDatabasePerfTest

Bug: 318742652
Change-Id: Icb2534c6fbaf8daa3eb38e8b1b7f71331d571e9d
parent 046a0f25
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