mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
Motivation: Networking software like SwiftNIO that always has explicit flushes usually does not benefit from having TCP_NODELAY switched off. The benefits of having it turned on are usually quite substantial and yet we forced our users for the longest time to enable it manually. Quite a bit of engineering time has been lost finding performance problems and it turns out switching TCP_NODELAY on solves them magically. Netty has made the switch to TCP_NODELAY on by default, SwiftNIO should follow. Modifications: Enable TCP_NODELAY by default. Result: If the user forgot to enable TCP_NODELAY, their software should now be faster.
42 lines
981 B
YAML
42 lines
981 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
runtime-setup:
|
|
image: swift-nio:18.04-5.0
|
|
build:
|
|
args:
|
|
ubuntu_version: "18.04"
|
|
swift_version: "5.0"
|
|
skip_ruby_from_ppa: "true"
|
|
|
|
unit-tests:
|
|
image: swift-nio:18.04-5.0
|
|
|
|
integration-tests:
|
|
image: swift-nio:18.04-5.0
|
|
|
|
test:
|
|
image: swift-nio:18.04-5.0
|
|
environment:
|
|
- MAX_ALLOCS_ALLOWED_1000_reqs_1_conn=31200
|
|
- MAX_ALLOCS_ALLOWED_1_reqs_1000_conn=1062050
|
|
- MAX_ALLOCS_ALLOWED_ping_pong_1000_reqs_1_conn=4600
|
|
- MAX_ALLOCS_ALLOWED_bytebuffer_lots_of_rw=2100
|
|
- MAX_ALLOCS_ALLOWED_future_lots_of_callbacks=99100
|
|
- MAX_ALLOCS_ALLOWED_scheduling_10000_executions=20150
|
|
- MAX_ALLOCS_ALLOWED_creating_10000_headers=10100
|
|
- MAX_ALLOCS_ALLOWED_modifying_1000_circular_buffer_elements=50
|
|
|
|
performance-test:
|
|
image: swift-nio:18.04-5.0
|
|
|
|
shell:
|
|
image: swift-nio:18.04-5.0
|
|
|
|
echo:
|
|
image: swift-nio:18.04-5.0
|
|
|
|
http:
|
|
image: swift-nio:18.04-5.0
|