The Lab · Written in the open · Tagged Tutorials

Lab.

Working notes from the studio. The tools I build, the workflows I keep, the mistakes I paid for.

62 entries · latest 2026-11-06

Browse every entry by topic

Latest entry

RAXXO Studios 8 min read

String Concatenation vs Array Join: I Timed the Old Advice

I timed string concatenation against array push and join across four loop sizes, and the old quadratic-cost advice did not hold.

DevelopmentJavaScriptPerformanceTutorials
Read the entry
TLDR This entry in one minute
  • I timed string += against array push then join at four loop sizes in Node 22
  • At 1 million iterations, += finished in 339ms against 437ms for push and join
  • The two methods tied at 10,000 and 100,000 iterations, within a few percent either way

All entries · Tutorials