mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-25 04:47:50 +00:00
Motivation: To justify performance changes we need to measure the code being changed. We believe that `HPACKHeaders.subscript(canonicalForm:)` is a little slow. Modifications: - Add allocation and performance tests for fetching header values in their canonical form Results: More benchmarks.
42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-nio-http2:20.04-main
|
|
build:
|
|
args:
|
|
base_image: "swiftlang/swift:nightly-main-focal"
|
|
ubuntu_version: "focal"
|
|
h2spec_version: "2.2.1"
|
|
|
|
unit-tests:
|
|
image: swift-nio-http2:20.04-main
|
|
|
|
integration-tests:
|
|
image: swift-nio-http2:20.04-main
|
|
|
|
performance-test:
|
|
image: swift-nio-http2:20.04-main
|
|
|
|
h2spec:
|
|
image: swift-nio-http2:20.04-main
|
|
|
|
test:
|
|
image: swift-nio-http2:20.04-main
|
|
environment:
|
|
- MAX_ALLOCS_ALLOWED_1k_requests_interleaved=46150
|
|
- MAX_ALLOCS_ALLOWED_1k_requests_noninterleaved=45100
|
|
- MAX_ALLOCS_ALLOWED_client_server_h1_request_response=317950
|
|
- MAX_ALLOCS_ALLOWED_client_server_request_response=284000
|
|
- MAX_ALLOCS_ALLOWED_create_client_stream_channel=47050
|
|
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form=700050
|
|
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace=700050
|
|
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_long_string=800050
|
|
- MAX_ALLOCS_ALLOWED_get_100000_headers_canonical_form_trimming_whitespace_from_short_string=700050
|
|
- MAX_ALLOCS_ALLOWED_hpack_decoding=5050
|
|
- MAX_ALLOCS_ALLOWED_stream_teardown_100_concurrent=323150
|
|
|
|
shell:
|
|
image: swift-nio-http2:20.04-main
|