Skip to content
Merged
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
3 changes: 3 additions & 0 deletions cedardb-parquet/benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash
# Thin shim — actual flow is in lib/benchmark-common.sh.
export BENCH_DOWNLOAD_SCRIPT="download-hits-parquet-single"
export PGHOST="/tmp"
export PGUSER=postgres
export PGDATABASE=postgres
exec ../lib/benchmark-common.sh
2 changes: 1 addition & 1 deletion cedardb-parquet/check
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
set -e

PGPASSWORD=test psql -h localhost -U postgres -c 'SELECT 1' >/dev/null
psql -c 'SELECT 1' >/dev/null
2 changes: 1 addition & 1 deletion cedardb-parquet/create.sql
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ SELECT
"RefererHash" AS RefererHash,
"URLHash" AS URLHash,
"CLID" AS CLID
FROM '/data/hits.parquet';
FROM 'hits.parquet';
2 changes: 1 addition & 1 deletion cedardb-parquet/data-size
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -eu

# No ingestion — reported size is the parquet file itself.
stat -c%s data/hits.parquet
stat -c%s hits.parquet
14 changes: 10 additions & 4 deletions cedardb-parquet/install
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
set -eu

sudo apt-get update -y
sudo apt-get install -y docker.io postgresql-client
sudo apt-get install -y postgresql-client

sudo docker pull cedardb/cedardb:latest
# Stop any running instance before reinstalling
./stop || true

mkdir -p data db
chmod -R 777 data db
# Delete potential previously created database
rm -rf ./db

curl https://get.cedardb.com | bash -s -- -y \
--install-dir "$PWD" \
--db-dir "$PWD/db" \
--with-systemd=system
10 changes: 3 additions & 7 deletions cedardb-parquet/load
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#!/bin/bash
set -eu

# Stage parquet file under ./data so the docker container sees /data/hits.parquet.
mkdir -p data
mv hits.parquet data/
chmod -R 777 data

# create.sql defines a view over the parquet file — no ingestion needed.
PGPASSWORD=test psql -h localhost -U postgres -t < create.sql
# Substitute the absolute path so CedarDB can find the file regardless of
# its working directory.
sed "s|'hits\.parquet'|'$PWD/hits.parquet'|" create.sql | psql

sync
2 changes: 1 addition & 1 deletion cedardb-parquet/query
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set -e

query=$(cat)

raw=$(PGPASSWORD=test psql -h localhost -U postgres -t -c '\timing' -c "$query" 2>&1) && exit_code=0 || exit_code=$?
raw=$(psql -t -c '\timing' -c "$query" 2>&1) && exit_code=0 || exit_code=$?

