Skip to content

Commit 37e4d04

Browse files
authored
chore(cubestore): Cache Store - introduce benchmark for queue (#9726)
1 parent f17f49a commit 37e4d04

File tree

7 files changed

+304
-52
lines changed

7 files changed

+304
-52
lines changed

rust/cubestore/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ downloaded
88
cubestore/target
99
cubesql/target
1010
cubestore-sql-tests/data/**
11+
cubestore/db-tmp

rust/cubestore/Cargo.lock

Lines changed: 70 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/cubestore/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ COPY cubestore/cubezetasketch cubezetasketch
1212
COPY cubestore/cubedatasketches cubedatasketches
1313
COPY cubestore/cuberpc cuberpc
1414
COPY cubestore/cubestore-sql-tests cubestore-sql-tests
15+
COPY cubestore/cubestore/benches cubestore/benches
1516
COPY cubestore/cubestore/Cargo.toml cubestore/Cargo.toml
1617
RUN mkdir -p cubestore/src/bin && \
1718
echo "fn main() {print!(\"Dummy main\");} // dummy file" > cubestore/src/bin/cubestored.rs

rust/cubestore/cubestore-sql-tests/Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,20 @@ async-compression = { version = "0.3.7", features = ["gzip", "tokio"] }
3737
async-trait = "0.1.36"
3838
cubestore = { path = "../cubestore" }
3939
flate2 = "1.0.22"
40-
futures = "0.3.5"
4140
itertools = "0.9.0"
42-
lazy_static = "1.4.0"
4341
log = "0.4.11"
4442
pretty_assertions = "0.7.1"
4543
reqwest = { version = "0.12.5", features = ["json", "rustls-tls", "stream", "http2"], default-features = false }
4644
scopeguard = "1.1.0"
4745
serde = "1.0.115"
4846
serde_derive = "1.0.115"
4947
tokio = { version = "1", features = ["full", "rt"] }
50-
futures-timer = "3.0.2"
5148
indoc = "1.0"
5249
tempfile = "3.2.0"
5350
tar = "0.4.38"
5451

5552
[dev-dependencies]
56-
criterion = { version = "0.4.0", features = ["async_tokio", "html_reports"] }
53+
criterion = { version = "0.5.1", features = ["async_tokio", "html_reports"] }
5754
cuberockstore = { path = "../cuberockstore" }
5855

5956
[[bench]]

rust/cubestore/cubestore/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ libc = { version = "0.2.97", optional = true }
1515

1616
[dependencies]
1717
base64 = "0.13.0"
18-
bumpalo = "3.6.1"
1918
tokio = { version = "1", features = ["full", "rt"] }
2019
warp = { version = "0.3.6" }
2120
sqlparser = { git = 'https://github.com/cube-js/sqlparser-rs.git', rev = "4388f6712dae5073c2d71d74f64cae2edd418066" }
@@ -120,6 +119,12 @@ sasl2-sys = { version = "0.1.6", features = ["vendored"] }
120119

121120
[dev-dependencies]
122121
pretty_assertions = "0.7.1"
122+
criterion = { version = "0.5.1", features = ["async_tokio", "html_reports"] }
123+
md5 = "0.8.0"
124+
125+
[[bench]]
126+
name = "cachestore_queue"
127+
harness = false
123128

124129
[features]
125130
# When enabled, child processes will die whenever parent process exits.

0 commit comments

Comments
 (0)