You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/http_server.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,3 +38,34 @@ Prometheus metrics are automatically published.
38
38
[flightsql_server]
39
39
server_metrics_port = "0.0.0.0:9000"
40
40
```
41
+
42
+
## Benchmarking
43
+
44
+
Something useful that comes from having an HTTP server is that we can leverage an extensive ecosystem of the HTTP load generation tools to benchmark our performance.
45
+
46
+
To get started with benchmarking you will first want to install the necessary tools.
47
+
48
+
```sh
49
+
# Installs `oha` which is a CLI for HTTP benchmarking
50
+
just install-tools
51
+
```
52
+
53
+
Then you will want to start the `dft` HTTP server in one terminal window.
54
+
55
+
```sh
56
+
just serve-http
57
+
```
58
+
59
+
Finally, you can run a simple benchmark to make sure all the flows are working.
60
+
61
+
```sh
62
+
# Benchmarks running `SELECT 1`
63
+
just bench-http-basic
64
+
```
65
+
66
+
You can add your own benchmark files in the `bench/url_files` directory to cater the benchmarks to your needs. An example file is provided that you can use as reference.
0 commit comments