TLDR: Polka won.
http://localhost:5000
is Jaguar. http://localhost:4000
is Polka.
❯ hyperfine --warmup 2 --min-runs 500 \
> 'curl --request GET \
> --url http://localhost:5000/ \
> --header "Accept: application/json" \
> --header "Content-Type: application/json" \
> --header "User-Agent: Teknologi Umum Bot" \
> --data "{\"name\":\"Tikotoni\",\"age\":69,\"rich\":true,\"history\":[\"something\",\"asd\",\"qweqweqwe1\"]}"' \
> 'curl --request GET \
> --url http://localhost:4000/ \
> --header "Accept: application/json" \
> --header "Content-Type: application/json" \
> --header "User-Agent: Teknologi Umum Bot" \
> --data "{\"name\":\"Tikotoni\",\"age\":69,\"rich\":true,\"history\":[\"something\",\"asd\",\"qweqweqwe1\"]}"'
Benchmark 1: curl --request GET \
--url http://localhost:5000/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "User-Agent: Teknologi Umum Bot" \
--data "{\"name\":\"Tikotoni\",\"age\":69,\"rich\":true,\"history\":[\"something\",\"asd\",\"qweqweqwe1\"]}"
Time (mean ± σ): 9.1 ms ± 1.1 ms [User: 5.8 ms, System: 2.1 ms]
Range (min … max): 7.3 ms … 14.5 ms 500 runs
Benchmark 2: curl --request GET \
--url http://localhost:4000/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "User-Agent: Teknologi Umum Bot" \
--data "{\"name\":\"Tikotoni\",\"age\":69,\"rich\":true,\"history\":[\"something\",\"asd\",\"qweqweqwe1\"]}"
Time (mean ± σ): 8.2 ms ± 1.1 ms [User: 5.7 ms, System: 2.0 ms]
Range (min … max): 6.6 ms … 16.7 ms 500 runs
Summary
'curl --request GET \
--url http://localhost:4000/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "User-Agent: Teknologi Umum Bot" \
--data "{\"name\":\"Tikotoni\",\"age\":69,\"rich\":true,\"history\":[\"something\",\"asd\",\"qweqweqwe1\"]}"' ran
1.11 ± 0.21 times faster than 'curl --request GET \
--url http://localhost:5000/ \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--header "User-Agent: Teknologi Umum Bot" \
--data "{\"name\":\"Tikotoni\",\"age\":69,\"rich\":true,\"history\":[\"something\",\"asd\",\"qweqweqwe1\"]}"'