if [ "$exit_code" -ne 0 ] || printf '%s\n' "$raw" | grep -qE '^ERROR|psql: error'; then
printf '%s\n' "$raw" >&2
Expand Down
57 changes: 57 additions & 0 deletions cedardb-parquet/results/20260630/c6a.2xlarge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"system": "CedarDB (Parquet)",
"date": "2026-06-30",
"machine": "c6a.2xlarge",
"cluster_size": 1,
"proprietary": "yes",
"hardware": "cpu",
"tuned": "no",
"tags": ["C++","column-oriented","PostgreSQL compatible","stateless"],
"load_time": 4,
"data_size": 14779976446,
"result": [
[0.36, 0.036, 0.057],
[0.375, 0.055, 0.078],
[0.373, 0.139, 0.164],
[0.486, 0.113, 0.14],
[0.701, 0.294, 0.267],
[1.002, 0.647, 0.624],
[0.524, 0.436, 0.412],
[0.364, 0.062, 0.06],
[0.846, 0.383, 0.376],
[1.209, 0.564, 0.539],
[0.797, 0.167, 0.168],
[0.668, 0.201, 0.228],
[1.032, 0.64, 0.608],
[2.289, 0.857, 0.893],
[1.1, 0.657, 0.68],
[0.743, 0.288, 0.287],
[2.123, 0.88, 0.826],
[2.09, 0.812, 0.83],
[4.153, 2.117, 2.095],
[0.499, 0.107, 0.129],
[9.449, 1.418, 1.35],
[11.047, 1.574, 1.543],
[21.626, 2.983, 2.985],
[55.655, 56.957, 41.794],
[2.45, 0.648, 0.684],
[1.144, 0.413, 0.436],
[2.454, 0.654, 0.689],
[9.59, 1.407, 1.464],
[8.202, 7.234, 7.267],
[0.391, 0.118, 0.142],
[2.239, 0.714, 0.744],
[5.69, 0.767, 0.762],
[5.358, 2.101, 2.508],
[15.653, 6.558, 331.355],
[12.651, 10.067, 217.036],
[0.628, 0.318, 0.29],
[9.846, 1.255, 1.235],
[8.996, 1.526, 1.578],
[9.822, 1.248, 1.228],
[18.627, 2.317, 2.297],
[2.849, 0.337, 0.374],
[2.054, 0.333, 0.368],
[1.112, 0.344, 0.319]
]
}
57 changes: 57 additions & 0 deletions cedardb-parquet/results/20260630/c6a.4xlarge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"system": "CedarDB (Parquet)",
"date": "2026-06-30",
"machine": "c6a.4xlarge",
"cluster_size": 1,
"proprietary": "yes",
"hardware": "cpu",
"tuned": "no",
"tags": ["C++","column-oriented","PostgreSQL compatible","stateless"],
"load_time": 1,
"data_size": 14779976446,
"result": [
[0.082, 0.032, 0.055],
[0.382, 0.051, 0.073],
[0.402, 0.119, 0.097],
[0.569, 0.076, 0.076],
[0.573, 0.188, 0.194],
[0.804, 0.383, 0.354],
[0.387, 0.227, 0.249],
[0.381, 0.055, 0.075],
[0.702, 0.297, 0.263],
[1.19, 0.423, 0.437],
[0.588, 0.132, 0.161],
[0.638, 0.158, 0.186],
[0.819, 0.38, 0.349],
[2.193, 0.523, 0.567],
[0.903, 0.417, 0.391],
[0.517, 0.255, 0.224],
[2.118, 0.584, 0.543],
[2.069, 0.501, 0.53],
[4.12, 1.306, 1.273],
[0.561, 0.068, 0.069],
[9.462, 0.726, 0.783],
[11.043, 0.845, 0.825],
[21.645, 1.668, 1.585],
[55.594, 5.571, 5.55],
[2.456, 0.355, 0.389],
[0.752, 0.246, 0.259],
[2.451, 0.377, 0.377],
[9.563, 0.753, 0.806],
[8.024, 3.792, 3.763],
[0.373, 0.075, 0.075],
[2.226, 0.437, 0.412],
[5.655, 0.458, 0.506],
[4.89, 1.361, 1.418],
[9.882, 1.389, 1.469],
[9.879, 1.418, 1.409],
[0.885, 0.189, 0.192],
[9.852, 0.657, 0.714],
[9.005, 0.807, 0.86],
[9.822, 0.712, 0.658],
[18.613, 1.179, 1.181],
[2.843, 0.234, 0.267],
[2.052, 0.231, 0.269],
[1.131, 0.223, 0.199]
]
}
57 changes: 57 additions & 0 deletions cedardb-parquet/results/20260630/c6a.large.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"system": "CedarDB (Parquet)",
"date": "2026-06-30",
"machine": "c6a.large",
"cluster_size": 1,
"proprietary": "yes",
"hardware": "cpu",
"tuned": "no",
"tags": ["C++","column-oriented","PostgreSQL compatible","stateless"],
"load_time": 0,
"data_size": 14779976446,
"result": [
[0.358, 0.056, 0.082],
[0.488, 0.123, 0.148],
[0.991, 0.456, 0.481],
[1.652, 0.359, 0.357],
[2.239, null, 1.346],
[8.526, 75.256, 116.169],
[1.764, 1.535, 1.568],
[0.523, 0.172, 0.145],
[null, 2.186, 1.881],
[null, null, 4.746],
[2.01, 0.558, 0.532],
[2.077, 0.624, 0.656],
[null, 100.434, 132.033],
[null, null, null],
[4.461, null, null],
[2.344, null, null],
[null, null, null],
[null, null, null],
[null, null, null],
[1.65, 0.309, 0.34],
[12.382, 5.216, 5.297],
[14.298, 14.446, 14.346],
[27.378, 28.029, 28.33],
[77.538, 79.128, 79.729],
[4.795, 2.448, 2.472],
[2.61, 1.559, 1.531],
[4.861, 2.475, 2.46],
[12.395, 5.45, 5.485],
[33.2, 35.055, 66.267],
[0.794, 0.377, 0.376],
[4.945, 2.901, 2.708],
[null, null, 6.245],
[null, null, null],
[null, null, null],
[null, null, null],
[2.621, null, null],
[12.835, 4.982, 4.939],
[12.633, 5.941, 5.89],
[12.443, 4.637, 4.669],
[22.613, 28.332, 29.853],
[4.643, 1.2, 1.2],
[3.917, 1.225, 1.197],
[2.799, 1.113, 1.145]
]
}
57 changes: 57 additions & 0 deletions cedardb-parquet/results/20260630/c6a.metal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"system": "CedarDB (Parquet)",
"date": "2026-06-30",
"machine": "c6a.metal",
"cluster_size": 1,
"proprietary": "yes",
"hardware": "cpu",
"tuned": "no",
"tags": ["C++","column-oriented","PostgreSQL compatible","stateless"],
"load_time": 0,
"data_size": 14779976446,
"result": [
[0.072, 0.033, 0.046],
[0.174, 0.079, 0.059],
[0.241, 0.063, 0.058],
[0.279, 0.142, 0.124],
[0.366, 0.345, 0.172],
[0.748, 0.403, 0.223],
[0.246, 0.138, 0.11],
[0.186, 0.091, 0.098],
[0.625, 0.415, 0.169],
[1.203, 0.478, 0.241],
[0.452, 0.096, 0.118],
[0.511, 0.129, 0.109],
[0.76, 0.187, 0.194],
[2.291, 0.308, 0.32],
[0.814, 0.212, 0.199],
[0.456, 0.362, 0.162],
[1.945, 0.25, 0.257],
[1.978, 0.451, 0.258],
[3.831, 0.739, 0.488],
[0.281, 0.098, 0.097],
[9.474, 0.249, 0.263],
[10.975, 0.251, 0.264],
[21.743, 0.479, 0.35],
[55.498, 2.612, 2.552],
[2.417, 0.165, 0.144],
[0.676, 0.12, 0.109],
[2.391, 0.172, 0.167],
[9.594, 0.26, 0.265],
[8.359, 0.664, 0.659],
[0.257, 0.088, 0.106],
[2.157, 0.241, 0.259],
[5.861, 0.277, 0.276],
[4.497, 0.545, 0.554],
[9.639, 0.587, 0.56],
[9.644, 0.589, 0.58],
[0.544, 0.195, 0.167],
[9.815, 0.327, 0.265],
[8.947, 0.306, 0.285],
[9.779, 0.271, 0.28],
[18.649, 0.438, 0.468],
[2.783, 0.126, 0.137],
[1.955, 0.213, 0.199],
[1.043, 0.127, 0.164]
]
}
57 changes: 57 additions & 0 deletions cedardb-parquet/results/20260630/c6a.xlarge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"system": "CedarDB (Parquet)",
"date": "2026-06-30",
"machine": "c6a.xlarge",
"cluster_size": 1,
"proprietary": "yes",
"hardware": "cpu",
"tuned": "no",
"tags": ["C++","column-oriented","PostgreSQL compatible","stateless"],
"load_time": 1,
"data_size": 14779976446,
"result": [
[0.363, 0.043, 0.065],
[0.385, 0.075, 0.076],
[0.567, 0.243, 0.269],
[0.86, 0.194, 0.193],
[1.206, 0.512, 0.478],
[1.813, 1.205, 1.169],
[0.941, 0.812, 0.784],
[0.402, 0.114, 0.087],
[1.485, 0.703, 0.713],
[1.984, 1.044, 1.001],
[1.027, 0.313, 0.284],
[1.078, 0.337, 0.363],
[1.816, 1.164, 1.138],
[2.807, 1.64, 1.604],
[1.935, 1.262, 1.234],
[1.243, 0.51, 0.532],
[null, null, null],
[null, null, null],
[null, null, null],
[0.846, 0.169, 0.168],
[9.482, 2.632, 2.678],
[11.042, 3.013, 2.955],
[21.634, 5.973, 5.873],
[56.318, 56.351, 49.949],
[2.454, 1.246, 1.28],
[1.422, 0.806, 0.778],
[2.483, 1.254, 1.29],
[9.564, 2.742, 2.809],
[15.959, 14.329, 14.298],
[0.456, 0.202, 0.227],
[2.569, 1.354, 1.389],
[5.778, 1.464, 1.432],
[null, null, null],
[null, null, null],
[null, null, null],
[1.08, 0.511, 0.531],
[9.876, 2.33, 2.382],
[8.984, 2.969, 2.97],
[9.803, 2.318, 2.369],
[18.614, 4.358, 4.437],
[2.83, 0.658, 0.637],
[2.042, 0.653, 0.623],
[1.442, 0.576, 0.578]
]
}
Loading
Loading