Skip to content

Commit 513db94

Browse files
committed
wip
1 parent a040c66 commit 513db94

File tree

6 files changed

+22
-23
lines changed

6 files changed

+22
-23
lines changed

frameworks/Rust/ntex/Cargo.toml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ntex-bench"
3-
version = "2.0.0"
3+
version = "2.1.0"
44
edition = "2018"
55

66
[[bin]]
@@ -12,7 +12,7 @@ name = "ntex-compio"
1212
path = "src/main.rs"
1313

1414
[[bin]]
15-
name = "ntex-default"
15+
name = "ntex-neon"
1616
path = "src/main.rs"
1717

1818
[[bin]]
@@ -24,7 +24,7 @@ name = "ntex-db-compio"
2424
path = "src/main_db.rs"
2525

2626
[[bin]]
27-
name = "ntex-db-default"
27+
name = "ntex-db-neon"
2828
path = "src/main_db.rs"
2929

3030
[[bin]]
@@ -36,7 +36,7 @@ name = "ntex-plt-compio"
3636
path = "src/main_plt.rs"
3737

3838
[[bin]]
39-
name = "ntex-plt-default"
39+
name = "ntex-plt-neon"
4040
path = "src/main_plt.rs"
4141

4242
[features]
@@ -48,8 +48,8 @@ tokio = ["ntex/tokio"]
4848
# compio runtime
4949
compio = ["ntex/compio"]
5050

51-
# default-rt runtime
52-
default-rt = ["ntex/default-rt"]
51+
# neon runtime
52+
neon = ["ntex/neon"]
5353

5454
[dependencies]
5555
ntex = "2.12"
@@ -76,10 +76,9 @@ compio-driver = { version = "*", features = ["io-uring"]}
7676
[patch.crates-io]
7777
ntex = { git = "https://github.com/ntex-rs/ntex.git" }
7878
ntex-io = { git = "https://github.com/ntex-rs/ntex.git" }
79-
ntex-iodriver = { git = "https://github.com/ntex-rs/ntex.git" }
8079
ntex-net = { git = "https://github.com/ntex-rs/ntex.git" }
8180
ntex-rt = { git = "https://github.com/ntex-rs/ntex.git" }
82-
ntex-runtime = { git = "https://github.com/ntex-rs/ntex.git" }
81+
ntex-neon = { git = "https://github.com/ntex-rs/ntex.git" }
8382

8483
[profile.release]
8584
opt-level = 3

frameworks/Rust/ntex/benchmark_config.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"notes": "",
3838
"versus": ""
3939
},
40-
"default-rt": {
40+
"neon": {
4141
"json_url": "/json",
4242
"plaintext_url": "/plaintext",
4343
"port": 8080,
@@ -51,7 +51,7 @@
5151
"webserver": "ntex",
5252
"os": "Linux",
5353
"database_os": "Linux",
54-
"display_name": "ntex [default]",
54+
"display_name": "ntex [neon]",
5555
"notes": "",
5656
"versus": ""
5757
},
@@ -95,7 +95,7 @@
9595
"notes": "",
9696
"versus": ""
9797
},
98-
"db-default": {
98+
"db-neon": {
9999
"fortune_url": "/fortunes",
100100
"db_url": "/db",
101101
"query_url": "/query?q=",
@@ -111,7 +111,7 @@
111111
"webserver": "ntex",
112112
"os": "Linux",
113113
"database_os": "Linux",
114-
"display_name": "ntex [default,db]",
114+
"display_name": "ntex [neon,db]",
115115
"notes": "",
116116
"versus": ""
117117
},
@@ -151,7 +151,7 @@
151151
"notes": "",
152152
"versus": ""
153153
},
154-
"plt-default": {
154+
"plt-neon": {
155155
"json_url": "/json",
156156
"plaintext_url": "/plaintext",
157157
"port": 8080,
@@ -165,7 +165,7 @@
165165
"webserver": "ntex",
166166
"os": "Linux",
167167
"database_os": "Linux",
168-
"display_name": "ntex [default,platform]",
168+
"display_name": "ntex [neon,platform]",
169169
"notes": "",
170170
"versus": ""
171171
}

frameworks/Rust/ntex/config.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ platform = "None"
2727
webserver = "ntex"
2828
versus = ""
2929

30-
[default-rt]
30+
[neon]
3131
urls.plaintext = "/plaintext"
3232
urls.json = "/json"
3333
approach = "Realistic"
@@ -70,7 +70,7 @@ platform = "None"
7070
webserver = "ntex"
7171
versus = ""
7272

73-
[db-default]
73+
[db-neon]
7474
urls.db = "/db"
7575
urls.query = "/query?q="
7676
urls.update = "/update?q="
@@ -111,7 +111,7 @@ platform = "None"
111111
webserver = "ntex"
112112
versus = ""
113113

114-
[plt-default]
114+
[plt-neon]
115115
urls.plaintext = "/plaintext"
116116
urls.json = "/json"
117117
approach = "Realistic"

frameworks/Rust/ntex/ntex-default-rt.dockerfile renamed to frameworks/Rust/ntex/ntex-db-neon.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ADD ./ /ntex
99
WORKDIR /ntex
1010

1111
RUN cargo clean
12-
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --features="default-rt"
12+
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --features="neon"
1313

1414
EXPOSE 8080
1515

16-
CMD ./target/release/ntex-default
16+
CMD ./target/release/ntex-db-neon

frameworks/Rust/ntex/ntex-db-default.dockerfile renamed to frameworks/Rust/ntex/ntex-neon.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ADD ./ /ntex
99
WORKDIR /ntex
1010

1111
RUN cargo clean
12-
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --features="default-rt"
12+
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --features="neon"
1313

1414
EXPOSE 8080
1515

16-
CMD ./target/release/ntex-db-default
16+
CMD ./target/release/ntex-neon

frameworks/Rust/ntex/ntex-plt-default.dockerfile renamed to frameworks/Rust/ntex/ntex-plt-neon.dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ADD ./ /ntex
99
WORKDIR /ntex
1010

1111
RUN cargo clean
12-
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --features="default-rt"
12+
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release --features="neon"
1313

1414
EXPOSE 8080
1515

16-
CMD ./target/release/ntex-plt-default
16+
CMD ./target/release/ntex-plt-neon

0 commit comments

Comments
 (0)