708.sqlite_r
SQL language compiler/interpreter and database engine
708.sqlite_r was submitted to the SPEC CPU v8 Benchmark Search Program by Richard Hipp drh [at] sqlite [dot] org.
SQLite is a widely used SQL database engine. For instance, it is built into and used heavily by most of your iOS and android devices as well as in widely used Web browsers. Here are more examples of SQLite usage.
Since CPU benchmarks should not be I/O bound, the benchmark uses in-memory databases.
The benchmark is divided in three workloads.
The MAIN workload exercises typical usage of a relational database, creating several relations composed of three attributes of types : integer, integer and text respectively. Values are inserting, indexes are created, operations like selection, projection and join are performed.
In addition to this MAIN workload, and in order to exercise the byte-code interpreter that underpins SQLite, two additional workloads are present: CTE and FP.
The CTE workload performs sudoku puzzles and computes mandelbrot sets. While we are aware that nobody uses SQLite to perform sudoku and mandelbrot, it exercises the SQLite interpreter while performing no I/O. We also expect conditional branching and scattered memory accesses. In this benchmark, the number of iterations for Mandelbrot is set to 38. The Mandelbrot set uses an SQL Recursive Common Table Expression, similar to the examples provided here: https://www.sqlite.org/lang_with.html#mandelbrot
The FP workload creates a relation containing floating-point attributes, inserting values and performing range selections.
The output prints the SQL queries and as well as a verification hash. The hash is computed by the benchmark itself including the size in bytes of the result as well as a hash value: it tests the length but also the content and varies with the size input parameter.
C language
The SPECrate version is single-threaded.
None
SQLite original sources
SQLITE_VERSION "3.33.0"SQLITE_SOURCE_ID "2020-06-26 17:56:43
e12225d59c63ba392db4fa8dc26700ac26b20c8b98ea5107eef0e0b5138ace87"Program is public domain: https://www.sqlite.org/copyright.html (archived text version).
Copyright © 2026 Standard Performance Evaluation Corporation (SPEC®)