forked from HTTP-RPC/Kilo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbenchmark.sh
More file actions
executable file
·26 lines (18 loc) · 813 Bytes
/
benchmark.sh
File metadata and controls
executable file
·26 lines (18 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
BASE_URL=http://localhost:8080/httprpc-test-1.0/employees
OUTPUT_FORMAT='%{time_starttransfer}, %{time_total}\n'
echo SQL
curl "$BASE_URL" -s -o /dev/null -w "$OUTPUT_FORMAT"
echo SQL Jackson
curl "$BASE_URL?jackson=true" -s -o /dev/null -w "$OUTPUT_FORMAT"
echo SQL stream
curl "$BASE_URL?stream=true" -s -o /dev/null -w "$OUTPUT_FORMAT"
echo SQL Jackson/stream
curl "$BASE_URL?jackson=true&stream=true" -s -o /dev/null -w "$OUTPUT_FORMAT"
echo HQL
curl "$BASE_URL?hql=true" -s -o /dev/null -w "$OUTPUT_FORMAT"
echo HQL Jackson
curl "$BASE_URL?hql=true&jackson=true" -s -o /dev/null -w "$OUTPUT_FORMAT"
echo HQL stream
curl "$BASE_URL?hql=true&stream=true" -s -o /dev/null -w "$OUTPUT_FORMAT"
echo HQL Jackson/stream
curl "$BASE_URL?hql=true&jackson=true&stream=true" -s -o /dev/null -w "$OUTPUT_FORMAT"