You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
This project intends to measure performance of production-grade deployments of real-world web application frameworks and platforms. All implementations are expected (but not required) to be based on robust implementations of the HTTP protocol. Implementations that are not based on a realistic HTTP implementation will be marked as Stripped. Rather than stipulate a rigid specification of HTTP requirements, we defer to common sense: the implementation should provide a viable subset of HTTP to reasonably unbiased outsiders familiar with HTTP.
However, the rest of the response must be fully composed on the spot.
Some frameworks do not compute the HTTP headers at all, but return a fixed value, including HTTP/1.1 200 OK and the Content-Length: integer value, just appending the current date to this hardcoded buffer. This is not a realistic HTTP implementation to my (common) sense. There is no point of allowing to pre-compute the headers but disallowing to pre-compute the response body - the former clearly depending on the later content.
Such patterns appear for instance in this plaintext or this json implementations. My guess is that such implementations should be marked as Stripped, or fixed to use a HTTP headers generation library, as any realistic production-grade framework would do.
The main issue with such fixed headers is that the server is not compatible with HTTP/1.0 requests or Connection: Close headers, which are part of the HTTP protocol, and should be properly implemented on the server side.
Perhaps there are other implementations with the same dubious pattern.
Reacted by Joan Miquel, Coldzer0, Ede1959, Svetozar Belić, Oscar Hermoso, Oleg S., javenwang, Andrew Johnston and Andreas Nägeli
IMHO a simple way to validate the HTTP implementation could be to emit a simple curl request with a Connection: close header (or sent as HTTP/1.0), which should be properly parsed on the server, then either Connection: close or HTTP/1.0 200 OK or Closing connection should be part (grep) of the response, and the socket closed:
~/techempower-bench$ curl --http1.0 -v localhost:8080/plaintext
* Trying 127.0.0.1:8080...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /plaintext HTTP/1.0
> Host: localhost:8080
> User-Agent: curl/7.88.1
> Accept: */*
>
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: M
< Date: Wed, 10 May 2023 15:01:35 GMT
< Content-Length: 13
< Content-Type: text/plain
< Connection: Close
<
* Closing connection 0
or a simple curl -H "Connection: Close" -v localhost:8080/plaintext
This test should be run on all endpoints which are marked as "approach": "Realistic" in their benchmark_config.json file - i.e. not only /plaintext but also all other /db/json/updates and /fortunes.
From a wild guess of the source code I have seen, quite a few frameworks would then appear as Stripped and should be fixed/implemented in order to be part of the official ranking.
just want to point out actix marks the bench you linked as stripped already. they really should just remove the code entirely but I was told it's there for future optimization despite I have seen zero effort they put in it for years. but still.
The benchmark with the time is bigger, and we need to help.
We can help in the verify stage, to add more small details to have a fair play.
And others we can't verify, like the Content-Length:, that for me need to be calculated and not hardcoded, is not verifiable.
But will be enough to add it to the requirements, and we will mark the frameworks that bypass the requirements.
It's easy to add in the requirements: it's forbidden to hard code the Content-Length:.
Another framework with pre-computed headers for /plaintext - which won't respond to basic "Connection: close" request so should be marked as "stripped":
but on request parsing side: if parsing won't happen, no http headers are materialized/evaluated to drive HTTP server logic as well
You are right, this is the same issue.
IMHO we could sum both issue as: "If the server doesn't properly respond to Connection: Close, then it should be marked as Stripped". This is easy to check, and a fair implication of the TFB requirement #2 of a "viable implementation of HTTP".
@synopse as explained in another comment, Vertx doesn't precompute headers, but just the ASCII string objects (which will still be encoded as usual) in the case-insensitive format, with case insensitive hash code compute once: it's not related the encoding of headers, which will happen, but a way to reduce the cost while putting them in the case-insensitive header map which will be encoded later and it's strongly suggested to happen in production too.
But will be enough to add it to the requirements, and we will mark the frameworks that bypass the requirements.
It's easy to add in the requirements: it's forbidden to hard code the Content-Length:.
Activity
synopse commentedon May 10, 2023
After a quick search, other similar findings - some clearly breaking the requirements:
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Go/gnet/src/main.go#L29
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/actix/src/main_server.rs#L23
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/faf/src/main.rs
https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/ntex/src/main_plt.rs
IMHO a simple way to validate the HTTP implementation could be to emit a simple
curlrequest with aConnection: closeheader (or sent asHTTP/1.0), which should be properly parsed on the server, then eitherConnection: closeorHTTP/1.0 200 OKorClosing connectionshould be part (grep) of the response, and the socket closed:or a simple
curl -H "Connection: Close" -v localhost:8080/plaintextThis test should be run on all endpoints which are marked as
"approach": "Realistic"in theirbenchmark_config.jsonfile - i.e. not only/plaintextbut also all other/db/json/updatesand/fortunes.From a wild guess of the source code I have seen, quite a few frameworks would then appear as Stripped and should be fixed/implemented in order to be part of the official ranking.
fakeshadow commentedon May 10, 2023
just want to point out actix marks the bench you linked as stripped already. they really should just remove the code entirely but I was told it's there for future optimization despite I have seen zero effort they put in it for years. but still.
joanhey commentedon May 10, 2023
The benchmark with the time is bigger, and we need to help.
We can help in the verify stage, to add more small details to have a fair play.
And others we can't verify, like the
Content-Length:, that for me need to be calculated and not hardcoded, is not verifiable.But will be enough to add it to the requirements, and we will mark the frameworks that bypass the requirements.
It's easy to add in the requirements: it's forbidden to hard code the
Content-Length:.franz1981 commentedon May 15, 2023
Related partially to this: #7984
but on request parsing side: if parsing won't happen, no http headers are materialized/evaluated to drive HTTP server logic as well
synopse commentedon Sep 4, 2023
Another framework with pre-computed headers for /plaintext - which won't respond to basic "Connection: close" request so should be marked as "stripped":
FrameworkBenchmarks/frameworks/Java/vertx/src/main/java/vertx/App.java
Line 96 in 6d92c7b
synopse commentedon Sep 4, 2023
You are right, this is the same issue.
IMHO we could sum both issue as: "If the server doesn't properly respond to
Connection: Close, then it should be marked asStripped". This is easy to check, and a fair implication of the TFB requirement #2 of a "viable implementation of HTTP".franz1981 commentedon Sep 7, 2023
@synopse as explained in another comment, Vertx doesn't precompute headers, but just the ASCII string objects (which will still be encoded as usual) in the case-insensitive format, with case insensitive hash code compute once: it's not related the encoding of headers, which will happen, but a way to reduce the cost while putting them in the case-insensitive header map which will be encoded later and it's strongly suggested to happen in production too.
p8 commentedon Mar 24, 2025
The
aspnetcoreframework precomputes the header length as well:FrameworkBenchmarks/frameworks/CSharp/aspnetcore-mono/PlatformBenchmarks/BenchmarkApplication.Json.cs
Lines 14 to 18 in c82a834
FrameworkBenchmarks/frameworks/CSharp/aspnetcore-mono/PlatformBenchmarks/BenchmarkApplication.Json.cs
Line 12 in c82a834
FrameworkBenchmarks/frameworks/CSharp/aspnetcore/src/Platform/BenchmarkApplication.Plaintext.cs
Lines 13 to 16 in c82a834
remittor commentedon Apr 8, 2025
@joanhey
So such a requirement will be added?
remittor commentedon Apr 8, 2025
@p8
FrameworkBenchmarks/frameworks/CSharp/aspnetcore-mono/PlatformBenchmarks/BenchmarkApplication.Json.cs
Line 12 in c82a834
This is a direct violation of testing rules!
https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#requirements
The length of the received JSON is also a result of serialization. It is unacceptable to separate the length from the data itself!
NateBrady23 commentedon Mar 24, 2026
Closing as part of bulk cleanup.