Something went wrong. Try again.
An experimental port of NetBSD, FreeBSD, OpenBSD, and XNU to unkernel unkernel.dev
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475<!doctype html><!-- SPDX-License-Identifier: MIT --><!-- Copyright (C) 2026 Pooya Parsa <pooya@pi0.io> --><!-- /profile.html: boot the page's kernel in several configurations (on the page's thread, in a worker, on 1..N CPUs) and time everyday guest work in each, with the page's frame gaps, to pick the defaults for ?cpus= and ?worker= on this device (src/profile.ts).--><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="color-scheme" content="dark"><meta name="robots" content="noindex"><title>unkernel: profile</title><style> body { margin: 0; padding: 1rem; background: #000; color: #ddd; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; } main { max-width: 64rem; margin: 0 auto; } h1 { font-size: 1.1rem; color: #fff; margin: 0 0 .5rem; } h2 { font-size: 1rem; color: #fff; margin: 1.25rem 0 .5rem; } fieldset { border: 1px solid #333; border-radius: 4px; margin: .5rem 0; padding: .5rem .75rem; } legend { color: #aaa; } label { display: inline-flex; gap: .3rem; align-items: center; margin: .15rem .9rem .15rem 0; } select, input[type=number], input[type=text] { font: inherit; background: #111; color: #ddd; border: 1px solid #444; border-radius: 3px; padding: .1rem .3rem; } input[type=text] { width: 100%; box-sizing: border-box; } button { font: inherit; padding: .35rem .9rem; background: #222; color: #fff; border: 1px solid #555; border-radius: 4px; cursor: pointer; margin: .25rem .5rem .25rem 0; } button:disabled { opacity: .5; cursor: default; } .table { overflow-x: auto; } table { border-collapse: collapse; min-width: 100%; } th, td { border-bottom: 1px solid #222; padding: .2rem .5rem; text-align: right; white-space: nowrap; } th:first-child, td:first-child { text-align: left; } th { color: #aaa; font-weight: normal; } td.best { color: #8f8; } td.bad { color: #f88; } pre { white-space: pre-wrap; word-break: break-word; background: #111; padding: .6rem; border-radius: 4px; margin: .5rem 0; } #log { max-height: 16rem; overflow: auto; color: #999; } #rec { color: #fff; } .dim { color: #888; } #spinner { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: #8cf; animation: pulse 1s linear infinite; vertical-align: middle; } @keyframes pulse { 0% { transform: translateX(0); } 50% { transform: translateX(1.5rem); } 100% { transform: translateX(0); } } a { color: #8cf; }</style></head><body><main> <h1>unkernel profile</h1> <p class="dim">Boots the kernel once per configuration, runs the workloads, and suggests defaults for this device. Keep this tab visible and in front while it runs (frame gaps are measured with requestAnimationFrame; the dot below stutters when the page's thread is blocked). <a href="/">Back to the page</a></p> <pre id="device"></pre> <fieldset><legend>Configurations</legend><div id="configs"></div></fieldset> <fieldset><legend>Workloads</legend><div id="workloads"></div> <label style="display:block">custom (sh -c): <input type="text" id="custom" placeholder="e.g. apt list --installed 2>/dev/null | wc -l"></label> </fieldset> <fieldset><legend>Options</legend> <label>distro <select id="distro"></select></label> <label>memory MiB <input type="number" id="mem" min="64" step="64" style="width:5rem"></label> <label>runs <input type="number" id="runs" min="1" max="10" value="3" style="width:3rem"></label> <label>size <select id="scale"><option value="0.25">0.25x</option><option value="0.5">0.5x</option><option value="1" selected>1x</option><option value="2">2x</option></select></label> <label><input type="checkbox" id="jit" checked> JIT</label> </fieldset> <button id="run">Run</button><button id="host">Host threads</button><button id="stop" disabled>Stop</button><button id="copy" disabled>Copy JSON</button><button id="copymd" disabled>Copy table</button> <span id="spinner"></span> <span id="status" class="dim">idle</span> <h2>Host threads <span class="dim">(no kernel: does this browser run workers in parallel, and how fast does a blocked one wake)</span></h2> <pre id="hostout" class="dim">Press Host threads.</pre> <h2>Suggestion</h2> <pre id="rec" class="dim">Run to get one.</pre> <h2>Results <span class="dim">(median ms over runs; first run in the cold row; jank = longest frame gap / frames over 50 ms)</span></h2> <div class="table"><table id="results"></table></div> <h2>Log</h2> <pre id="log"></pre></main><script type="module" src="/src/profile.ts"></script></body></html>