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 stdoutInternal Notes
- Requires
lua/console/bananabenchmodule - 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 ENDmarkers - References
test.res[1]andtest.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.