RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

bananabench-async Referencebananabench-csv Referencebananabench-json Referencebananabench-print Referencebananabench-xml Referencebananabench Referencebenchphysics ReferenceBeamConsole Folder Overviewjson-performance Referencemain Referenceresave-pcs Referenceservertests Referencesimpleload Referencesimtest Referencetest_dyncol Referencetest Referenceunittests Reference

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 Reference

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)

bananabench-async Reference

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 Reference

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 Notes