Practice ยท 2 of 2
Startup and size arithmetic
CHALLENGE
Difficulty: advanced+25 XP
Implement static (long bytes, double startupMs) DeployCost(string model, int appBytes, double jitMs) describing deployment costs conceptually: "framework-dependent" โ bytes = appBytes + 60_000_000 runtime is NOT bundled (return appBytes, jitMs + 120 for first-call JIT); "self-contained" โ bytes = appBytes + 65_000_000, startupMs = jitMs + 120; "trimmed" โ bytes = appBytes + 25_000_000, startupMs = jitMs + 120; "aot" โ bytes = appBytes + 18_000_000, startupMs = 2.0 (no JIT). The graded point: AOT pays no JIT tax; the others all carry it.
Press Submit to check your solution.
Back to lesson: Practice: Deployment drills