docs.jonasjones.dev/docs/mcwebserver/performance.mdx

21 lines
No EOL
945 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
sidebar_position: 8
---
# Performance Impact
McWebserver attempts to be as lightweight as possible.
An experiment shows that this is clearly the case. Even when the server is getting DDOSd and the website might not be available due to the high demand of the DDOS, the server still runs perfectly fine.
The following gif shows a DDOS script using 300 threads (300 simultaneous requests at the same time) and the servers MSPT (Milliseconds per Tick) only rises by about 2ms while under the DDOS attack.
![DDOS Test](https://cdn.jonasjones.dev/misc/mcwebserver-ddos-performance-impact.gif)
:::note
This isnt a scientific test and I wouldnt claim that the server can withstand a real DDOS attack. The results only give an idea of the performance impact under elevated load and demand.
The script used for the test can be found [here](https://github.com/JonasunderscoreJones/turbo-octo-potato/blob/main/localhost-ddos.py)
:::