Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b341a5

Browse files
committed
Tweak perf output formatting
1 parent964e3b3 commit8b341a5

File tree

1 file changed

+5
-27
lines changed

1 file changed

+5
-27
lines changed

‎perf-testing/immutability-benchmarks.mjs‎

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,12 @@ const actions = {
180180
remove,
181181
filter,
182182
update,
183-
updateLargeObject1,
184-
updateLargeObject2,
185183
concat,
186184
mapNested,
187185
// dash-named fields to improve readability in benchmark results
186+
187+
"update-largeObject1":updateLargeObject1,
188+
"update-largeObject2":updateLargeObject2,
188189
"update-high":updateHigh,
189190
"update-multiple":updateMultiple,
190191
"remove-high":removeHigh,
@@ -621,8 +622,8 @@ function createBenchmarks() {
621622
"update-high",
622623
"remove",
623624
"remove-high",
624-
"updateLargeObject1",
625-
"updateLargeObject2"
625+
"update-largeObject1",
626+
"update-largeObject2"
626627
]
627628
for(constactionofreuseActions){
628629
summary(function(){
@@ -1216,13 +1217,6 @@ function printOverallVersionRankings(versionScores) {
12161217
return
12171218
}
12181219

1219-
console.log(
1220-
"\nMethodology: Lower geometric mean = better overall performance"
1221-
)
1222-
console.log(
1223-
"(Geometric mean is standard for benchmarking as it handles multiplicative performance differences)"
1224-
)
1225-
12261220
console.log("\n┌──────┬─────────────────────┬─────────────────┬───────────┐")
12271221
console.log("│ Rank │ Version │ Geometric Mean │ Scenarios │")
12281222
console.log("├──────┼─────────────────────┼─────────────────┼───────────┤")
@@ -1241,22 +1235,6 @@ function printOverallVersionRankings(versionScores) {
12411235
}
12421236

12431237
console.log("└──────┴─────────────────────┴─────────────────┴───────────┘")
1244-
1245-
// Highlight top performers
1246-
if(versionScores.length>=3){
1247-
console.log("\nTop Overall Performers:")
1248-
for(leti=0;i<Math.min(10,versionScores.length);i++){
1249-
constscore=versionScores[i]
1250-
const[versionName,freezeIndicator]=score.version.split("|")
1251-
constshortName=shortenVersionName(versionName)
1252-
console.log(
1253-
`${i+
1254-
1}.${shortName} (${freezeIndicator}) -${score.geometricMean.toFixed(
1255-
2
1256-
)}x average`
1257-
)
1258-
}
1259-
}
12601238
}
12611239

12621240
functionprintBenchmarkSummaryTable(benchmarks){

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp