diff --git a/src/pages/benchmarks/index.tsx b/src/pages/benchmarks/index.tsx index 9ac3721f..0932eb6a 100644 --- a/src/pages/benchmarks/index.tsx +++ b/src/pages/benchmarks/index.tsx @@ -10,16 +10,19 @@ const engines = [ "v8-jitless", "sm-jitless", "kiesel", - "libjs", + "porffor", "duktape", "quickjs", ]; +const engineLabels: Record = { + porffor: "porffor (AOT)", +}; + export default function Benchmarks() { const [selectedEngines, setSelectedEngines] = useState([ "boa", "kiesel", - "libjs", "duktape", "quickjs", ]); @@ -52,6 +55,12 @@ export default function Benchmarks() { actions.

The higher the score the better.

+

+ 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. +

{engines.map((engine) => (
@@ -62,7 +71,7 @@ export default function Benchmarks() { checked={selectedEngines.includes(engine)} onChange={() => handleEngineCheckboxChange(engine)} /> - {engine} + {engineLabels[engine] ?? engine}
))}