{"id":12749,"date":"2023-03-24T23:38:41","date_gmt":"2023-03-25T06:38:41","guid":{"rendered":"https:\/\/tdengine.com\/?p=12749"},"modified":"2025-11-03T08:17:02","modified_gmt":"2025-11-03T16:17:02","slug":"tsdb-comparison-timescaledb-vs-tdengine","status":"publish","type":"post","link":"https:\/\/tdengine.com\/tsdb-comparison-timescaledb-vs-tdengine\/","title":{"rendered":"TSDB Comparison: TimescaleDB vs. TDengine"},"content":{"rendered":"\n<p>This article compares two popular <a href=\"https:\/\/tdengine.com\/what-is-a-time-series-database\/\">time-series database<\/a> (TSDB) products &#8211; TimescaleDB vs. TDengine &#8211; to help you determine which is right for your use case. With industries ranging from IoT to manufacturing generating and collecting a constantly increasing amount of time-series data, the growth of the time series DBMS market over the past five years has not come as a surprise. This popularity has resulted in a large number of time series DB solutions coming on the market, sometimes making it difficult to choose the <a href=\"https:\/\/tdengine.com\/how-to-choose-the-best-time-series-database\/\">best time series database<\/a> for a certain business scenario.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.timescale.com\/\" rel=\"noopener\">TimescaleDB<\/a> is an open-source time-series database based on PostgreSQL. Its major advantage is that it offers modern flexibility on top of a traditional relational database model, plus the benefits of PostgreSQL. However, historically its storage and compression have been less than optimal, which can affect performance as well as hardware costs. TDengine is also an open-source time-series database that differentiates itself with <a href=\"https:\/\/tdengine.com\/high-performance\/\">high performance<\/a>, a distributed <a href=\"https:\/\/tdengine.com\/high-scalability\/\">cloud-native architecture<\/a>, and built-in caching, data subscription, and stream processing that <a href=\"https:\/\/tdengine.com\/comprehensive-solution\/\">simplify the overall system design<\/a>.<\/p>\n\n\n\n<p>The following table compares the basic information of TimescaleDB vs. TDengine. We can see that the two systems have much in common.<\/p>\n\n\n\n<h2 class=\"gb-headline gb-headline-f8b58f42 gb-headline-text\">Basic Info: TimescaleDB vs. TDengine<\/h2>\n\n\n\n<table id=\"tablepress-50\" class=\"tablepress tablepress-id-50\">\n<thead>\n<tr class=\"row-1\">\n\t<td class=\"column-1\"><\/td><th class=\"column-2\">TimescaleDB<\/th><th class=\"column-3\">TDengine<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\">Creator<\/td><td class=\"column-2\"><a href=\"https:\/\/www.timescale.com\/\" rel=\"noopener\">Timescale<\/a><\/td><td class=\"column-3\"><a href=\"https:\/\/tdengine.com\">TDengine<\/a><\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\">Initial release<\/td><td class=\"column-2\">2017<\/td><td class=\"column-3\">2017<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\">Main development language<\/td><td class=\"column-2\">C<\/td><td class=\"column-3\">C<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\">Main query language<\/td><td class=\"column-2\">Standard SQL (based on PostgreSQL)<\/td><td class=\"column-3\">Standard SQL<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\">License<\/td><td class=\"column-2\">Apache<\/td><td class=\"column-3\">AGPL<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\">Operating systems<\/td><td class=\"column-2\">Linux, macOS, and Windows<\/td><td class=\"column-3\">Linux, macOS, and Windows<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-50 from cache -->\n\n\n<h2 class=\"gb-headline gb-headline-1bffcb5d gb-headline-text\">Performance Comparison<\/h2>\n\n\n\n<p>Performance is one of the main factors by which time-series databases are compared. Higher performance means more than just faster operations \u2013 it also <a href=\"https:\/\/tdengine.com\/reduce-tco\/\">reduces the total cost of ownership<\/a> for your time-series data operations as fewer hardware resources are required.<\/p>\n\n\n\n<p>According to a performance comparison of TimescaleDB vs. TDengine, conducted based on the open-source TSBS framework, TDengine significantly outperforms TimescaleDB in all key areas \u2013 data ingestion rate, query response time, and disk space usage \u2013 while using fewer server-side resources.<\/p>\n\n\n\n<figure class=\"gb-block-image gb-block-image-3bcb0518\"><a href=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion.png?strip=all&sharp=1&w=2560\"><img decoding=\"async\" width=\"984\" height=\"648\" class=\"gb-image gb-image-3bcb0518\" src=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion.png?strip=all&sharp=1\" alt=\"\" srcset=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion.png?strip=all&amp;sharp=1 984w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion-300x198.png?strip=all&amp;sharp=1 300w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion-768x506.png?strip=all&amp;sharp=1 768w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion.png?strip=all&amp;sharp=1&amp;w=196 196w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion.png?strip=all&amp;sharp=1&amp;w=393 393w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion.png?strip=all&amp;sharp=1&amp;w=590 590w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-01-ingestion.png?strip=all&amp;sharp=1&amp;w=450 450w\" sizes=\"(max-width: 984px) 100vw, 984px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"gb-block-image gb-block-image-d35da07a\"><a href=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage.png?strip=all&sharp=1&w=2560\"><img decoding=\"async\" width=\"984\" height=\"648\" class=\"gb-image gb-image-d35da07a\" src=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage.png?strip=all&sharp=1\" alt=\"\" srcset=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage.png?strip=all&amp;sharp=1 984w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage-300x198.png?strip=all&amp;sharp=1 300w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage-768x506.png?strip=all&amp;sharp=1 768w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage.png?strip=all&amp;sharp=1&amp;w=196 196w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage.png?strip=all&amp;sharp=1&amp;w=393 393w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage.png?strip=all&amp;sharp=1&amp;w=590 590w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-02-storage.png?strip=all&amp;sharp=1&amp;w=450 450w\" sizes=\"(max-width: 984px) 100vw, 984px\" \/><\/a><\/figure>\n\n\n\n<p>As shown in the figures, TDengine provided superior ingestion performance in all scenarios, writing the TSBS data 1.5x to 6.7x faster than TimescaleDB. TimescaleDB also required more disk space to store the TSBS data in all scenarios, with the difference becoming extreme in the largest scenarios. For example, in the 10 million device scenario, TimescaleDB required 26.9x more storage space than TDengine.<\/p>\n\n\n\n<figure class=\"gb-block-image gb-block-image-6786d0d2\"><a href=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple.png?strip=all&sharp=1&w=2560\"><img decoding=\"async\" width=\"984\" height=\"648\" class=\"gb-image gb-image-6786d0d2\" src=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple.png?strip=all&sharp=1\" alt=\"\" srcset=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple.png?strip=all&amp;sharp=1 984w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple-300x198.png?strip=all&amp;sharp=1 300w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple-768x506.png?strip=all&amp;sharp=1 768w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple.png?strip=all&amp;sharp=1&amp;w=196 196w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple.png?strip=all&amp;sharp=1&amp;w=393 393w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple.png?strip=all&amp;sharp=1&amp;w=590 590w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-03-simple.png?strip=all&amp;sharp=1&amp;w=450 450w\" sizes=\"(max-width: 984px) 100vw, 984px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"gb-block-image gb-block-image-75c2de63\"><a href=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex.png?strip=all&sharp=1&w=2560\"><img decoding=\"async\" width=\"984\" height=\"648\" class=\"gb-image gb-image-75c2de63\" src=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex.png?strip=all&sharp=1\" alt=\"\" srcset=\"https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex.png?strip=all&amp;sharp=1 984w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex-300x198.png?strip=all&amp;sharp=1 300w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex-768x506.png?strip=all&amp;sharp=1 768w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex.png?strip=all&amp;sharp=1&amp;w=196 196w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex.png?strip=all&amp;sharp=1&amp;w=393 393w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex.png?strip=all&amp;sharp=1&amp;w=590 590w, https:\/\/eujqw4hwudm.exactdn.com\/wp-content\/uploads\/22.096-04-complex.png?strip=all&amp;sharp=1&amp;w=450 450w\" sizes=\"(max-width: 984px) 100vw, 984px\" \/><\/a><\/figure>\n\n\n\n<p>TDengine also queried the TSBS data much faster than TimescaleDB, both in simple and complex scenarios. In the 4,000-device test scenario, TDengine responded between 1.2x and 24.6x faster than TimescaleDB; a comparison of response times in two key categories is shown above.<\/p>\n\n\n\n<h2 class=\"gb-headline gb-headline-4552fb4a gb-headline-text\">Conclusion<\/h2>\n\n\n\n<p>TimescaleDB and TDengine have many similarities, both supporting SQL and providing an RDBMS-like experience with the power of a purpose-built time-series database. However, TDengine also has significant advantages in terms of performance, in particular when it comes to storing and compressing data.<\/p>\n\n\n\n<p>If you would like to know more about how TDengine can support your enterprise time-series data processing needs, <a href=\"https:\/\/tdengine.com\/contact\/\">contact us<\/a> to speak with an account representative.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article compares TimescaleDB vs. TDengine to help you determine which time-series database is best for you.<\/p>\n","protected":false},"author":83,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[21],"tags":[],"ppma_author":[169],"class_list":["post-12749","post","type-post","status-publish","format-standard","hentry","category-engineering"],"authors":[{"term_id":169,"user_id":83,"is_guest":0,"slug":"liaohaojun","display_name":"Haojun Liao","avatar_url":{"url":"https:\/\/tdengine.com\/wp-content\/uploads\/29.04-21-hjliao.jpg","url2x":"https:\/\/tdengine.com\/wp-content\/uploads\/29.04-21-hjliao.jpg"},"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/posts\/12749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/users\/83"}],"replies":[{"embeddable":true,"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/comments?post=12749"}],"version-history":[{"count":12,"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/posts\/12749\/revisions"}],"predecessor-version":[{"id":29470,"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/posts\/12749\/revisions\/29470"}],"wp:attachment":[{"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/media?parent=12749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/categories?post=12749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/tags?post=12749"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/tdengine.com\/wp-json\/wp\/v2\/ppma_author?post=12749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}