Skip to content

Commit 3be757c

Browse files
committed
feat: update
1 parent 7f35aa9 commit 3be757c

9 files changed

+190
-3
lines changed

frameworks/Rust/hyperlane/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,10 @@ strip = "debuginfo"
4343

4444
[features]
4545
dev = []
46+
json = []
47+
plaintext = []
48+
fortunes = []
49+
db = []
50+
query = []
51+
update = []
52+
cached_query = []

frameworks/Rust/hyperlane/benchmark_config.json

Lines changed: 92 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,104 @@
22
"framework": "hyperlane",
33
"tests": [
44
{
5-
"default": {
6-
"dockerfile": "hyperlane.dockerfile",
5+
"json": {
6+
"dockerfile": "hyperlane.json.dockerfile",
77
"json_url": "/json",
8+
"port": 8080,
9+
"approach": "Realistic",
10+
"classification": "Platform",
11+
"database": "Postgres",
12+
"framework": "hyperlane",
13+
"language": "Rust",
14+
"orm": "raw",
15+
"platform": "Rust",
16+
"webserver": "hyperlane",
17+
"os": "Linux",
18+
"database_os": "Linux",
19+
"display_name": "hyperlane"
20+
},
21+
"plaintext": {
22+
"dockerfile": "hyperlane.plaintext.dockerfile",
823
"plaintext_url": "/plaintext",
24+
"port": 8080,
25+
"approach": "Realistic",
26+
"classification": "Platform",
27+
"database": "Postgres",
28+
"framework": "hyperlane",
29+
"language": "Rust",
30+
"orm": "raw",
31+
"platform": "Rust",
32+
"webserver": "hyperlane",
33+
"os": "Linux",
34+
"database_os": "Linux",
35+
"display_name": "hyperlane"
36+
},
37+
"fortunes": {
38+
"dockerfile": "hyperlane.fortunes.dockerfile",
939
"fortune_url": "/fortunes",
40+
"port": 8080,
41+
"approach": "Realistic",
42+
"classification": "Platform",
43+
"database": "Postgres",
44+
"framework": "hyperlane",
45+
"language": "Rust",
46+
"orm": "raw",
47+
"platform": "Rust",
48+
"webserver": "hyperlane",
49+
"os": "Linux",
50+
"database_os": "Linux",
51+
"display_name": "hyperlane"
52+
},
53+
"db": {
54+
"dockerfile": "hyperlane.db.dockerfile",
1055
"db_url": "/db",
56+
"port": 8080,
57+
"approach": "Realistic",
58+
"classification": "Platform",
59+
"database": "Postgres",
60+
"framework": "hyperlane",
61+
"language": "Rust",
62+
"orm": "raw",
63+
"platform": "Rust",
64+
"webserver": "hyperlane",
65+
"os": "Linux",
66+
"database_os": "Linux",
67+
"display_name": "hyperlane"
68+
},
69+
"query": {
70+
"dockerfile": "hyperlane.query.dockerfile",
1171
"query_url": "/query?q=",
72+
"port": 8080,
73+
"approach": "Realistic",
74+
"classification": "Platform",
75+
"database": "Postgres",
76+
"framework": "hyperlane",
77+
"language": "Rust",
78+
"orm": "raw",
79+
"platform": "Rust",
80+
"webserver": "hyperlane",
81+
"os": "Linux",
82+
"database_os": "Linux",
83+
"display_name": "hyperlane"
84+
},
85+
"update": {
86+
"dockerfile": "hyperlane.update.dockerfile",
1287
"update_url": "/upda?q=",
88+
"port": 8080,
89+
"approach": "Realistic",
90+
"classification": "Platform",
91+
"database": "Postgres",
92+
"framework": "hyperlane",
93+
"language": "Rust",
94+
"orm": "raw",
95+
"platform": "Rust",
96+
"webserver": "hyperlane",
97+
"os": "Linux",
98+
"database_os": "Linux",
99+
"display_name": "hyperlane"
100+
},
101+
"cached_query": {
102+
"dockerfile": "hyperlane.cached_query.dockerfile",
13103
"cached_query_url": "/cached-quer?c=",
14104
"port": 8080,
15105
"approach": "Realistic",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM rust:1.85
2+
3+
RUN apt-get update -yqq && apt-get install -yqq cmake g++ binutils lld
4+
5+
ENV POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
6+
7+
ADD ./ /hyperlane_techempower
8+
WORKDIR /hyperlane_techempower
9+
10+
RUN cargo clean
11+
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release --features cached_query
12+
13+
EXPOSE 8080
14+
15+
CMD ./target/release/hyperlane_techempower

frameworks/Rust/hyperlane/hyperlane.dockerfile renamed to frameworks/Rust/hyperlane/hyperlane.db.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ADD ./ /hyperlane_techempower
88
WORKDIR /hyperlane_techempower
99

1010
RUN cargo clean
11-
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release
11+
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release --features db
1212

1313
EXPOSE 8080
1414

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM rust:1.85
2+
3+
RUN apt-get update -yqq && apt-get install -yqq cmake g++ binutils lld
4+
5+
ENV POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
6+
7+
ADD ./ /hyperlane_techempower
8+
WORKDIR /hyperlane_techempower
9+
10+
RUN cargo clean
11+
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release --features fortunes
12+
13+
EXPOSE 8080
14+
15+
CMD ./target/release/hyperlane_techempower
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM rust:1.85
2+
3+
RUN apt-get update -yqq && apt-get install -yqq cmake g++ binutils lld
4+
5+
ENV POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
6+
7+
ADD ./ /hyperlane_techempower
8+
WORKDIR /hyperlane_techempower
9+
10+
RUN cargo clean
11+
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release --features json
12+
13+
EXPOSE 8080
14+
15+
CMD ./target/release/hyperlane_techempower
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM rust:1.85
2+
3+
RUN apt-get update -yqq && apt-get install -yqq cmake g++ binutils lld
4+
5+
ENV POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
6+
7+
ADD ./ /hyperlane_techempower
8+
WORKDIR /hyperlane_techempower
9+
10+
RUN cargo clean
11+
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release --features plaintext
12+
13+
EXPOSE 8080
14+
15+
CMD ./target/release/hyperlane_techempower
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM rust:1.85
2+
3+
RUN apt-get update -yqq && apt-get install -yqq cmake g++ binutils lld
4+
5+
ENV POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
6+
7+
ADD ./ /hyperlane_techempower
8+
WORKDIR /hyperlane_techempower
9+
10+
RUN cargo clean
11+
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release --features query
12+
13+
EXPOSE 8080
14+
15+
CMD ./target/release/hyperlane_techempower
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM rust:1.85
2+
3+
RUN apt-get update -yqq && apt-get install -yqq cmake g++ binutils lld
4+
5+
ENV POSTGRES_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
6+
7+
ADD ./ /hyperlane_techempower
8+
WORKDIR /hyperlane_techempower
9+
10+
RUN cargo clean
11+
RUN RUSTFLAGS="-C target-cpu=native -C link-arg=-fuse-ld=lld" cargo build --release --features update
12+
13+
EXPOSE 8080
14+
15+
CMD ./target/release/hyperlane_techempower

0 commit comments

Comments
 (0)