Robot recording benchmark · October 2026Pull the plug and keep the recording.
We cut the power on a recording robot ten times. The Insaion Agent never lost more than 2 seconds. ros2 bag record lost about half a minute every time.
Seconds of recording lost in a typical power cut. Lower is better.
- Insaion Agent 1.1.0 against stock ros2 bag record
- Same machine, same data
- Medians, with the losses shown
51x less data lost
Each dot is one power cut at a random moment. The line marks the median.
Lighter where robots are busiest
ros2 bag record only records. The Insaion Agent records and streams live telemetry at the same time, and still uses less CPU on robots with many topics or fast sensors. Here is every workload we ran, including the ones where it costs more.
61% less CPU Drone flight, on a Raspberry Pi 4
59% less CPU 500 topics, on a Raspberry Pi 4
32% less CPU High-rate sensors, on a Raspberry Pi 4
Less CPU on 3 of 6 workloads, the same on 1
- Drone flightReal recording
About 100 topics, a 30 Hz camera, 1,600 msg/s
75% less2.5 %9.9 % - 500 topics
500 small sensor topics at 10 Hz, 5,000 msg/s
49% less4.3 %8.4 % - High-rate sensors
IMUs at 400 and 200 Hz, odometry and 20 motor channels
40% less3.1 %5.2 % - Camera robotReal recording
NVIDIA Nova Carter: 8 JPEG cameras, 18.6 MB/s
Same4.5 %4.4 % - Typical AMR
IMU, odometry, TF, a camera, a lidar and 20 metrics
17% more4.8 %4.1 % - Raw cameras and lidar
Two raw 30 Hz cameras and a dense lidar, 65 MB/s
42% more14.6 %10.3 %
Where it costs more, the robot streams raw camera and lidar data. Every byte goes into the agent's own storage engine, which is what keeps a power cut down to about a second.
Percent of one core, every process of each recorder, median of 3 runs on the PC at full rate. Lower is better. Within 5% counts as the same.
Show every numberHide the table
| Workload | PC cpuInsaion / ros2 bag | PC memoryInsaion / ros2 bag | Raspberry Pi 4 cpuInsaion / ros2 bag | Raspberry Pi 4 memoryInsaion / ros2 bag |
|---|---|---|---|---|
| Drone flight | 2.5 / 9.9 % | 131 / 97 MB | 22.6 / 58.7 % | 124 / 77 MB |
| 500 topics | 4.3 / 8.4 % | 154 / 141 MB | 32.4 / 79.0 % | 149 / 108 MB |
| High-rate sensors | 3.1 / 5.2 % | 110 / 86 MB | 26.1 / 38.4 % | 104 / 67 MB |
| Camera robot | 4.5 / 4.4 % | 137 / 94 MB | 40.8 / 42.0 % | 167 / 78 MB |
| Typical AMR | 4.8 / 4.1 % | 143 / 178 MB | 29.3 / 22.2 % | 132 / 142 MB |
| Raw cameras and lidar | 14.6 / 10.3 % | 163 / 187 MB | 75.2 / 54.9 % | 168 / 156 MB |
Made for bad networks
Robots live on cellular and patchy Wi-Fi. We tested for it.
24 h+ offline, and live telemetry still arrives
We kept a robot offline for 25 hours. Over 99.9% of its live telemetry arrived, all of it within 90 seconds of the link coming back.
128 kbit/s is enough for live telemetry
Slower than old 2G data, with 5% packet loss. Over 99.9% arrived.
1.2 GB recording uploaded over a patchy 2 Mbit/s link
Through two outages and a crash, in three runs out of three, with about 3% sent twice.
23 s for an urgent clip to jump the queue
Urgent uploads go first. A 1.7 GB upload already running steps aside, then picks up where it left off.
Uploads that follow the link
A 755 MB upload while the signal drops to 256 kbit/s, cuts out and comes back. It slows down, waits and speeds up again on its own, and 100% of live telemetry still arrives.
The same data, nothing dropped
On the PC at full rate, both recorders stored what the robot published, within 1%. The Insaion Agent dropped no records.
How we keep it fair
A benchmark is only worth something if you can trust how it was run.
- Both recorders run on the same machine, on the same reserved CPU cores, and record the same input.
- ros2 bag record writes MCAP with the same zstd compression and file split as the Insaion Agent.
- We count every process each recorder runs, so the agent's storage engine and telemetry collector are in its numbers.
- Every figure is a median of repeated runs, and every power cut is shown.
- Where ros2 bag record does better, the result stays on the page.
How we tested
- The robots
- Six workloads: a typical AMR, high-rate sensors, 500 topics and raw cameras with lidar, plus real recordings from an NVIDIA Nova Carter and a DJI M300 drone. Power cuts use the typical AMR.
- The rival
- Stock ros2 bag record writing MCAP with the same compression and file split as the Insaion Agent. For power cuts we also tuned it as far as it goes.
- Power cuts
- An Ubuntu 24.04 machine on ext4, hard reset with nothing flushed, 30 to 90 s into the recording. Ten cuts each, read back after reboot.
- Networks
- Day-long outages, slow and lossy links and modem-sized buffers, shaped with Linux traffic control, against a local cloud that counts what arrives.
- Hardware
- A Ryzen 7 7800X3D PC, and a Raspberry Pi 4 with an SD card at half the sensor rate.
- Version
- Insaion Agent 1.1.0, the released package, on ROS 2 Jazzy with Fast DDS.
Questions
Why does ros2 bag record lose so much in a power cut?
It writes through the operating system's cache and leaves flushing to the kernel. By default the kernel writes cached data out once it is 30 seconds old, so about the last half minute is still in memory when power goes. ros2 bag record has no option to sync its files itself. The Insaion Agent seals its recording about once a second and stores it durably, so a power cut costs about a second.
Can ros2 bag record be tuned to lose less?
Partly. Its documentation suggests --max-cache-size 0 to write messages straight to the bag, but that only skips ros2 bag record's own cache. The data still waits in the kernel's cache, so on its own it lost about 33 seconds per power cut, the same as stock. We then also set the kernel to write cached data out after 1 second instead of 30, turned off its write cache and used small chunks. It then lost about 4 seconds per power cut, 7 at most. The kernel setting applies to the whole machine, and it is about as far as tuning goes. The Insaion Agent stays under 2 seconds without any of it.
Does the Insaion Agent use more CPU than ros2 bag record?
It depends on the robot. With many topics or fast sensors it uses less, while also streaming live telemetry: on a Raspberry Pi 4, 61% less on a real drone flight, 59% less with 500 topics and 32% less with high-rate IMUs. With JPEG cameras it is about the same. With raw camera and lidar streams it uses more, 37% more on a Raspberry Pi 4, because every byte goes through the storage engine that keeps a power cut down to about a second.
Does it use more memory than ros2 bag record?
On most workloads, yes. The Insaion Agent runs three processes: the recorder, its storage engine and a telemetry collector. On a Raspberry Pi 4 they hold 104 to 168 MB together, against 67 to 156 MB for ros2 bag record. On the typical AMR it uses less memory on both machines we tested.
Do I need to change my ROS 2 code to get these results?
No. The Insaion Agent discovers your ROS 2 topics by itself. There is no SDK and no code to change.
See it on your own robot
One install. The agent finds your ROS 2 topics by itself, with no SDK and no code changes.