Skip to content

TPC Benchmarking Results

7 min read

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 SingleStore.

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

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

Benchmark results

We used benchmarks derived from the industry-standard TPC-H and TPC-C to evaluate SingleStore compared to other leading cloud databases and data warehouses. The results show how SingleStore 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 SingleStore 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
SingleStore22.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, SingleStore 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 SingleStore 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.

Figure: TPC Benchmarking Results

How we tested

We ran both benchmarks on SingleStore'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 SingleStore'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 SingleStore 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 SingleStore, this was version 7.6.7.

TPC-H Results

We measured the performance of SingleStore 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 SingleStore, CDW1 and CDW2).

The results shown in the following chart demonstrate that SingleStore 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.

Figure: TPC Benchmarking Results
Figure: TPC Benchmarking Results

TPC-C Results

We compared SingleStore against CDB, a popular, state-of-the-art cloud operational database, on TPC-C, an industry-standard OLTP benchmark. All SingleStore 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 SingleStore (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 SingleStore and CDB are essentially reaching this maximum at a data size of 1,000 warehouses.

We also tested SingleStore performance on TPC-C at a data size of 10,000 warehouses, and SingleStore delivers excellent scale-out performance — performance on larger TPC-C sizes scales linearly as we scale out the SingleStore 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%
SingleStore1,0003212,54597.55%
SingleStore10,000256123,34695.91%

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

Conclusion

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

Figure: Conclusion

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

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

Appendix — Breakdown of TPC-H Results

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

Figure: Appendix — Breakdown of TPC-H Results
Figure: Appendix — Breakdown of TPC-H Results

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

Cold runsCold runsCold runsWarm runsWarm runsWarm runs
SingleStoreCDW1CDW2SingleStoreCDW1CDW2
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

Start building now

Build on a free Shared cluster, then move to a Standard cluster with $500 in free credits.

Start free

Share