This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #000 !important; | |
} | |
#wrapper { | |
background: none !important; | |
padding: 0 !important; | |
min-width: 860px !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Usage example | |
option(document.findElementById('header')) | |
.map(function (header) { | |
header.textContent = 'Uh oh'; | |
}) | |
.orElse(function () { | |
document.body.insertAdjacentHTML('afterbegin', '<h1 id="header">Uh oh</h1>'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String { | |
var codePoint: UInt32? { | |
guard self.unicodeScalars.count == 1 else { return nil } | |
return self.unicodeScalars.first!.value | |
} | |
func mapCodePoints(fn: UInt32 -> UInt32) -> String { | |
return String(self.unicodeScalars.map { Character(UnicodeScalar(fn($0.value))) }) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM Say hello | |
ECHO Hello %1 |
На этой странице описывается процесс настройки нагрузочного тестирования внешних ресурсов.
Для тестирования поведения сервиса под нагрузкой используется утилита Yandex Tank.
Танку можно указать патроны (HTTP-запросы, которые будут отправлены на целевой сервер) и расписание (количество запросов в секунду к целевому серверу в каждый момент времени стрельб, а также продолжительность стрельб). Также к танку можно подключить плагин мониторинга, позволяющий снимать показатели (например, количество свободной памяти или загрузку процессора) с целевого сервера.