0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Add ws_perf_SUITE to measure Websocket performance

It benchmarks binary, ascii, mixed and japanese data
using Websocket and Websocket over HTTP/2.

HTTP/2 options get set to ensure that performance is
better than the default HTTP/2 options.

It switches to Gun and Ranch branches that include
fixes that are required for tests to complete successfully.
This commit is contained in:
Loïc Hoguin 2024-12-19 15:26:44 +01:00
parent 022013b6c4
commit 643b335ba8
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
7 changed files with 1244 additions and 5 deletions

View file

@ -89,9 +89,16 @@ common_all() ->
end.
common_groups(Tests) ->
Opts = case os:getenv("NO_PARALLEL") of
false -> [parallel];
_ -> []
Parallel = case os:getenv("NO_PARALLEL") of
false -> parallel;
_ -> no_parallel
end,
common_groups(Tests, Parallel).
common_groups(Tests, Parallel) ->
Opts = case Parallel of
parallel -> [parallel];
no_parallel -> []
end,
Groups = [
{http, Opts, Tests},
@ -113,7 +120,6 @@ common_groups(Tests) ->
Groups
end.
init_common_groups(Name = http, Config, Mod) ->
init_http(Name, #{
env => #{dispatch => Mod:init_dispatch(Config)}