mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
docs: move v0.9.1 benchmark report to tsbs dir (#4598)
* docs: move v0.9.1 benchmark report to tsbs dir * docs: add newlines
This commit is contained in:
@@ -29,7 +29,7 @@ INSERT INTO test_table (message, timestamp) VALUES ()
|
||||
The goal is to test fuzzy search performance for each database. In real scenarios it means the log is produced by some kind of middleware and inserted directly into the database.
|
||||
|
||||
## Creating tables
|
||||
See [here](./create_table.sql) for GreptimeDB and Clickhouse's create table clause.
|
||||
See [here](./create_table.sql) for GreptimeDB and Clickhouse's create table clause.
|
||||
The mapping of Elastic search is created automatically.
|
||||
|
||||
## Vector Configuration
|
||||
@@ -41,11 +41,11 @@ Please refer to [SQL query](./query.sql) for GreptimeDB and Clickhouse, and [que
|
||||
|
||||
## Steps to reproduce
|
||||
0. Decide whether to run structured model test or unstructured mode test.
|
||||
1. Build vector binary(see vector's config file for specific branch) and databases binaries accordingly.
|
||||
1. Build vector binary(see vector's config file for specific branch) and databases binaries accordingly.
|
||||
2. Create table in GreptimeDB and Clickhouse in advance.
|
||||
3. Run vector to insert data.
|
||||
4. When data insertion is finished, run queries against each database. Note: you'll need to update timerange value after data insertion.
|
||||
|
||||
## Addition
|
||||
- You can tune GreptimeDB's configuration to get better performance.
|
||||
- You can setup GreptimeDB to use S3 as storage, see [here](https://docs.greptime.com/user-guide/operations/configuration/#storage-options).
|
||||
- You can setup GreptimeDB to use S3 as storage, see [here](https://docs.greptime.com/user-guide/operations/configuration/#storage-options).
|
||||
|
||||
@@ -51,6 +51,6 @@ CREATE TABLE IF NOT EXISTS test_table
|
||||
message String,
|
||||
timestamp String,
|
||||
INDEX inv_idx(message) TYPE full_text(0) GRANULARITY 1
|
||||
)
|
||||
)
|
||||
ENGINE = MergeTree()
|
||||
ORDER BY tuple();
|
||||
ORDER BY tuple();
|
||||
|
||||
@@ -196,4 +196,4 @@ URL: `http://127.0.0.1:9200/_search`
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
||||
@@ -54,4 +54,4 @@ compression = "none"
|
||||
doc_type = "_doc"
|
||||
endpoints = [ "http://127.0.0.1:9200" ]
|
||||
id_key = "id"
|
||||
mode = "bulk"
|
||||
mode = "bulk"
|
||||
|
||||
@@ -40,4 +40,4 @@ compression = "none"
|
||||
doc_type = "_doc"
|
||||
endpoints = [ "http://127.0.0.1:9200" ]
|
||||
id_key = "id"
|
||||
mode = "bulk"
|
||||
mode = "bulk"
|
||||
|
||||
58
docs/benchmarks/tsbs/v0.9.1.md
Normal file
58
docs/benchmarks/tsbs/v0.9.1.md
Normal file
@@ -0,0 +1,58 @@
|
||||
# TSBS benchmark - v0.9.1
|
||||
|
||||
## Environment
|
||||
|
||||
### Local
|
||||
|
||||
| | |
|
||||
| ------ | ---------------------------------- |
|
||||
| CPU | AMD Ryzen 7 7735HS (8 core 3.2GHz) |
|
||||
| Memory | 32GB |
|
||||
| Disk | SOLIDIGM SSDPFKNU010TZ |
|
||||
| OS | Ubuntu 22.04.2 LTS |
|
||||
|
||||
### Amazon EC2
|
||||
|
||||
| | |
|
||||
| ------- | ----------------------- |
|
||||
| Machine | c5d.2xlarge |
|
||||
| CPU | 8 core |
|
||||
| Memory | 16GB |
|
||||
| Disk | 100GB (GP3) |
|
||||
| OS | Ubuntu Server 24.04 LTS |
|
||||
|
||||
## Write performance
|
||||
|
||||
| Environment | Ingest rate (rows/s) |
|
||||
| --------------- | -------------------- |
|
||||
| Local | 387697.68 |
|
||||
| EC2 c5d.2xlarge | 234620.19 |
|
||||
|
||||
## Query performance
|
||||
|
||||
| Query type | Local (ms) | EC2 c5d.2xlarge (ms) |
|
||||
| --------------------- | ---------- | -------------------- |
|
||||
| cpu-max-all-1 | 21.14 | 14.75 |
|
||||
| cpu-max-all-8 | 36.79 | 30.69 |
|
||||
| double-groupby-1 | 529.02 | 987.85 |
|
||||
| double-groupby-5 | 1064.53 | 1455.95 |
|
||||
| double-groupby-all | 1625.33 | 2143.96 |
|
||||
| groupby-orderby-limit | 529.19 | 1353.49 |
|
||||
| high-cpu-1 | 12.09 | 8.24 |
|
||||
| high-cpu-all | 3619.47 | 5312.82 |
|
||||
| lastpoint | 224.91 | 576.06 |
|
||||
| single-groupby-1-1-1 | 10.82 | 6.01 |
|
||||
| single-groupby-1-1-12 | 11.16 | 7.42 |
|
||||
| single-groupby-1-8-1 | 13.50 | 10.20 |
|
||||
| single-groupby-5-1-1 | 11.99 | 6.70 |
|
||||
| single-groupby-5-1-12 | 13.17 | 8.72 |
|
||||
| single-groupby-5-8-1 | 16.01 | 12.07 |
|
||||
|
||||
`single-groupby-1-1-1` query throughput
|
||||
|
||||
| Environment | Client concurrency | mean time (ms) | qps (queries/sec) |
|
||||
| --------------- | ------------------ | -------------- | ----------------- |
|
||||
| Local | 50 | 33.04 | 1511.74 |
|
||||
| Local | 100 | 67.70 | 1476.14 |
|
||||
| EC2 c5d.2xlarge | 50 | 61.93 | 806.97 |
|
||||
| EC2 c5d.2xlarge | 100 | 126.31 | 791.40 |
|
||||
Reference in New Issue
Block a user