diff --git a/hologres/README.md b/hologres/README.md index 1b2a7d875..369d8539b 100644 --- a/hologres/README.md +++ b/hologres/README.md @@ -16,5 +16,5 @@ To evaluate the performance of Hologres, follow these guidelines to set up and e 3. **Sample Execution**: ```bash - ./benchmark.sh ak sk host_name 80 + ./benchmark.sh ak sk host_name port ``` diff --git a/hologres/benchmark.sh b/hologres/benchmark.sh index f17ce33ee..564524d0a 100755 --- a/hologres/benchmark.sh +++ b/hologres/benchmark.sh @@ -47,10 +47,14 @@ split -l 10000000 hits.tsv hits_part_ # load data echo "Starting to load data..." +start_load_time=$(date +%s.%N) for file in hits_part_*; do echo -n "Load time: " PGUSER=$PG_USER PGPASSWORD=$PG_PASSWORD command time -f '%e' psql -h $HOST_NAME -p $PORT -d $DATABASE -t -c "\\copy hits FROM '$file'" done +end_load_time=$(date +%s.%N) +total_load_time=$(echo "$end_load_time - $start_load_time" | bc) +echo "Total load time: $total_load_time seconds" # run clickbench test with queries echo "Starting to run queries..." @@ -58,4 +62,4 @@ echo "Starting to run queries..." ./run.sh $PG_USER $PG_PASSWORD $HOST_NAME $PORT $DATABASE 2>&1 | tee log_queries_$DATABASE.txt cat log_queries_$DATABASE.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; }' | tee result_queries_$DATABASE.txt + awk '{ if (i % 3 == 0) { printf "[" }; printf "%.3f", $1 / 1000; if (i % 3 != 2) { printf "," } else { print "]," }; ++i; }' | tee result_queries_$DATABASE.txt diff --git a/hologres/results/128core.json b/hologres/results/128core.json index edf99472c..be335f9b7 100644 --- a/hologres/results/128core.json +++ b/hologres/results/128core.json @@ -1,6 +1,6 @@ { - "system": "Hologres", - "date": "2025-05-21", + "system": "Alibaba Cloud Hologres", + "date": "2025-09-15", "machine": "Hologres: 16 CU", "cluster_size": 8, "proprietary": "yes", @@ -9,48 +9,48 @@ "load_time": 321, "data_size": 19923251230, "result": [ - [0.200,0.065,0.018], - [0.091,0.021,0.018], - [0.113,0.021,0.020], - [0.093,0.020,0.025], - [0.136,0.068,0.066], - [0.286,0.131,0.126], - [0.090,0.018,0.018], - [0.096,0.020,0.019], - [0.166,0.144,0.081], - [0.220,0.103,0.095], - [0.143,0.036,0.031], - [0.143,0.036,0.038], - [0.258,0.117,0.109], - [0.330,0.178,0.157], - [0.408,0.122,0.151], - [0.168,0.055,0.057], - [0.429,0.331,0.334], - [0.278,0.243,0.228], - [0.979,0.748,0.788], - [0.077,0.015,0.022], - [0.305,0.026,0.020], - [0.364,0.025,0.024], - [0.579,0.026,0.027], - [0.876,0.048,0.049], - [0.273,0.116,0.046], - [0.184,0.117,0.122], - [0.198,0.049,0.069], - [0.410,0.030,0.028], - [1.926,0.875,0.802], - [0.318,0.235,0.227], - [0.247,0.066,0.070], - [0.372,0.108,0.111], - [0.749,0.588,0.634], - [1.150,0.862,0.851], - [1.292,0.948,0.950], - [1.640,1.528,1.583], - [0.182,0.039,0.030], - [0.105,0.028,0.035], - [0.085,0.033,0.027], - [0.114,0.096,0.044], - [0.094,0.029,0.028], - [0.101,0.030,0.096], - [0.082,0.025,0.026] + [0.152,0.041,0.018], + [0.094,0.028,0.026], + [0.077,0.017,0.017], + [0.061,0.017,0.016], + [0.089,0.032,0.032], + [0.173,0.078,0.071], + [0.074,0.016,0.013], + [0.047,0.017,0.013], + [0.112,0.047,0.045], + [0.115,0.054,0.048], + [0.076,0.022,0.020], + [0.086,0.025,0.023], + [0.138,0.064,0.060], + [0.150,0.087,0.100], + [0.148,0.077,0.072], + [0.095,0.034,0.032], + [0.217,0.189,0.184], + [0.161,0.134,0.145], + [0.508,0.400,0.404], + [0.051,0.008,0.005], + [0.165,0.018,0.020], + [0.142,0.018,0.015], + [0.213,0.024,0.024], + [0.445,0.077,0.081], + [0.065,0.019,0.018], + [0.084,0.030,0.029], + [0.055,0.022,0.017], + [0.171,0.022,0.017], + [0.808,0.430,0.428], + [0.083,0.029,0.026], + [0.155,0.039,0.039], + [0.191,0.062,0.056], + [0.502,0.361,0.403], + [0.562,0.419,0.412], + [0.627,0.419,0.429], + [0.115,0.034,0.031], + [0.060,0.020,0.018], + [0.062,0.019,0.016], + [0.051,0.022,0.017], + [0.062,0.027,0.025], + [0.049,0.019,0.017], + [0.056,0.019,0.018], + [0.052,0.017,0.016] ] } diff --git a/hologres/results/32core.json b/hologres/results/32core.json index 27b204ab8..1c510be33 100644 --- a/hologres/results/32core.json +++ b/hologres/results/32core.json @@ -1,5 +1,5 @@ { - "system": "Hologres", + "system": "Alibaba Cloud Hologres", "date": "2025-05-21", "machine": "Hologres: 16 CU", "cluster_size": 2, diff --git a/hologres/results/64core.json b/hologres/results/64core.json index 1b8cee218..b53f4b905 100644 --- a/hologres/results/64core.json +++ b/hologres/results/64core.json @@ -1,5 +1,5 @@ { - "system": "Hologres", + "system": "Alibaba Cloud Hologres", "date": "2025-05-21", "machine": "Hologres: 16 CU", "cluster_size": 4,