RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Bananabench AsyncBananabench CSVBananabench JSONBananabench PrintBananabench XMLBananabenchPhysics BenchmarkBeamConsole Folder OverviewJSON PerformanceConsole MainResave Parts ConfigsServer TestsSimple LoadSimulation TestDynamic Collision TestMain Development TestUnit Tests

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API Referenceconsole

Bananabench CSV

Script defined in `lua/console/bananabench-csv.lua`. Runs the full bananabench physics benchmark across ALL vehicles and exports results in CSV format.

Script defined in lua/console/bananabench-csv.lua. Runs the full bananabench physics benchmark across ALL vehicles and exports results in CSV format.


Functions/Exports

exportCSV(res) (local)

Converts benchmark results table to CSV format and prints to stdout.

  • Columns: Vehicle,Count,MBeams,RealTime,SpawnTime,ExecTime,Collision
  • Outputs separate rows for DynamicCollision and NoDynamicCollision per vehicle/count

Usage

Run as standalone console script. No arguments needed.

-- Executes automatically: benchmarks ALL vehicles, prints CSV to stdout

Internal Notes

  • Requires lua/console/bananabench module
  • Calls bench.getAllVehicles() to test every vehicle in the game
  • References args[2] for path but doesn't actually use it for file output (prints to stdout instead)
  • CSV output is wrapped in *** CSV START / *** CSV END markers
  • References test.res[1] and test.res[2] for dynamic collision on/off results (matches async variant's output format)

See Also

  • BeamConsole Folder Overview - Directory overview
  • bananabench-async Reference - Related reference
  • bananabench-json Reference - Related reference
  • bananabench-print Reference - Related reference
  • Console Commands Guide - Guide

Bananabench Async

Script defined in `lua/console/bananabench-async.lua`. Async/coroutine-based variant of the bananabench physics benchmark. Uses `coroutine.yield()` during physics steps to allow frame-by-frame executi

Bananabench JSON

Script defined in `lua/console/bananabench-json.lua`. Runs the bananabench physics benchmark with default settings and saves results to a JSON file.

On this page

Functions/ExportsexportCSV(res) (local)UsageInternal NotesSee Also