TPC Benchmarking Results

Database systems are becoming more and more specialized, with many applications relying on an increasingly complex web of products that are great at running challenging workloads in a particular domain — but are not capable of addressing general-purpose data needs. In contrast, we believe it is possible to design a database that can satisfy a breadth of requirements for transactional and analytical workloads, with world-class performance across both OLTP and OLAP workloads. That database is SingleStoreDB.

SingleStoreDB runs demanding production workloads for some of the world's largest financial, telecom, high-tech and energy companies. These customers use SingleStoreDB to run a breadth of workloads across their organizations, often replacing two or three different databases with SingleStoreDB.

Our results derived from both TPC-H and TPC-C — industry standard OLAP and OLTP benchmarks — demonstrate that SingleStoreDB achieves state-of-the-art performance. SingleStoreDB can perform as well as specialized operational databases and data warehouses. We ran both benchmarks on SingleStoreDB's Universal Storage, and the results demonstrate SingleStoreDB's unification of world-class transactional and analytical performance in the same database and the same tables.

benchmark-resultsBenchmark results

We used benchmarks derived from the industry-standard TPC-H and TPC-C to evaluate SingleStoreDB compared to other leading cloud databases and data warehouses. The results show how SingleStoreDB achieves leading-edge performance on both OLAP and OLTP benchmarks.

We run these as a way to demonstrate leading performance on industry-standard benchmarks that are well-understood and easy to compare. As discussed in our previous blog post, we believe that these benchmarks do not show the full breadth of capabilities customers may demand for their modern workloads. But, they're still one of the best standardized ways that the industry currently has to compare performance across database systems. And with the elimination of the DeWitt Clause from our contract, SingleStore is committed to making these benchmark results completely available and transparent.

We compared SingleStoreDB with three other popular, state-of-the-art products: two cloud data warehouses we’ll refer to as CDW1 and CDW2, and a cloud operational database we’ll refer to as CDB. Let's start with a summary of the results derived from both TPC-H and TPC-C:

TPC-H median runtime (sec)TPC-H geomean cost (cents)TPC-C throughput (tpmC) at 1k warehousesTPC-C throughput (tpmC) at 10k warehouses
SingleStoreDB22.8390.2312,545123,346
CDW126.0391.75Not supportedNot supported
CDW224.1091.85Not supportedNot supported
CDBDid not finish within 24 hoursDid not finish within 24 hours12,582Not tested

Summary of results derived from TPC-H and TPC-C benchmark standards. TPC-H: 10TB scale factor, cold runtimes, lower is better. TPC-C: higher is better, up to the limit of 12.86 tpmC/warehouse

As the results show, SingleStoreDB had excellent performance and cost-performance on analytics compared to the cloud data warehouses, and on transactions compared to CDB. The main point of this comparison is to demonstrate that SingleStoreDB delivers state-of-the-art performance on both analytical and transactional workloads, while CDW1, CDW2 and CDB can only run well on either benchmark, not both. CDW1 and CDW2 only support data warehousing and cannot run TPC-C workloads. CDB can run both benchmarks, but it performs orders of magnitude worse than the cloud data warehouses on TPC-H. Additionally, CDB offers limited scalability on OLTP workloads — previous results show its performance does not scale well to much larger numbers of warehouses.

This chart summarizes the performance on both TPC-C and TPC-H. On this chart, we show the throughput for TPC-C (tpmC, as defined by TPC-C) and the queries per dollar for TPC-H (calculated as 100/geomean query cost in cents). The higher the number, the better.

how-we-testedHow we tested

We ran both benchmarks on SingleStoreDB's Universal Storage. That is, both benchmarks were run using the same unified table storage, which is the default out-of-the-box configuration (we did not force rowstore vs. columnstore table storage). This is noteworthy because our results show that SingleStoreDB's Universal Storage is able to deliver state-of-the-art performance on both OLTP and OLAP workloads.

We used indexes, sort keys and shard keys appropriate for each benchmark, and used similar ones across all products where those options were available. We've included setup instructions, schemas, data loading commands and queries for SingleStoreDB at our Github repository.

Our benchmark runs used the schema, data and queries from TPC. However, they do not meet all the criteria for official TPC benchmark runs, and are not official TPC results.

We ran the benchmarks in January 2022 on the latest software versions and hardware instance types available from each database vendor — for SingleStoreDB, this was version 7.6.7.

tpc-h-resultsTPC-H Results

We measured the performance of SingleStore DB compared to two popular, state-of-the-art data warehouses, CDW1 and CDW2 on TPC-H, an industry-standard OLAP benchmark at the 10TB scale factor.

We ran comparisons on public cloud instances with cluster sizes that were chosen to be as similar in price as possible. The costs of the cluster configurations we used are shown in the appendix.

