Skip to content

Axis Swapping

When your benchmark data has multiple dimensions (2D or 3D), the UI lets you swap which dimension maps to which axis. This changes the perspective without regenerating the file.

Vizb extracts three dimensions from benchmark names:

  • Name — groups benchmarks into separate charts
  • XAxis — categories on the X-axis
  • YAxis — test case variants

In the UI, use the axis dropdown to rearrange these. For example, swap Name and YAxis to see all variants grouped differently.

  • Compare different perspectives of the same 3D data
  • Group by variant instead of by benchmark family
  • Switch which dimension appears on the X-axis for better comparison

The initial axis assignment comes from your --group-pattern or --group-regex flags:

Terminal window
# Default: Name=XAxis=YAxis assignment from pattern
vizb bench.txt -p n/x/y -o output.html