Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 46 additions & 46 deletions duckdb-dataframe/results/c6a.metal.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
{
"system": "DuckDB (DataFrame)",
"date": "2025-09-07",
"date": "2025-09-16",
"machine": "c6a.metal",
"cluster_size": 1,
"proprietary": "no",
"tuned": "no",
"tags": ["C++","column-oriented","embedded","Python","dataframe"],
"load_time": 94,
"data_size": 179532066816,
"load_time": 82.77,
"data_size": 176641134592,
"result": [
[0.028, 0.018, 0.017],
[0.026, 0.018, 0.018],
[0.025, 0.022, 0.024],
[0.036, 0.022, 0.025],
[0.22, 0.186, 0.162],
[0.163, 0.167, 0.16],
[0.031, 0.029, 0.032],
[0.035, 0.039, 0.039],
[0.206, 0.2, 0.192],
[0.253, 0.233, 0.238],
[0.074, 0.069, 0.074],
[0.084, 0.076, 0.069],
[0.143, 0.145, 0.144],
[0.286, 0.284, 0.277],
[0.182, 0.147, 0.151],
[0.164, 0.167, 0.176],
[0.401, 0.348, 0.29],
[0.286, 0.295, 0.29],
[0.388, 0.41, 0.395],
[0.024, 0.025, 0.026],
[0.552, 0.311, 0.31],
[0.311, 0.382, 0.424],
[0.597, 0.585, 0.591],
[1.251, 0.985, 1.002],
[0.064, 0.064, 0.067],
[0.068, 0.069, 0.069],
[0.071, 0.072, 0.071],
[0.276, 0.291, 0.298],
[1.511, 1.455, 1.657],
[0.038, 0.032, 0.036],
[0.216, 0.172, 0.163],
[0.209, 0.186, 0.197],
[0.588, 0.55, 0.5],
[0.62, 0.579, 0.534],
[0.554, 0.597, 0.565],
[0.203, 0.212, 0.189],
[0.276, 0.267, 0.274],
[0.348, 0.339, 0.34],
[0.261, 0.261, 0.263],
[0.396, 0.397, 0.391],
[0.033, 0.032, 0.035],
[0.035, 0.037, 0.037],
[0.045, 0.048, 0.05]
[0.034, 0.016, 0.017],
[0.035, 0.022, 0.024],
[0.029, 0.026, 0.025],
[0.066, 0.026, 0.031],
[0.865, 0.094, 0.097],
[0.171, 0.151, 0.166],
[0.031, 0.03, 0.035],
[0.022, 0.023, 0.025],
[0.11, 0.114, 0.114],
[0.14, 0.141, 0.143],
[0.055, 0.052, 0.051],
[0.07, 0.054, 0.056],
[0.154, 0.15, 0.151],
[0.199, 0.194, 0.197],
[0.147, 0.152, 0.174],
[0.108, 0.106, 0.104],
[0.228, 0.223, 0.236],
[0.245, 0.254, 0.236],
[0.331, 0.345, 0.315],
[0.053, 0.03, 0.031],
[0.328, 0.315, 0.308],
[0.329, 0.332, 0.355],
[0.613, 0.622, 0.615],
[1.396, 1.1, 1.104],
[0.086, 0.08, 0.08],
[0.075, 0.076, 0.075],
[0.087, 0.085, 0.082],
[0.308, 0.322, 0.308],
[1.471, 1.36, 1.39],
[0.037, 0.037, 0.033],
[0.14, 0.136, 0.119],
[0.186, 0.141, 0.139],
[0.46, 0.43, 0.421],
[0.57, 0.563, 0.615],
[0.589, 0.547, 0.551],
[0.132, 0.127, 0.131],
[0.313, 0.31, 0.308],
[0.371, 0.363, 0.358],
[0.277, 0.32, 0.319],
[0.455, 0.421, 0.446],
[0.038, 0.039, 0.034],
[0.035, 0.036, 0.038],
[0.046, 0.067, 0.052]
]
}

5 changes: 1 addition & 4 deletions duckdb-memory/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ source myenv/bin/activate
pip install duckdb psutil

# Load the data

sudo apt-get install -y pigz
wget --continue --progress=dot:giga 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
pigz -d -f hits.tsv.gz
wget --continue --progress=dot:giga 'https://datasets.clickhouse.com/hits_compatible/hits.parquet'

