|  | 
|  | 1 | +# Benchmark: NeuroHTTP AI Web Server vs NGINX 1.29.3 | 
|  | 2 | + | 
|  | 3 | +**Test Environment:**   | 
|  | 4 | +- OS: Kali Linux   | 
|  | 5 | +- CPU: 4 threads   | 
|  | 6 | +- Connections: 100 concurrent   | 
|  | 7 | +- Test Duration: 30 seconds per server   | 
|  | 8 | +- Tool: `wrk -t4 -c100 -d30s --latency`   | 
|  | 9 | +- Metrics: Requests/sec, Latency (p50, p75, p90, p99, Max), Data Transfer/sec   | 
|  | 10 | + | 
|  | 11 | +--- | 
|  | 12 | + | 
|  | 13 | +## 1. Summary of Results | 
|  | 14 | + | 
|  | 15 | +| Server   | Requests/sec | Total Requests | Avg Latency | p50   | p75     | p90      | p99       | Max Latency | Transfer/sec | | 
|  | 16 | +|----------|--------------|----------------|-------------|-------|---------|----------|-----------|-------------|--------------| | 
|  | 17 | +| nginx    | 6743         | 202,701        | 80ms        | 11.79ms | 13.23ms | 218.75ms | 1.12s    | 1.33s       | 1.02MB       | | 
|  | 18 | +| NeuroHTTP   | 1621         | 48,762         | 61.22ms     | 43.08ms | 100.72ms | 104.62ms | 114.27ms | 135.85ms    | 4.94MB       | | 
|  | 19 | + | 
|  | 20 | +--- | 
|  | 21 | + | 
|  | 22 | +## 2. Throughput Analysis | 
|  | 23 | + | 
|  | 24 | +- **NGINX** achieved **6743 requests/sec**, approximately 4× higher than AIONIC.   | 
|  | 25 | +- **NeuroHTTP** handled **1621 requests/sec**, with each request transferring more data (higher Transfer/sec).   | 
|  | 26 | +- The lower throughput in AIONIC is expected due to internal processing (AI routing, tokenization, caching, and optimization). | 
|  | 27 | + | 
|  | 28 | +--- | 
|  | 29 | + | 
|  | 30 | +## 3. Latency Analysis | 
|  | 31 | + | 
|  | 32 | +| Server  | Avg Latency | p50   | p75     | p90      | p99       | Max Latency | | 
|  | 33 | +|---------|------------|-------|---------|----------|-----------|-------------| | 
|  | 34 | +| nginx   | 80ms       | 11.79ms | 13.23ms | 218.75ms | 1.12s    | 1.33s       | | 
|  | 35 | +| NeuroHTTP  | 61.22ms    | 43.08ms | 100.72ms | 104.62ms | 114.27ms | 135.85ms    | | 
|  | 36 | + | 
|  | 37 | +**Observations:** | 
|  | 38 | +- NGINX shows very low latency for most requests (p50 = 11.79ms), but has large spikes at p90/p99 (up to 1.12s).   | 
|  | 39 | +- NeuroHTTP demonstrates **stable and predictable latency**, with p99 at 114.27ms and Max latency at 135.85ms.   | 
|  | 40 | +- Standard deviation confirms this: NGINX (207ms) vs AIONIC (38ms), indicating AIONIC handles requests more consistently under load. | 
|  | 41 | + | 
|  | 42 | +--- | 
|  | 43 | + | 
|  | 44 | +## 4. Data Transfer | 
|  | 45 | + | 
|  | 46 | +- **NeuroHTTP**: 4.94MB/sec → each request delivers more content.   | 
|  | 47 | +- **NGINX**: 1.02MB/sec → smaller content per request.   | 
|  | 48 | +- This explains why NeuroHTTP has fewer requests/sec but higher throughput in terms of data served per second. | 
|  | 49 | + | 
|  | 50 | +--- | 
|  | 51 | + | 
|  | 52 | +## 5. Strengths of Each Server | 
|  | 53 | + | 
|  | 54 | +| Server   | Strengths | | 
|  | 55 | +|----------|-----------| | 
|  | 56 | +| **NGINX** | - Extremely high throughput (6743 requests/sec)<br>- Ideal for static content (HTML/CSS/JS)<br>- Handles high concurrency efficiently<br>- Lightweight and widely adopted | | 
|  | 57 | +| **NeuroHTTP** | - Stable and predictable latency (p99 = 114ms)<br>- Handles dynamic/AI-processed content<br>- Higher data transfer per request (good for large payloads)<br>- Built-in cache and optimizer reduce performance fluctuations | | 
|  | 58 | + | 
|  | 59 | +--- | 
|  | 60 | + | 
|  | 61 | +## 6. Conclusion | 
|  | 62 | + | 
|  | 63 | +- **NGINX** excels in **raw speed** and handling a massive number of requests per second. It is perfect for static content and high-concurrency environments.   | 
|  | 64 | +- **NeuroHTTP** provides **predictable latency and stability**, optimized for dynamic content and AI-based processing. Although its throughput is lower, it is better suited for applications where consistent response time and heavier payloads matter.   | 
|  | 65 | + | 
|  | 66 | +**Recommendation:**   | 
|  | 67 | +- Use **NGINX** as a front-facing server for static content or as a reverse proxy.   | 
|  | 68 | +- Use **NeuroHTTP** for dynamic AI-driven endpoints where latency stability and data-rich responses are more critical than raw request throughput. | 
|  | 69 | + | 
|  | 70 | +--- | 
0 commit comments