Skip to content

Commit 3ad0d5c

Browse files
committed
Update main.rs
1 parent 242e550 commit 3ad0d5c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

benches/bench_server/src/main.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
99
use rustapi_rs::prelude::*;
1010

11-
// ============================================
12-
// Pre-computed static responses for maximum performance
13-
// ============================================
14-
15-
// Static JSON bytes - avoid allocation on every request
16-
static JSON_HELLO_BYTES: &[u8] = br#"{"message":"Hello, World!"}"#;
17-
static USER_RESPONSE_BYTES: &[u8] = br#"{"id":1,"name":"Test User","email":"test@example.com","created_at":"2024-01-01T00:00:00Z","is_active":true}"#;
18-
1911
#[derive(Serialize, Schema)]
2012
struct HelloResponse {
2113
message: &'static str,

0 commit comments

Comments
 (0)