Skip to content

Commit b2cfbe3

Browse files
Replace libjs benchmarks with porffor (#284)
* Replace libjs benchmarks with porffor libjs benchmarks are no longer produced. Add porffor in its place, unchecked by default like v8-jitless and sm-jitless. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Label porffor as AOT compiled on benchmarks page Porffor compiles ahead of time, so its scores are not a like-for-like comparison with the interpreters. Add an (AOT) label to its checkbox and a note explaining the difference. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 49f537a commit b2cfbe3

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

‎src/pages/benchmarks/index.tsx‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ const engines = [
1010
"v8-jitless",
1111
"sm-jitless",
1212
"kiesel",
13-
"libjs",
13+
"porffor",
1414
"duktape",
1515
"quickjs",
1616
];
1717

18+
const engineLabels: Record<string, string> = {
19+
porffor: "porffor (AOT)",
20+
};
21+
1822
export default function Benchmarks() {
1923
const [selectedEngines, setSelectedEngines] = useState<string[]>([
2024
"boa",
2125
"kiesel",
22-
"libjs",
2326
"duktape",
2427
"quickjs",
2528
]);
@@ -52,6 +55,12 @@ export default function Benchmarks() {
5255
actions.
5356
</p>
5457
<p>The higher the score the better.</p>
58+
<p>
59+
Porffor is an ahead-of-time compiler rather than an interpreter, so
60+
its results are not a like-for-like comparison with the other engines,
61+
which all run as interpreters (V8 and SpiderMonkey are run with their
62+
JITs disabled). It is hidden by default.
63+
</p>
5564
<div className={styles.benchmarkControls}>
5665
{engines.map((engine) => (
5766
<div key={engine} className={styles.benchmarkLabelWrap}>
@@ -62,7 +71,7 @@ export default function Benchmarks() {
6271
checked={selectedEngines.includes(engine)}
6372
onChange={() => handleEngineCheckboxChange(engine)}
6473
/>
65-
{engine}
74+
{engineLabels[engine] ?? engine}
6675
</label>
6776
</div>
6877
))}

0 commit comments

Comments
 (0)