Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/pages/benchmarks/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ const engines = [
"v8-jitless",
"sm-jitless",
"kiesel",
"libjs",
"porffor",
"duktape",
"quickjs",
];

const engineLabels: Record<string, string> = {
porffor: "porffor (AOT)",
};

export default function Benchmarks() {
const [selectedEngines, setSelectedEngines] = useState<string[]>([
"boa",
"kiesel",
"libjs",
"duktape",
"quickjs",
]);
Expand Down Expand Up @@ -52,6 +55,12 @@ export default function Benchmarks() {
actions.
</p>
<p>The higher the score the better.</p>
<p>
Porffor is an ahead-of-time compiler rather than an interpreter, so
its results are not a like-for-like comparison with the other engines,
which all run as interpreters (V8 and SpiderMonkey are run with their
JITs disabled). It is hidden by default.
</p>
<div className={styles.benchmarkControls}>
{engines.map((engine) => (
<div key={engine} className={styles.benchmarkLabelWrap}>
Expand All @@ -62,7 +71,7 @@ export default function Benchmarks() {
checked={selectedEngines.includes(engine)}
onChange={() => handleEngineCheckboxChange(engine)}
/>
{engine}
{engineLabels[engine] ?? engine}
</label>
</div>
))}
Expand Down
Loading