MySQL SQLite
Connection handling Application/API
Authentication N/A
Threads handling N/A (Application)
Query cache N/A (application)
Parser
Optimizer
Storage engine Backend
InnoDB storage engine SQLite backend
Buffer pool Page cache
B+Tree indexes B*Tree index
File / Partitions Database file
MySQL SQLite
Connecting to a separate process Same-process library / API
Full blown SQL with SELECT/INSERT/UPDATE/DELETE
Subqueries support
Transation support
Cross-database queries support
Static types Dynamic types
GPL license Public domain license
MySQL SQLite
PK: SELECT * FROM test1 WHERE id=$i
44k QPS 22K QPS
Round trip: SELECT 1
97k QPS 50k QPS
Memory on the start
147Mb 39Mb
Memory with data imported
147Mb 60Mb
Metric MySQL SQLite
Features Rich Rich
Portability Low High
Footprint High Low
Concurrency Great OK
Networking Yes No
Big data Yes No
Embedding Ok Great
License GPL Public domain