We measured the runtime of one cold run of each query, and then measured the average runtime of three warm runs of each query, with results caching disabled. The warm run allows for query compilation and data caching.

We computed the cost of each query by multiplying the runtime by the price per second of the product configuration. We then computed the geomean of the runtime and cost results across all the queries.

When we tested the operational database CDB on the largest available size, it performed orders of magnitude worse: most queries failed to complete within 1 hour, and a single run of all the benchmark queries failed to complete within 24 hours (compared to about 15 minutes for SingleStoreDB, CDW1 and CDW2).

The results shown in the following chart demonstrate that SingleStoreDB achieves competitive performance on the TPC-H benchmark compared to both leading-edge, specialized cloud data warehouses. A breakdown of results by query can be found in the appendix.

tpc-c-resultsTPC-C Results

We compared SingleStoreDB against CDB, a popular, state-of-the-art cloud operational database, on TPC-C, an industry-standard OLTP benchmark. All SingleStoreDB results were on our columnar-based Universal Storage, and were competitive with CDB which is a rowstore-based operational database. We ran comparisons on public cloud instances with cluster sizes that were chosen to match in vCPU count.

Note that the cloud data warehouses CDW1 and CDW2 do not support running the TPC-C benchmark. As an example, unique constraints are one feature that are not supported in the data warehouses but are supported in SingleStoreDB (they are supported in all table types, including in our Universal Storage). CDW1 and CDW2 only support informational, unenforced unique constraints — their systems cannot enforce the integrity of the constraint, they only use it as an informational hint to the query planner.

We measured the throughput (tpmC), as defined by the TPC-C benchmark. We compared against results previously published by CDB. Note that TPC-C specifies a maximum possible tpmC of 12.86 per warehouse, and both SingleStoreDB and CDB are essentially reaching this maximum at a data size of 1,000 warehouses.

We also tested SingleStoreDB performance on TPC-C at a data size of 10,000 warehouses, and SingleStoreDB delivers excellent scale-out performance — performance on larger TPC-C sizes scales linearly as we scale out the SingleStoreDB cluster size. On the other hand, CDB offers limited scalability on OLTP workloads — previous results show its performance does not scale well to much larger numbers of warehouses.

ProductData size (warehouses)Cluster size (leaf vCPUs)Throughput (tpmC)Throughput (% of max)
CDB1,0003212,58297.84%
SingleStoreDB1,0003212,54597.55%
SingleStoreDB10,000256123,34695.91%

TPC-C benchmark performance (higher is better, up to the limit of 12.86 tpmC/warehouse)

conclusionConclusion

Here's the summary of performance derived from both TPC-C and TPC-H results again:

These results demonstrate that SingleStoreDB achieves state-of-the-art performance competitive with leading operational databases, as well as analytical databases on benchmarks specific to each workload. SingleStoreDB can meet workload requirements that previously required using multiple specialized database systems.

Ready to see these results for yourself? Get started with your free SingleStoreDB trial today. If you're interested in running and experimenting with these benchmarks on SingleStoreDB yourself, we've included setup instructions, schemas, data loading commands and queries at our Github repository.

appendix-breakdown-of-tpc-h-resultsAppendix — Breakdown of TPC-H Results

See the preceding section for the details of what results we measured.

Details of runtimes by query (runtimes are in seconds):

Cold runsCold runsCold runsWarm runsWarm runsWarm runs
SingleStoreDBCDW1CDW2SingleStoreDBCDW1CDW2
Geomean runtime (sec)26.0325.8125.3619.3320.8915.05
Median runtime (sec)22.8326.0324.1016.3122.2617.13
Cluster price per hour\$124.80\$128.00\$130.40\$124.80\$128.00\$130.40
Geomean costs (cents)90.2391.7591.8567.0274.2754.53
q127.4119.5521.446.4121.2417.98
q29.4627.1814.278.4022.804.25
q352.7037.3429.1243.2529.3421.74
q414.5221.1834.5812.3221.7125.25
q538.5733.7329.4825.9529.5524.32
q63.505.748.112.530.964.75
q717.4233.1570.2716.1524.5829.11
q819.0236.9225.9110.2235.7821.84
q9387.10142.64146.13368.98132.3270.57
q1039.9538.9128.7040.6831.7124.74
q1120.116.5858.8216.477.265.39
q126.9120.2018.923.069.4214.46
q13101.6042.3337.51108.6140.7833.07
q1463.0024.8715.5857.1319.2311.67
q1525.5417.097.6322.325.794.43
q1615.3213.1810.1612.7312.355.57
q179.3471.4622.145.6276.2511.30
q1865.1545.7117.9338.9398.1118.08
q198.3616.2022.495.2117.1516.28
q2072.2222.1125.7167.7611.4115.28
q2117.8666.7155.7216.0673.2736.06
q2244.018.4021.4438.598.2211.06

Share