Skip to main content
Star schema benchmark (SSB) is designed to test basic performance metrics of OLAP database products. SSB uses a star schema test set that is widely applied in academia and industry. For more information, see Star Schema Benchmark. ClickHouse flattens the star schema into a wide flat table and rewrites the SSB into a single-table benchmark. For more information, see Star schema benchmark of ClickHouse This test compares the performance of the database, Apache Druid, and ClickHouse against SSB single-table datasets.

Test conclusions

The test is performed on an OLAP table in a shared-nothing cluster, together with ClickHouse and Apache Druid, against the same dataset. Based on the results from 13 queries performed on the 100 GB SSB-Flat dataset, the database has an overall query performance 1.87x that of ClickHouse and 4.75x that of Apache Druid. The unit of the results are milliseconds. SSB-SR

Test preparation

Hardware

The database, Apache Druid, and ClickHouse are deployed on hosts of the same configurations - AWS m7i.4xlarge.

Software

Test results

The following table shows the performance test results on 13 queries. The unit of query latency is milliseconds. All queries are warmed up 1 time and then executed 3 times to take the average value as the result. ClickHouse vs StarRocks and Druid vs StarRocks in the table header means using the query response time of ClickHouse/Druid to divide the query response time of the database. A larger value indicates better performance of the database.