diff --git a/timescale-cloud/README.md b/timescale-cloud/README.md new file mode 100644 index 000000000..3fc5cd610 --- /dev/null +++ b/timescale-cloud/README.md @@ -0,0 +1,31 @@ +# Timescale Cloud + +### Running the Benchmark + +1. Create a [Timescale Cloud Account](https://console.cloud.timescale.com/signup). + - This benchmark can be executed with a Trial Account. +1. Create a new "Time series and analytics" service with the desired benchmark compute size. +1. Install the [psql connection tool](https://docs.timescale.com/use-timescale/latest/integrations/query-admin/psql/) if necessary. +1. Once the service is ready use the provided connection string to import the dataset: + + ```bash + wget --no-verbose --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz' + gzip -d hits.tsv.gz + + export $CONNECTION_STRING=... + time ./load.sh + ``` + +1. Find the datasize: + ```bash + psql "$CONNECTION_STRING" -c "SELECT hypertable_size('hits');" + ``` + +1. Run the and benchmark the queries: + + ```bash + ./run.sh 2>&1 | tee log.txt + + cat log.txt | grep -oP 'Time: \d+\.\d+ ms' | sed -r -e 's/Time: ([0-9]+\.[0-9]+) ms/\1/' | + awk '{ if (i % 3 == 0) { printf "[" }; printf $1 / 1000; if (i % 3 != 2) { printf "," } else { print "]," }; ++i; }' + ``` diff --git a/timescale-cloud/create.sql b/timescale-cloud/create.sql new file mode 100644 index 000000000..41c961c00 --- /dev/null +++ b/timescale-cloud/create.sql @@ -0,0 +1,108 @@ +CREATE TABLE hits +( + WatchID BIGINT NOT NULL, + JavaEnable SMALLINT NOT NULL, + Title TEXT NOT NULL, + GoodEvent SMALLINT NOT NULL, + EventTime TIMESTAMP NOT NULL, + EventDate Date NOT NULL, + CounterID INTEGER NOT NULL, + ClientIP INTEGER NOT NULL, + RegionID INTEGER NOT NULL, + UserID BIGINT NOT NULL, + CounterClass SMALLINT NOT NULL, + OS SMALLINT NOT NULL, + UserAgent SMALLINT NOT NULL, + URL TEXT NOT NULL, + Referer TEXT NOT NULL, + IsRefresh SMALLINT NOT NULL, + RefererCategoryID SMALLINT NOT NULL, + RefererRegionID INTEGER NOT NULL, + URLCategoryID SMALLINT NOT NULL, + URLRegionID INTEGER NOT NULL, + ResolutionWidth SMALLINT NOT NULL, + ResolutionHeight SMALLINT NOT NULL, + ResolutionDepth SMALLINT NOT NULL, + FlashMajor SMALLINT NOT NULL, + FlashMinor SMALLINT NOT NULL, + FlashMinor2 TEXT NOT NULL, + NetMajor SMALLINT NOT NULL, + NetMinor SMALLINT NOT NULL, + UserAgentMajor SMALLINT NOT NULL, + UserAgentMinor VARCHAR(255) NOT NULL, + CookieEnable SMALLINT NOT NULL, + JavascriptEnable SMALLINT NOT NULL, + IsMobile SMALLINT NOT NULL, + MobilePhone SMALLINT NOT NULL, + MobilePhoneModel TEXT NOT NULL, + Params TEXT NOT NULL, + IPNetworkID INTEGER NOT NULL, + TraficSourceID SMALLINT NOT NULL, + SearchEngineID SMALLINT NOT NULL, + SearchPhrase TEXT NOT NULL, + AdvEngineID SMALLINT NOT NULL, + IsArtifical SMALLINT NOT NULL, + WindowClientWidth SMALLINT NOT NULL, + WindowClientHeight SMALLINT NOT NULL, + ClientTimeZone SMALLINT NOT NULL, + ClientEventTime TIMESTAMP NOT NULL, + SilverlightVersion1 SMALLINT NOT NULL, + SilverlightVersion2 SMALLINT NOT NULL, + SilverlightVersion3 INTEGER NOT NULL, + SilverlightVersion4 SMALLINT NOT NULL, + PageCharset TEXT NOT NULL, + CodeVersion INTEGER NOT NULL, + IsLink SMALLINT NOT NULL, + IsDownload SMALLINT NOT NULL, + IsNotBounce SMALLINT NOT NULL, + FUniqID BIGINT NOT NULL, + OriginalURL TEXT NOT NULL, + HID INTEGER NOT NULL, + IsOldCounter SMALLINT NOT NULL, + IsEvent SMALLINT NOT NULL, + IsParameter SMALLINT NOT NULL, + DontCountHits SMALLINT NOT NULL, + WithHash SMALLINT NOT NULL, + HitColor CHAR NOT NULL, + LocalEventTime TIMESTAMP NOT NULL, + Age SMALLINT NOT NULL, + Sex SMALLINT NOT NULL, + Income SMALLINT NOT NULL, + Interests SMALLINT NOT NULL, + Robotness SMALLINT NOT NULL, + RemoteIP INTEGER NOT NULL, + WindowName INTEGER NOT NULL, + OpenerName INTEGER NOT NULL, + HistoryLength SMALLINT NOT NULL, + BrowserLanguage TEXT NOT NULL, + BrowserCountry TEXT NOT NULL, + SocialNetwork TEXT NOT NULL, + SocialAction TEXT NOT NULL, + HTTPError SMALLINT NOT NULL, + SendTiming INTEGER NOT NULL, + DNSTiming INTEGER NOT NULL, + ConnectTiming INTEGER NOT NULL, + ResponseStartTiming INTEGER NOT NULL, + ResponseEndTiming INTEGER NOT NULL, + FetchTiming INTEGER NOT NULL, + SocialSourceNetworkID SMALLINT NOT NULL, + SocialSourcePage TEXT NOT NULL, + ParamPrice BIGINT NOT NULL, + ParamOrderID TEXT NOT NULL, + ParamCurrency TEXT NOT NULL, + ParamCurrencyID SMALLINT NOT NULL, + OpenstatServiceName TEXT NOT NULL, + OpenstatCampaignID TEXT NOT NULL, + OpenstatAdID TEXT NOT NULL, + OpenstatSourceID TEXT NOT NULL, + UTMSource TEXT NOT NULL, + UTMMedium TEXT NOT NULL, + UTMCampaign TEXT NOT NULL, + UTMContent TEXT NOT NULL, + UTMTerm TEXT NOT NULL, + FromTag TEXT NOT NULL, + HasGCLID SMALLINT NOT NULL, + RefererHash BIGINT NOT NULL, + URLHash BIGINT NOT NULL, + CLID INTEGER NOT NULL +); diff --git a/timescale-cloud/load.sh b/timescale-cloud/load.sh new file mode 100755 index 000000000..4afb4e409 --- /dev/null +++ b/timescale-cloud/load.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +#import +psql "$CONNECTION_STRING" < create.sql +psql "$CONNECTION_STRING" -c "SELECT create_hypertable('hits', 'eventtime', chunk_time_interval => interval '3 day', create_default_indexes => false)" +psql "$CONNECTION_STRING" -c "ALTER TABLE hits SET (timescaledb.compress, timescaledb.compress_segmentby = '', timescaledb.compress_orderby = 'counterid, userid', 'eventtime')" +psql "$CONNECTION_STRING" -c "ALTER DATABASE tsdb set min_parallel_table_scan_size to 0;" +psql "$CONNECTION_STRING" -c "ALTER DATABASE tsdb set work_mem to '1GB';" +psql "$CONNECTION_STRING" -c "ALTER DATABASE tsdb SET timescaledb.enable_chunk_skipping to ON;" +psql "$CONNECTION_STRING" -c "SELECT enable_chunk_skipping('hits', 'counterid');" + +psql "$CONNECTION_STRING" -t -c '\timing' -c "\\copy hits FROM 'hits.tsv'" +psql "$CONNECTION_STRING" -c "SELECT compress_chunk(i, if_not_compressed => true) FROM show_chunks('hits') i" +psql "$CONNECTION_STRING" -t -c '\timing' -c "vacuum freeze analyze hits;" diff --git a/timescale-cloud/queries.sql b/timescale-cloud/queries.sql new file mode 100644 index 000000000..31f65fc89 --- /dev/null +++ b/timescale-cloud/queries.sql @@ -0,0 +1,43 @@ +SELECT COUNT(*) FROM hits; +SELECT COUNT(*) FROM hits WHERE AdvEngineID <> 0; +SELECT SUM(AdvEngineID), COUNT(*), AVG(ResolutionWidth) FROM hits; +SELECT AVG(UserID) FROM hits; +SELECT COUNT(DISTINCT UserID) FROM hits; +SELECT COUNT(DISTINCT SearchPhrase) FROM hits; +SELECT MIN(EventDate), MAX(EventDate) FROM hits; +SELECT AdvEngineID, COUNT(*) FROM hits WHERE AdvEngineID <> 0 GROUP BY AdvEngineID ORDER BY COUNT(*) DESC; +SELECT RegionID, COUNT(DISTINCT UserID) AS u FROM hits GROUP BY RegionID ORDER BY u DESC LIMIT 10; +SELECT RegionID, SUM(AdvEngineID), COUNT(*) AS c, AVG(ResolutionWidth), COUNT(DISTINCT UserID) FROM hits GROUP BY RegionID ORDER BY c DESC LIMIT 10; +SELECT MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhoneModel ORDER BY u DESC LIMIT 10; +SELECT MobilePhone, MobilePhoneModel, COUNT(DISTINCT UserID) AS u FROM hits WHERE MobilePhoneModel <> '' GROUP BY MobilePhone, MobilePhoneModel ORDER BY u DESC LIMIT 10; +SELECT SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10; +SELECT SearchPhrase, COUNT(DISTINCT UserID) AS u FROM hits WHERE SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY u DESC LIMIT 10; +SELECT SearchEngineID, SearchPhrase, COUNT(*) AS c FROM hits WHERE SearchPhrase <> '' GROUP BY SearchEngineID, SearchPhrase ORDER BY c DESC LIMIT 10; +SELECT UserID, COUNT(*) FROM hits GROUP BY UserID ORDER BY COUNT(*) DESC LIMIT 10; +SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase ORDER BY COUNT(*) DESC LIMIT 10; +SELECT UserID, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, SearchPhrase LIMIT 10; +SELECT UserID, extract(minute FROM EventTime) AS m, SearchPhrase, COUNT(*) FROM hits GROUP BY UserID, m, SearchPhrase ORDER BY COUNT(*) DESC LIMIT 10; +SELECT UserID FROM hits WHERE UserID = 435090932899640449; +SELECT COUNT(*) FROM hits WHERE URL LIKE '%google%'; +SELECT SearchPhrase, MIN(URL), COUNT(*) AS c FROM hits WHERE URL LIKE '%google%' AND SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10; +SELECT SearchPhrase, MIN(URL), MIN(Title), COUNT(*) AS c, COUNT(DISTINCT UserID) FROM hits WHERE Title LIKE '%Google%' AND URL NOT LIKE '%.google.%' AND SearchPhrase <> '' GROUP BY SearchPhrase ORDER BY c DESC LIMIT 10; +SELECT * FROM hits WHERE URL LIKE '%google%' ORDER BY EventTime LIMIT 10; +SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY EventTime LIMIT 10; +SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY SearchPhrase LIMIT 10; +SELECT SearchPhrase FROM hits WHERE SearchPhrase <> '' ORDER BY EventTime, SearchPhrase LIMIT 10; +SELECT CounterID, AVG(length(URL)) AS l, COUNT(*) AS c FROM hits WHERE URL <> '' GROUP BY CounterID HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25; +SELECT REGEXP_REPLACE(Referer, '^https?://(?:www\.)?([^/]+)/.*$', '\1') AS k, AVG(length(Referer)) AS l, COUNT(*) AS c, MIN(Referer) FROM hits WHERE Referer <> '' GROUP BY k HAVING COUNT(*) > 100000 ORDER BY l DESC LIMIT 25; +SELECT SUM(ResolutionWidth), SUM(ResolutionWidth + 1), SUM(ResolutionWidth + 2), SUM(ResolutionWidth + 3), SUM(ResolutionWidth + 4), SUM(ResolutionWidth + 5), SUM(ResolutionWidth + 6), SUM(ResolutionWidth + 7), SUM(ResolutionWidth + 8), SUM(ResolutionWidth + 9), SUM(ResolutionWidth + 10), SUM(ResolutionWidth + 11), SUM(ResolutionWidth + 12), SUM(ResolutionWidth + 13), SUM(ResolutionWidth + 14), SUM(ResolutionWidth + 15), SUM(ResolutionWidth + 16), SUM(ResolutionWidth + 17), SUM(ResolutionWidth + 18), SUM(ResolutionWidth + 19), SUM(ResolutionWidth + 20), SUM(ResolutionWidth + 21), SUM(ResolutionWidth + 22), SUM(ResolutionWidth + 23), SUM(ResolutionWidth + 24), SUM(ResolutionWidth + 25), SUM(ResolutionWidth + 26), SUM(ResolutionWidth + 27), SUM(ResolutionWidth + 28), SUM(ResolutionWidth + 29), SUM(ResolutionWidth + 30), SUM(ResolutionWidth + 31), SUM(ResolutionWidth + 32), SUM(ResolutionWidth + 33), SUM(ResolutionWidth + 34), SUM(ResolutionWidth + 35), SUM(ResolutionWidth + 36), SUM(ResolutionWidth + 37), SUM(ResolutionWidth + 38), SUM(ResolutionWidth + 39), SUM(ResolutionWidth + 40), SUM(ResolutionWidth + 41), SUM(ResolutionWidth + 42), SUM(ResolutionWidth + 43), SUM(ResolutionWidth + 44), SUM(ResolutionWidth + 45), SUM(ResolutionWidth + 46), SUM(ResolutionWidth + 47), SUM(ResolutionWidth + 48), SUM(ResolutionWidth + 49), SUM(ResolutionWidth + 50), SUM(ResolutionWidth + 51), SUM(ResolutionWidth + 52), SUM(ResolutionWidth + 53), SUM(ResolutionWidth + 54), SUM(ResolutionWidth + 55), SUM(ResolutionWidth + 56), SUM(ResolutionWidth + 57), SUM(ResolutionWidth + 58), SUM(ResolutionWidth + 59), SUM(ResolutionWidth + 60), SUM(ResolutionWidth + 61), SUM(ResolutionWidth + 62), SUM(ResolutionWidth + 63), SUM(ResolutionWidth + 64), SUM(ResolutionWidth + 65), SUM(ResolutionWidth + 66), SUM(ResolutionWidth + 67), SUM(ResolutionWidth + 68), SUM(ResolutionWidth + 69), SUM(ResolutionWidth + 70), SUM(ResolutionWidth + 71), SUM(ResolutionWidth + 72), SUM(ResolutionWidth + 73), SUM(ResolutionWidth + 74), SUM(ResolutionWidth + 75), SUM(ResolutionWidth + 76), SUM(ResolutionWidth + 77), SUM(ResolutionWidth + 78), SUM(ResolutionWidth + 79), SUM(ResolutionWidth + 80), SUM(ResolutionWidth + 81), SUM(ResolutionWidth + 82), SUM(ResolutionWidth + 83), SUM(ResolutionWidth + 84), SUM(ResolutionWidth + 85), SUM(ResolutionWidth + 86), SUM(ResolutionWidth + 87), SUM(ResolutionWidth + 88), SUM(ResolutionWidth + 89) FROM hits; +SELECT SearchEngineID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <> '' GROUP BY SearchEngineID, ClientIP ORDER BY c DESC LIMIT 10; +SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits WHERE SearchPhrase <> '' GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10; +SELECT WatchID, ClientIP, COUNT(*) AS c, SUM(IsRefresh), AVG(ResolutionWidth) FROM hits GROUP BY WatchID, ClientIP ORDER BY c DESC LIMIT 10; +SELECT URL, COUNT(*) AS c FROM hits GROUP BY URL ORDER BY c DESC LIMIT 10; +SELECT 1, URL, COUNT(*) AS c FROM hits GROUP BY 1, URL ORDER BY c DESC LIMIT 10; +SELECT ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3, COUNT(*) AS c FROM hits GROUP BY ClientIP, ClientIP - 1, ClientIP - 2, ClientIP - 3 ORDER BY c DESC LIMIT 10; +SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND IsRefresh = 0 AND URL <> '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10; +SELECT Title, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND IsRefresh = 0 AND Title <> '' GROUP BY Title ORDER BY PageViews DESC LIMIT 10; +SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND IsLink <> 0 AND IsDownload = 0 GROUP BY URL ORDER BY PageViews DESC LIMIT 10 OFFSET 1000; +SELECT TraficSourceID, SearchEngineID, AdvEngineID, CASE WHEN (SearchEngineID = 0 AND AdvEngineID = 0) THEN Referer ELSE '' END AS Src, URL AS Dst, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 GROUP BY TraficSourceID, SearchEngineID, AdvEngineID, Src, Dst ORDER BY PageViews DESC LIMIT 10 OFFSET 1000; +SELECT URLHash, EventDate, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND TraficSourceID IN (-1, 6) AND RefererHash = 3594120000172545465 GROUP BY URLHash, EventDate ORDER BY PageViews DESC LIMIT 10 OFFSET 100; +SELECT WindowClientWidth, WindowClientHeight, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND IsRefresh = 0 AND DontCountHits = 0 AND URLHash = 2868770270353813622 GROUP BY WindowClientWidth, WindowClientHeight ORDER BY PageViews DESC LIMIT 10 OFFSET 10000; +SELECT DATE_TRUNC('minute', EventTime) AS M, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-14' AND EventDate <= '2013-07-15' AND IsRefresh = 0 AND DontCountHits = 0 GROUP BY DATE_TRUNC('minute', EventTime) ORDER BY DATE_TRUNC('minute', EventTime) LIMIT 10 OFFSET 1000; diff --git a/timescale-cloud/results/16cpu.json b/timescale-cloud/results/16cpu.json new file mode 100644 index 000000000..fd5ffff00 --- /dev/null +++ b/timescale-cloud/results/16cpu.json @@ -0,0 +1,230 @@ +{ + "system": "Timescale Cloud", + "machine": "16 vCPU 64GB", + "tags": [ + "C", + "PostgreSQL compatible", + "column-oriented", + "time-series", + "managed" + ], + "load_time": 3582, + "data_size": 19304824832, + "result": [ + [ + 0.075078, + 0.062641, + 0.060859 + ], + [ + 0.356679, + 0.217159, + 0.218063 + ], + [ + 0.330869, + 0.319226, + 0.320091 + ], + [ + 0.274104, + 0.257301, + 0.264884 + ], + [ + 14.8053, + 14.7817, + 14.6727 + ], + [ + 22.4741, + 22.8597, + 21.8114 + ], + [ + 0.230202, + 0.218084, + 0.216785 + ], + [ + 0.242509, + 0.237666, + 0.238227 + ], + [ + 25.2311, + 25.2713, + 25.2604 + ], + [ + 29.4385, + 29.4391, + 29.3042 + ], + [ + 2.56387, + 2.50663, + 2.48296 + ], + [ + 3.29134, + 3.27938, + 3.29352 + ], + [ + 6.93207, + 7.33038, + 6.91789 + ], + [ + 10.47, + 10.3729, + 10.2536 + ], + [ + 8.08343, + 8.17223, + 8.24336 + ], + [ + 16.4222, + 16.6352, + 16.3149 + ], + [ + 29.7131, + 29.8508, + 29.7349 + ], + [ + 15.5166, + 15.4578, + 15.4986 + ], + [ + 72.0715, + 72.0958, + 72.2937 + ], + [ + 0.20411, + 0.200251, + 0.200248 + ], + [ + 1.75535, + 1.68471, + 1.68637 + ], + [ + 1.69671, + 1.69661, + 1.70221 + ], + [ + 2.05127, + 1.99516, + 2.0107 + ], + [ + 0.104263, + 0.099408, + 0.101126 + ], + [ + 0.057888, + 0.056858, + 0.05627 + ], + [ + 0.510376, + 0.516145, + 0.516876 + ], + [ + 0.057811, + 0.05596, + 0.055793 + ], + [ + 6.03674, + 6.04754, + 6.02444 + ], + [ + 43.4727, + 43.3198, + 41.1564 + ], + [ + 13.0009, + 12.9786, + 12.9858 + ], + [ + 9.18186, + 9.22684, + 9.17831 + ], + [ + 20.2325, + 20.3254, + 19.9995 + ], + [ + 185.469, + 189.014, + 188.07 + ], + [ + 34.3162, + 34.0653, + 34.0879 + ], + [ + 35.5032, + 35.8524, + 35.7265 + ], + [ + 12.6179, + 12.6148, + 12.5377 + ], + [ + 0.354916, + 0.342253, + 0.34791 + ], + [ + 0.092101, + 0.095784, + 0.095194 + ], + [ + 0.053379, + 0.05307, + 0.053502 + ], + [ + 0.776028, + 0.702947, + 0.729014 + ], + [ + 0.057851, + 0.058563, + 0.057731 + ], + [ + 0.043598, + 0.044703, + 0.044412 + ], + [ + 0.056388, + 0.055425, + 0.057354 + ] + ] +} diff --git a/timescale-cloud/results/4cpu.json b/timescale-cloud/results/4cpu.json new file mode 100644 index 000000000..8b03f4076 --- /dev/null +++ b/timescale-cloud/results/4cpu.json @@ -0,0 +1,230 @@ +{ + "system": "Timescale Cloud", + "machine": "4 vCPU 16GB", + "tags": [ + "C", + "PostgreSQL compatible", + "column-oriented", + "time-series", + "managed" + ], + "load_time": 4536, + "data_size": 19304824832, + "result": [ + [ + 0.132563, + 0.06754, + 0.066227 + ], + [ + 12.47, + 0.418352, + 0.425837 + ], + [ + 13.5199, + 0.695965, + 0.700155 + ], + [ + 16.0906, + 0.543066, + 0.53308 + ], + [ + 22.81, + 22.5785, + 22.6563 + ], + [ + 100.193, + 44.5759, + 44.3303 + ], + [ + 8.30518, + 0.423394, + 0.423294 + ], + [ + 0.466769, + 0.483534, + 0.469381 + ], + [ + 121.409, + 89.9863, + 81.032 + ], + [ + 121.644, + 89.3886, + 90.3642 + ], + [ + 24.5323, + 9.27267, + 9.28532 + ], + [ + 26.1658, + 13.2515, + 13.3088 + ], + [ + 32.3703, + 10.14, + 9.28468 + ], + [ + 33.4338, + 32.7155, + 32.9535 + ], + [ + 23.001, + 10.5094, + 10.4578 + ], + [ + 22.3244, + 22.3388, + 21.6968 + ], + [ + 38.4224, + 38.0172, + 38.1108 + ], + [ + 24.9415, + 25.1886, + 25.1446 + ], + [ + 65.9534, + 40.2524, + 38.3269 + ], + [ + 0.199252, + 0.202224, + 0.199557 + ], + [ + 43.2147, + 5.55271, + 4.90265 + ], + [ + 5.62701, + 5.25481, + 5.24404 + ], + [ + 32.8954, + 7.01226, + 5.87382 + ], + [ + 0.185235, + 0.103521, + 0.102187 + ], + [ + 0.136064, + 0.057624, + 0.056844 + ], + [ + 6.97666, + 1.34103, + 1.34622 + ], + [ + 0.058549, + 0.058072, + 0.058526 + ], + [ + 32.4044, + 19.7943, + 19.0585 + ], + [ + 175.214, + 140.977, + 140.618 + ], + [ + 52.3848, + 38.8652, + 38.6217 + ], + [ + 63.2884, + 15.4103, + 15.6003 + ], + [ + 65.86, + 79.4447, + 55.9994 + ], + [ + 244.804, + 237.298, + 263.979 + ], + [ + 114.885, + 49.2981, + 46.3849 + ], + [ + 47.8801, + 50.7047, + 47.5506 + ], + [ + 51.5432, + 21.8774, + 21.6287 + ], + [ + 0.696973, + 0.47058, + 0.467237 + ], + [ + 0.310589, + 0.128216, + 0.128819 + ], + [ + 0.115109, + 0.068861, + 0.068149 + ], + [ + 1.48006, + 1.10717, + 1.09055 + ], + [ + 0.135312, + 0.078641, + 0.078742 + ], + [ + 0.073446, + 0.057867, + 0.066032 + ], + [ + 0.113972, + 0.094673, + 0.09543 + ] + ] +} diff --git a/timescale-cloud/results/8cpu.json b/timescale-cloud/results/8cpu.json new file mode 100644 index 000000000..0790f0717 --- /dev/null +++ b/timescale-cloud/results/8cpu.json @@ -0,0 +1,230 @@ +{ + "system": "Timescale Cloud", + "machine": "8 vCPU 32GB", + "tags": [ + "C", + "PostgreSQL compatible", + "column-oriented", + "time-series", + "managed" + ], + "load_time": 4100, + "data_size": 19304824832, + "result": [ + [ + 0.077708, + 0.059169, + 0.059776 + ], + [ + 0.610029, + 0.300701, + 0.2942 + ], + [ + 0.596807, + 0.473727, + 0.473655 + ], + [ + 0.543076, + 0.386686, + 0.367081 + ], + [ + 22.8123, + 22.3908, + 22.4697 + ], + [ + 44.1105, + 43.6139, + 43.4017 + ], + [ + 0.40188, + 0.294889, + 0.291965 + ], + [ + 0.330931, + 0.324949, + 0.324184 + ], + [ + 81.8691, + 80.6517, + 81.067 + ], + [ + 88.4032, + 88.1518, + 88.0832 + ], + [ + 10.7307, + 9.34208, + 9.2576 + ], + [ + 14.4886, + 13.3007, + 13.2212 + ], + [ + 7.5493, + 7.55247, + 7.71715 + ], + [ + 32.7137, + 32.3522, + 32.0355 + ], + [ + 8.46518, + 8.54379, + 8.50341 + ], + [ + 17.4125, + 17.7189, + 17.4182 + ], + [ + 31.5671, + 31.4438, + 31.2331 + ], + [ + 17.4257, + 17.4776, + 17.5177 + ], + [ + 77.2229, + 76.5833, + 76.9343 + ], + [ + 0.19568, + 0.192536, + 0.208533 + ], + [ + 28.2475, + 5.43625, + 3.03199 + ], + [ + 3.02817, + 3.02891, + 3.00948 + ], + [ + 25.2653, + 3.62269, + 3.60629 + ], + [ + 0.125884, + 0.106314, + 0.105304 + ], + [ + 0.110555, + 0.058473, + 0.055182 + ], + [ + 1.28762, + 0.811976, + 0.813051 + ], + [ + 0.055858, + 0.054563, + 0.056349 + ], + [ + 14.2602, + 10.0349, + 10.0452 + ], + [ + 97.4627, + 90.6144, + 90.5417 + ], + [ + 27.2562, + 23.3383, + 23.2969 + ], + [ + 29.3687, + 9.91587, + 9.79159 + ], + [ + 21.5964, + 20.7483, + 21.0502 + ], + [ + 200.438, + 196.866, + 192.585 + ], + [ + 52.2831, + 36.8464, + 36.2378 + ], + [ + 38.5351, + 37.7414, + 38.1977 + ], + [ + 13.8983, + 13.893, + 13.8798 + ], + [ + 0.405851, + 0.384899, + 0.393844 + ], + [ + 0.142963, + 0.102368, + 0.102197 + ], + [ + 0.065548, + 0.061028, + 0.060279 + ], + [ + 0.871367, + 0.83288, + 0.853763 + ], + [ + 0.123719, + 0.067854, + 0.06501 + ], + [ + 0.052932, + 0.051012, + 0.049953 + ], + [ + 0.082306, + 0.069516, + 0.070417 + ] + ] +} diff --git a/timescale-cloud/run.sh b/timescale-cloud/run.sh new file mode 100755 index 000000000..b8612158a --- /dev/null +++ b/timescale-cloud/run.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +TRIES=3 + +cat queries.sql | while read query; do + echo "$query"; + for i in $(seq 1 $TRIES); do + psql "${CONNECTION_STRING}" -t -c '\timing' -c "$query" | grep 'Time' + done; +done;