Skip to content

ktorio/ktor-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d43c61e · Dec 19, 2024

History

79 Commits
Sep 30, 2024
Sep 30, 2024
Sep 30, 2024
Dec 16, 2024
Sep 30, 2024
Sep 30, 2024
Aug 2, 2021
Nov 28, 2023
Dec 19, 2024
Nov 24, 2023

Repository files navigation

Ktor Benchmarks

This repository contains benchmark tests for various performance metrics.

Allocation Benchmark (/allocation-benchmark)

Tests how much memory is allocated on a given request. This is done before every merge to ensure that the ktor server maintains a low memory profile by avoiding erroneous allocations.

Testing: ServerCallAllocationTest runs through the supported engines and calculates the memory allocated per request. When a new baseline is required, you may run the dumpAllocations gradle target.

Inspection: the allocation baseline dump is a series of JSON files. For easy reading of the values exported here, use the reportServer gradle target which has two pages for inspecting where memory is being allocated. previewClasses.html shows the largest memory consumers for types allocated, and previewSites.html shows the code sites that allocate the most memory.

TeamCity: https://ktor.teamcity.com/buildConfiguration/Ktor_AllocationTests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages