Skip to content
Merged
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
7 changes: 7 additions & 0 deletions docs/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ async function graph({
const selectedNodeJsVersionsSet = new Set(selectedNodeJsVersions);
const selectedBunVersionsSet = new Set(selectedBunVersions);

const runtimesOrder = {
NODE: 0,
BUN: 1,
};

const valuesNodejs = benchmarkResultsNodejs
.filter(
b =>
Expand All @@ -190,6 +195,7 @@ async function graph({
// artificical benchmark name to make sure its always sorted by
// benchmark and node-version
benchmark: [
runtimesOrder.NODE,
BENCHMARKS_ORDER[b.benchmark],
NODE_VERSIONS.indexOf(getNodeMajorVersionNumber(b.runtimeVersion)),
b.runtimeVersion,
Expand All @@ -209,6 +215,7 @@ async function graph({
// artificical benchmark name to make sure its always sorted by
// benchmark and node-version
benchmark: [
runtimesOrder.BUN,
BENCHMARKS_ORDER[b.benchmark],
BUN_VERSIONS.indexOf(getBunMajorVersionNumber(b.runtimeVersion)),
b.runtimeVersion,
Expand Down
Loading