dotnet / dotnet/crank

Improve accuracy of application start up time in docker

Open
#559 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.1k
Forks
111
Avg merge
2d 21h
Merged PRs (30d)
3

Description

Today it's impossible to compare application start-up time between docker and non-docker hosted apps. The docker-hosted startup time includes the time to start the container.

For example, comparing a .NET app to a go app in docker:
![image](https://user-images.githubusercontent.com/303201/223453949-24b5c2ce-3e78-4e64-b7d1-db61181e9f10.png)
I'm pretty sure the go app should start faster than the .NET app, but the current numbers indicate the reverse.

Is there a way to make these app types more comparable?

One idea: write to the console as we do with ready-state text. The docker container could use CMD + bash to write to the console to indicate that the docker container has finished starting, then launch the docker-hosted app. Crank uses that console write to remove the docker container start time from the app startup time.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.