mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Motivation: We recently added a synchronous view of the `ChannelPipline` so that callers can avoid allocating futures when they know they're on the right event loop. We also offer convenience APIs to configure the pipeline for particular use cases, like an HTTP/1 server but we don't have synchronous versions of these APIs yet. We should have parity between as synchronous and asyncronous APIs where feasible. Modifications: - Add synchronous helpers to configure HTTP1 client and server pipelines Result: Callers to synchronously configure HTTP1 client and server pipelines.
63 lines
2.3 KiB
YAML
63 lines
2.3 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-nio:20.04-5.4
|
|
build:
|
|
args:
|
|
base_image: "swiftlang/swift:nightly-5.4-focal"
|
|
ubuntu_version: "focal"
|
|
|
|
unit-tests:
|
|
image: swift-nio:20.04-5.4
|
|
|
|
integration-tests:
|
|
image: swift-nio:20.04-5.4
|
|
|
|
test:
|
|
image: swift-nio:20.04-5.4
|
|
environment:
|
|
- MAX_ALLOCS_ALLOWED_1000_addHandlers=47050
|
|
- MAX_ALLOCS_ALLOWED_1000_addHandlers_sync=40050
|
|
- MAX_ALLOCS_ALLOWED_1000_autoReadGetAndSet=29050
|
|
- MAX_ALLOCS_ALLOWED_1000_autoReadGetAndSet_sync=50
|
|
- MAX_ALLOCS_ALLOWED_1000_getHandlers=12050
|
|
- MAX_ALLOCS_ALLOWED_1000_getHandlers_sync=50
|
|
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=30540
|
|
- MAX_ALLOCS_ALLOWED_1000_tcpbootstraps=4100
|
|
- MAX_ALLOCS_ALLOWED_1000_tcpconnections=179050 # regression from 5.3 which was 177010
|
|
- MAX_ALLOCS_ALLOWED_1000_udpbootstraps=2000
|
|
- MAX_ALLOCS_ALLOWED_1000_udpconnections=102050 # regression from 5.3 which was 101050
|
|
- MAX_ALLOCS_ALLOWED_1000_udp_reqs=16050
|
|
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=468050 # regression from 5.3 which was 465050
|
|
- MAX_ALLOCS_ALLOWED_bytebuffer_lots_of_rw=2100
|
|
- MAX_ALLOCS_ALLOWED_creating_10000_headers=100
|
|
- MAX_ALLOCS_ALLOWED_decode_1000_ws_frames=2000
|
|
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_holding_buffer=1000
|
|
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_holding_buffer_with_space=1000
|
|
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_new_buffer=3050
|
|
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_new_buffer_with_space=3050
|
|
- MAX_ALLOCS_ALLOWED_future_lots_of_callbacks=75010
|
|
- MAX_ALLOCS_ALLOWED_modifying_1000_circular_buffer_elements=50
|
|
- MAX_ALLOCS_ALLOWED_modifying_byte_buffer_view=2010
|
|
- MAX_ALLOCS_ALLOWED_ping_pong_1000_reqs_1_conn=4440
|
|
- MAX_ALLOCS_ALLOWED_read_10000_chunks_from_file=190500
|
|
- MAX_ALLOCS_ALLOWED_schedule_10000_tasks=90050
|
|
- MAX_ALLOCS_ALLOWED_scheduling_10000_executions=20150
|
|
- MAX_ALLOCS_ALLOWED_udp_1000_reqs_1_conn=16250
|
|
- MAX_ALLOCS_ALLOWED_udp_1_reqs_1000_conn=202050 # regression from 5.3 which was 200050
|
|
# - SANITIZER_ARG=--sanitize=thread # TSan broken still
|
|
|
|
performance-test:
|
|
image: swift-nio:20.04-5.4
|
|
|
|
shell:
|
|
image: swift-nio:20.04-5.4
|
|
|
|
echo:
|
|
image: swift-nio:20.04-5.4
|
|
|
|
http:
|
|
image: swift-nio:20.04-5.4
|