mirror of
https://github.com/pithings/unkernel.git
synced 2026-12-05 19:49:29 +08:00
59 lines
3.0 KiB
HTML
59 lines
3.0 KiB
HTML
<!doctype html>
|
|
<!-- SPDX-License-Identifier: MIT -->
|
|
<!-- Copyright (C) 2026 Pooya Parsa <pooya@pi0.io> -->
|
|
<!--
|
|
/jit-probe.html: is kwemu's chaining between compiled modules (tail calls)
|
|
a gain in this browser? Boots the page's kernel on the page's thread with
|
|
chaining off and on in turn, one boot per page load, and times the Perl
|
|
kernels of test/guest/work/work.pl, Perl's start-up and a shell loop in each
|
|
(src/jit-probe.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: JIT probe</title>
|
|
<style>
|
|
body { margin: 0; padding: 1rem; background: #000; color: #ddd; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
|
|
main { max-width: 60rem; 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; }
|
|
label { display: inline-flex; gap: .3rem; align-items: center; margin: .15rem .9rem .15rem 0; }
|
|
input[type=number], input[type=text] { font: inherit; background: #111; color: #ddd; border: 1px solid #444; border-radius: 3px; padding: .1rem .3rem; }
|
|
button { font: inherit; padding: .5rem 1.1rem; background: #222; color: #fff; border: 1px solid #555; border-radius: 4px; cursor: pointer; margin: .25rem .5rem .25rem 0; }
|
|
button:disabled { opacity: .5; cursor: default; }
|
|
pre { white-space: pre-wrap; word-break: break-word; background: #111; padding: .6rem; border-radius: 4px; margin: .5rem 0; }
|
|
#report { white-space: pre; overflow-x: auto; word-break: normal; }
|
|
#log { max-height: 14rem; overflow: auto; color: #999; }
|
|
#warn { color: #fc6; }
|
|
#warn:empty { display: none; }
|
|
.dim { color: #888; }
|
|
#status { color: #8cf; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<h1>unkernel JIT probe</h1>
|
|
<p class="dim">Times guest work with chaining between compiled modules off and on, to decide the default for this browser. Press Run, keep this tab in front and the screen on (the page reloads itself between boots; a few minutes in all), then press Copy text and paste the result.</p>
|
|
<pre id="warn"></pre>
|
|
<pre id="env"></pre>
|
|
<div>
|
|
<label>rounds <input type="number" id="rounds" min="1" max="6" value="3" style="width:3rem"></label>
|
|
<label>runs <input type="number" id="runs" min="2" max="8" value="4" style="width:3rem"></label>
|
|
<label>size <input type="number" id="size" min="1" max="8" value="1" style="width:3rem"></label>
|
|
<label>memory MiB <input type="number" id="mem" min="128" step="64" value="512" style="width:5rem"></label>
|
|
<label>rows <input type="text" id="rows" style="width:20rem"></label>
|
|
</div>
|
|
<button id="run">Run</button><button id="stop" disabled>Stop</button><button id="copytext" disabled>Copy text</button><button id="copyjson" disabled>Copy JSON</button>
|
|
<span id="status">idle</span>
|
|
<h2>Report</h2>
|
|
<pre id="report" class="dim">Press Run.</pre>
|
|
<h2>Log</h2>
|
|
<pre id="log"></pre>
|
|
</main>
|
|
<script type="module" src="/src/jit-probe.ts"></script>
|
|
</body>
|
|
</html>
|