Skip to content

Commit 8632112

Browse files
Merge pull request #185 from Gabriel39/perf_0426
Update SelectDB and Apache Doris results
2 parents 4ac89e5 + 51dd404 commit 8632112

File tree

6 files changed

+572
-74
lines changed

6 files changed

+572
-74
lines changed

doris/benchmark.sh

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ set -ex
66
# Install
77
ROOT=$(pwd)
88

9+
910
if [[ -n "$1" ]]; then
1011
url="$1"
1112
else
12-
url='https://doris-release.s3.us-east-1.amazonaws.com/1.2/doris-1.2.0.alpha-x86_64.tar.gz'
13+
url='https://doris-clickbench.oss-ap-southeast-1.aliyuncs.com/doris-linux_x64.tar.gz'
1314
fi
1415
# Download
1516
file_name="$(basename ${url})"
@@ -24,31 +25,27 @@ dir_name="${file_name/.tar.gz/}"
2425

2526
# Try to stop SelectDB and remove it first if execute this script multiple times
2627
set +e
27-
"$dir_name"/fe/bin/stop_fe.sh
28-
"$dir_name"/be/bin/stop_be.sh
28+
"$dir_name"/output/fe/bin/stop_fe.sh
29+
"$dir_name"/output/be/bin/stop_be.sh
2930
rm -rf "$dir_name"
3031
set -e
3132

3233
# Uncompress
3334
mkdir "$dir_name"
3435
tar zxf "$file_name" -C "$dir_name"
35-
DORIS_HOME="$ROOT/$dir_name/"
36+
DORIS_HOME="$ROOT/$dir_name/output"
3637
export DORIS_HOME
3738

3839
# Install dependencies
39-
sudo yum install -y mysql java-11-amazon-corretto.x86_64
40-
export JAVA_HOME="/usr/lib/jvm/java-11-amazon-corretto.x86_64/"
40+
sudo yum install -y java-17-amazon-corretto.x86_64
41+
sudo dnf -y localinstall https://dev.mysql.com/get/mysql80-community-release-el9-4.noarch.rpm
42+
sudo dnf -y install mysql mysql-community-client
43+
export JAVA_HOME="/usr/lib/jvm/java-17-amazon-corretto.x86_64/"
4144
export PATH=$JAVA_HOME/bin:$PATH
4245

43-
IPADDR=$(hostname -i)
44-
45-
# Start Frontend
46-
echo "priority_networks = ${IPADDR}/24" >>"$DORIS_HOME"/fe/conf/fe_custom.conf
4746
"$DORIS_HOME"/fe/bin/start_fe.sh --daemon
4847

4948
# Start Backend
50-
echo "priority_networks = ${IPADDR}/24
51-
load_process_max_memory_limit_percent=80" >>"$DORIS_HOME"/be/conf/be_custom.conf
5249
sudo sysctl -w vm.max_map_count=2000000
5350
"$DORIS_HOME"/be/bin/start_be.sh --daemon
5451

@@ -65,7 +62,7 @@ while true; do
6562
done
6663

6764
# Setup cluster, add Backend to cluster
68-
mysql -h 127.0.0.1 -P9030 -uroot -e "ALTER SYSTEM ADD BACKEND '${IPADDR}:9050' "
65+
mysql -h 127.0.0.1 -P9030 -uroot -e "ALTER SYSTEM ADD BACKEND '127.0.0.1:9050' "
6966

7067
# Wait for Backend ready
7168
while true; do
@@ -79,6 +76,8 @@ while true; do
7976
fi
8077
done
8178

79+
echo 3 | sudo tee /proc/sys/vm/drop_caches >/dev/null
80+
8281
# Create Database and table
8382
mysql -h 127.0.0.1 -P9030 -uroot -e "CREATE DATABASE hits"
8483
sleep 5

doris/results/c6a.metal.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"system": "Apache Doris",
3+
"date": "2024-04-26",
4+
"machine": "c6a.metal, 500gb gp2",
5+
"cluster_size": 1,
6+
"comment": "",
7+
"tags": ["C++", "column-oriented", "MySQL compatible", "ClickHouse derivative"],
8+
"load_time": 490,
9+
"data_size": 17358223424,
10+
"result": [
11+
[0.03,0.03,0.02],
12+
[0.05,0.04,0.04],
13+
[0.65,0.04,0.05],
14+
[2.91,0.05,0.05],
15+
[0.17,0.17,0.18],
16+
[2.05,0.21,0.20],
17+
[0.02,0.02,0.02],
18+
[0.05,0.04,0.05],
19+
[1.64,0.24,0.24],
20+
[0.25,0.26,0.25],
21+
[0.09,0.09,0.09],
22+
[0.61,0.09,0.08],
23+
[0.21,0.20,0.21],
24+
[0.27,0.24,0.25],
25+
[0.23,0.23,0.22],
26+
[0.11,0.10,0.11],
27+
[0.24,0.24,0.23],
28+
[0.07,0.07,0.08],
29+
[2.19,0.42,0.42],
30+
[0.02,0.01,0.01],
31+
[11.21,0.11,0.11],
32+
[0.07,0.07,0.07],
33+
[10.20,0.11,0.11],
34+
[0.41,0.09,0.10],
35+
[0.05,0.05,0.05],
36+
[0.09,0.10,0.09],
37+
[0.04,0.05,0.05],
38+
[0.27,0.22,0.22],
39+
[9.19,0.96,0.93],
40+
[0.10,0.07,0.06],
41+
[1.86,0.12,0.13],
42+
[4.06,0.15,0.14],
43+
[0.71,0.79,0.74],
44+
[1.04,0.93,0.96],
45+
[0.94,0.92,1.07],
46+
[0.17,0.17,0.16],
47+
[0.06,0.05,0.05],
48+
[0.05,0.04,0.05],
49+
[0.05,0.04,0.04],
50+
[0.09,0.07,0.08],
51+
[0.26,0.05,0.07],
52+
[0.25,0.04,0.05],
53+
[0.05,0.05,0.04]
54+
]
55+
}

0 commit comments

Comments
 (0)