# Run the queries

Expand Down
2 changes: 2 additions & 0 deletions duckdb-memory/create.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ATTACH ':memory:' AS compressed_mem (COMPRESS);
USE compressed_mem;
CREATE TABLE hits
(
WatchID BIGINT NOT NULL,
Expand Down
7 changes: 7 additions & 0 deletions duckdb-memory/load.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
INSERT INTO hits
SELECT * REPLACE (
make_date(EventDate) AS EventDate,
epoch_ms(EventTime * 1000) AS EventTime,
epoch_ms(ClientEventTime * 1000) AS ClientEventTime,
epoch_ms(LocalEventTime * 1000) AS LocalEventTime)
FROM read_parquet('hits.parquet', binary_as_string=True);
2 changes: 1 addition & 1 deletion duckdb-memory/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
con.execute("SET preserve_insertion_order = false;")

con.execute(open("create.sql").read())
con.execute("COPY hits FROM 'hits.csv';")
con.execute(open("load.sql").read())
2 changes: 1 addition & 1 deletion duckdb-memory/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
print("Will load the data")
start = timeit.default_timer()
con.execute(open("create.sql").read())
con.execute("COPY hits FROM 'hits.tsv' (QUOTE '');")
con.execute(open("load.sql").read())
end = timeit.default_timer()
print(round(end - start, 3))

Expand Down
90 changes: 45 additions & 45 deletions duckdb-memory/results/c6a.4xlarge.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,52 @@
"proprietary": "no",
"tuned": "no",
"tags": ["C++","column-oriented","embedded"],
"load_time": 429,
"data_size": 27956441088,
"load_time": 281.689,
"data_size": 28136767488,
"result": [
[0.032, 0.013, 0.006],
[0.67, 0.016, 0.016],
[0.667, 0.051, 0.061],
[1.702, 0.047, 0.089],
[0.778, 0.544, 0.498],
[2.859, 0.72, 0.52],
[1.022, 0.022, 0.022],
[0.079, 0.013, 0.013],
[1.815, 1.078, 0.814],
[1.086, 1.082, 0.937],
[1.38, 0.11, 0.107],
[0.646, 0.145, 0.14],
[0.739, 0.468, 0.427],
[1.379, 0.874, 1.345],
[1.035, 0.503, 0.437],
[0.595, 0.463, 0.446],
[1.32, 1.227, 1.079],
[0.771, 0.807, 0.821],
[4.499, 2.536, 2.253],
[0.096, 0.023, 0.023],
[26.487, 10.098, 6.269],
[5.939, 6.146, 4.001],
[42.878, 38.645, 34.709],
[6.553, 1.854, 1.948],
[0.505, 0.074, 0.035],
[0.238, 0.229, 0.09],
[0.032, 0.027, 0.034],
[15.547, 13.13, 9.468],
[28.847, 17.557, 13.645],
[0.818, 0.031, 0.019],
[6.765, 2.383, 1.185],
[5.801, 2.327, 2.681],
[14.69, 3.848, 2.552],
[27.652, 23.772, 19.437],
[15.76, 16.019, 12.449],
[1.041, 0.622, 0.585],
[0.064, 0.023, 0.033],
[0.121, 0.026, 0.017],
[0.023, 0.009, 0.01],
[0.085, 0.039, 0.049],
[0.034, 0.007, 0.007],
[0.028, 0.007, 0.007],
[0.024, 0.009, 0.01]
[0.032,0.003,0.003],
[0.009,0.01,0.005],
[0.03,0.022,0.022],
[0.041,0.034,0.033],
[0.371,0.364,0.366],
[0.374,0.335,0.32],
[0.006,0.005,0.005],
[0.018,0.006,0.006],
[0.4,0.402,0.401],
[0.554,0.554,0.552],
[0.082,0.081,0.079],
[0.085,0.088,0.088],
[0.366,0.351,0.35],
[0.701,0.693,0.674],
[0.395,0.392,0.388],
[0.37,0.36,0.356],
[0.862,0.817,0.832],
[0.633,0.638,0.615],
[1.584,1.57,1.563],
[0.008,0.012,0.007],
[0.546,0.521,0.501],
[0.499,0.498,0.501],
[0.766,0.677,0.682],
[0.084,0.08,0.08],
[0.02,0.02,0.02],
[0.075,0.07,0.069],
[0.021,0.015,0.015],
[0.409,0.407,0.405],
[6.503,6.472,6.45],
[0.033,0.03,0.032],
[0.301,0.3,0.299],
[0.39,0.369,0.374],
[1.826,1.753,1.744],
[1.805,1.777,1.779],
[1.959,1.955,1.934],
[0.476,0.505,0.538],
[0.075,0.027,0.042],
[0.038,0.015,0.027],
[0.016,0.035,0.046],
[0.078,0.11,0.062],
[0.028,0.006,0.009],
[0.008,0.009,0.007],
[0.021,0.02,0.013]
]
}

