mirror of
https://github.com/apple/swift-nio.git
synced 2026-05-20 20:30:36 +00:00
Motivation: In Swift, it's really easy to accidentally add allocations yet the number of allocations is really important for performance. Therefore it's useful to have an integration test that counts the number of allocations and compares them to a reference (and fails if the number of allocations increases). Modifications: - add an allocation counter - add a HTTP1 client/server example that is run with the allocation counter intrumentation Result: We should now be able to track the number of allocations.
15 lines
509 B
Bash
15 lines
509 B
Bash
#!/bin/bash
|
|
##===----------------------------------------------------------------------===##
|
|
##
|
|
## This source file is part of the SwiftNIO open source project
|
|
##
|
|
## Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
|
## Licensed under Apache License v2.0
|
|
##
|
|
## See LICENSE.txt for license information
|
|
## See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
##
|
|
## SPDX-License-Identifier: Apache-2.0
|
|
##
|
|
##===----------------------------------------------------------------------===##
|