mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: Peter thinks that result-erasing maps should not allocate, and we have special code paths in the code to try to make Void -> Void maps not allocate. Sadly, both code paths currently do allocate. Per our rules for not trying to make optimizations without data, we should start measuing these closures so we can make optimizations. Modifications: - Added an alloc couter test for result-erasing maps. Result: Alloc counter test suitable for any fix of #1697.
67 lines
2.5 KiB
YAML
67 lines
2.5 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-nio:20.04-5.4
|
|
build:
|
|
args:
|
|
ubuntu_version: "focal"
|
|
swift_version: "5.4"
|
|
|
|
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_addRemoveHandlers_handlercontext=9050
|
|
- MAX_ALLOCS_ALLOWED_1000_addRemoveHandlers_handlername=9050
|
|
- MAX_ALLOCS_ALLOWED_1000_addRemoveHandlers_handlertype=9050
|
|
- MAX_ALLOCS_ALLOWED_1000_autoReadGetAndSet=29050
|
|
- MAX_ALLOCS_ALLOWED_1000_autoReadGetAndSet_sync=0
|
|
- MAX_ALLOCS_ALLOWED_1000_getHandlers=9050
|
|
- MAX_ALLOCS_ALLOWED_1000_getHandlers_sync=37
|
|
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=30450
|
|
- MAX_ALLOCS_ALLOWED_1000_tcpbootstraps=4050
|
|
- MAX_ALLOCS_ALLOWED_1000_tcpconnections=172050 # regression from 5.3 which was 170050
|
|
- MAX_ALLOCS_ALLOWED_1000_udp_reqs=12050
|
|
- MAX_ALLOCS_ALLOWED_1000_udpbootstraps=2050
|
|
- MAX_ALLOCS_ALLOWED_1000_udpconnections=96050
|
|
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=453050 # regression from 5.3 which was 450050
|
|
- MAX_ALLOCS_ALLOWED_bytebuffer_lots_of_rw=2050
|
|
- MAX_ALLOCS_ALLOWED_creating_10000_headers=0
|
|
- MAX_ALLOCS_ALLOWED_decode_1000_ws_frames=2050
|
|
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_holding_buffer=3
|
|
- MAX_ALLOCS_ALLOWED_encode_1000_ws_frames_holding_buffer_with_space=3
|
|
- 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_erase_result=4050
|
|
- MAX_ALLOCS_ALLOWED_future_lots_of_callbacks=60050
|
|
- MAX_ALLOCS_ALLOWED_modifying_1000_circular_buffer_elements=0
|
|
- MAX_ALLOCS_ALLOWED_modifying_byte_buffer_view=2050
|
|
- MAX_ALLOCS_ALLOWED_ping_pong_1000_reqs_1_conn=4400
|
|
- MAX_ALLOCS_ALLOWED_read_10000_chunks_from_file=190050
|
|
- MAX_ALLOCS_ALLOWED_schedule_10000_tasks=90050
|
|
- MAX_ALLOCS_ALLOWED_scheduling_10000_executions=20150
|
|
- MAX_ALLOCS_ALLOWED_udp_1000_reqs_1_conn=12200
|
|
- MAX_ALLOCS_ALLOWED_udp_1_reqs_1000_conn=190050
|
|
# - 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
|