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

Physics Benchmark

Script defined in `lua/console/benchphysics.lua`. Simple legacy physics scaling benchmark that measures per-frame delay as vehicle count increases, outputting results to CSV.

Script defined in lua/console/benchphysics.lua. Simple legacy physics scaling benchmark that measures per-frame delay as vehicle count increases, outputting results to CSV.


Functions/Exports

testStep(i) (global)

Spawns i objects, runs 1000 frames via updateLoop(), returns average ms per frame.

benchPhysics() (global)

Runs the full benchmark from 0 to 8 vehicles, writing results to phys-scale.csv.

  • CSV columns: vehicle count;delay
  • Outputs progress to stdout

Usage

rerequire("lua/console/benchphysics")
benchPhysics()

Internal Notes

  • Uses semicolon-delimited CSV (European style)
  • Relies on global spawnObjects() and updateLoop() functions (provided by BeamNG console environment)
  • Much simpler than bananabench - no MBeams/s calculation, just raw frame delay
  • Fixed vehicle count of 8
  • Legacy script - bananabench supersedes this

See Also

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

Bananabench

Module defined in `lua/console/bananabench.lua`. Core physics benchmarking module that measures beam simulation throughput (MBeams/s) and real-time performance percentage across multiple vehicles.

BeamConsole Folder Overview

Console scripts for BeamNG.drive - benchmarks, tests, and utilities run outside the game engine in headless/console mode.

On this page

Functions/ExportstestStep(i) (global)benchPhysics() (global)UsageInternal NotesSee Also