94 changes: 47 additions & 47 deletions duckdb-memory/results/c6a.metal.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
{
"system": "DuckDB (memory)",
"date": "2025-08-31",
"date": "2025-09-16",
"machine": "c6a.metal",
"cluster_size": 1,
"proprietary": "no",
"tuned": "no",
"tags": ["C++","column-oriented","embedded"],
"load_time": 27,
"data_size": 118522880000,
"load_time": 15.244,
"data_size": 109925945344,
"result": [
[0.089, 0.018, 0.017],
[0.018, 0.01, 0.008],
[0.023, 0.019, 0.019],
[0.021, 0.022, 0.02],
[0.162, 0.149, 0.155],
[0.187, 0.145, 0.15],
[0.042, 0.018, 0.018],
[0.018, 0.012, 0.01],
[0.212, 0.184, 0.186],
[0.251, 0.233, 0.239],
[0.073, 0.073, 0.066],
[0.068, 0.071, 0.062],
[0.137, 0.126, 0.124],
[0.26, 0.271, 0.265],
[0.139, 0.154, 0.213],
[0.257, 0.159, 0.16],
[0.394, 0.35, 0.351],
[0.414, 0.303, 0.322],
[0.466, 0.386, 0.375],
[0.034, 0.033, 0.045],
[0.241, 0.094, 0.091],
[0.12, 0.118, 0.1],
[0.477, 0.214, 0.19],
[0.194, 0.115, 0.121],
[0.049, 0.049, 0.056],
[0.041, 0.04, 0.041],
[0.104, 0.07, 0.045],
[0.11, 0.103, 0.115],
[2.42, 1.384, 1.328],
[0.114, 0.033, 0.071],
[0.345, 0.134, 0.152],
[0.322, 0.314, 0.188],
[0.622, 0.642, 0.646],
[0.597, 0.509, 0.479],
[0.494, 0.484, 0.478],
[0.195, 0.175, 0.19],
[0.059, 0.046, 0.046],
[0.061, 0.042, 0.046],
[0.03, 0.04, 0.026],
[0.105, 0.043, 0.05],
[0.034, 0.032, 0.02],
[0.035, 0.01, 0.046],
[0.034, 0.013, 0.042]
]
[0.012,0.027,0.004],
[0.005,0.011,0.035],
[0.096,0.008,0.006],
[0.099,0.007,0.006],
[0.177,0.248,0.183],
[0.208,0.193,0.26],
[0.009,0.004,0.004],
[0.033,0.088,0.006],
[0.208,0.268,0.178],
[0.217,0.307,0.307],
[0.086,0.111,0.055],
[0.059,0.068,0.074],
[0.103,0.119,0.121],
[0.25,0.173,0.283],
[0.122,0.133,0.142],
[0.099,0.099,0.1],
[0.168,0.169,0.169],
[0.171,0.185,0.184],
[0.317,0.31,0.306],
[0.006,0.005,0.004],
[0.104,0.077,0.073],
[0.074,0.072,0.074],
[0.098,0.091,0.095],
[0.074,0.07,0.063],
[0.011,0.013,0.013],
[0.031,0.034,0.032],
[0.011,0.011,0.012],
[0.073,0.075,0.074],
[1.195,1.103,1.06],
[0.024,0.019,0.023],
[0.094,0.09,0.082],
[0.106,0.096,0.097],
[0.471,0.436,0.445],
[0.366,0.323,0.346],
[0.351,0.366,0.351],
[0.105,0.098,0.107],
[0.022,0.021,0.023],
[0.015,0.006,0.011],
[0.016,0.016,0.012],
[0.04,0.045,0.038],
[0.007,0.005,0.008],
[0.006,0.014,0.006],
[0.008,0.01,0.019]
]
}

Loading