Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Benchmarks Visualization for Visual Studio CodeNew to Visual Studio Code? Get it now.
Benchmarks Visualization for Visual Studio Code

Benchmarks Visualization for Visual Studio Code

gameformush

|
23 installs
| (2) | Free
Visualize and analyze Go benchmark results directly in Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Benchvis: Go Benchmark Visualization

Benchvis is a VS Code extension for visualizing Go benchmark results. It supports both raw Go benchmark output and benchstat formatted comparisons with an interactive, customizable visualization interface.

Benchvis Logo

For optimal use of the pivot and filter functionality, please refer to the official benchstat documentation.

Features

Raw Go Benchmark Visualization

Visualize the results of Go benchmarks directly from test output:

  • Parse and visualize raw Go benchmark output (go test -bench results)
  • Automatically detect and format custom metrics
  • Interactive charts with multiple visualization options
  • Support for various input sizes and benchmark configurations

To use this feature:

  1. Run your Go benchmarks and copy the output
  2. Open the output in VS Code
  3. Run the command Benchvis: Visualize benchmark results

Benchstat Visualization

Warning: This feature is not implemented yet.

Visualize and compare benchmark results processed with Go's benchstat tool:

  • Interactive comparison of multiple benchmark implementations
  • Support for standard benchstat metrics (time, throughput)
  • Delta percentage visualization with color coding
  • Customizable charts with multiple views and options

To use this feature:

  1. Run benchstat to compare benchmark results
  2. Open the benchstat output in VS Code
  3. Run the command Benchvis: Visualize Benchstat Output

Visualization Features

Both visualization modes provide:

  • Multiple chart types (bar, line, radar, scatter)
  • Customizable color palettes
  • Chart export functionality (PNG)
  • Interactive data exploration
  • Tabular data view
  • Appearance customization options
  • Support for logarithmic scale for throughput metrics
  • Normalization to baseline implementation

Requirements

  • VS Code 1.60.0 or higher
  • For generating benchmarks, you need Go installed

The extension has no external dependencies and works with any Go benchmark output.

Usage

Working with Raw Go Benchmarks

  1. Run your Go benchmarks with:

    go test -bench . > benchmarks.txt
    
  2. Open the benchmark file in VS Code

  3. Open the command palette (Ctrl+Shift+P / Cmd+Shift+P) and run:

    Benchvis: Visualize benchmark results
    

Working with Benchstat Output

Warning: This feature is not implemented yet.

  1. Run benchstat to compare benchmark results:

    benchstat old.txt new.txt > comparison.txt
    
  2. Open the comparison file in VS Code

  3. Open the command palette (Ctrl+Shift+P / Cmd+Shift+P) and run:

    Benchvis: Visualize Benchstat Output
    

Chart Interface

The visualization interface provides multiple options:

  • Chart View: The primary visualization with customizable charts
  • Table View: Tabular data representation with color-coded deltas
  • Look and feel: Customize chart settings, fonts, and display options

Chart Controls

  • Metric: Choose between time, throughput, or custom metrics
  • Chart Type: Select between bar, line, radar, and scatter charts
  • Options: Toggle delta display, normalization, and other features
  • benchshtat pivot and filter inputs
  • Colors: Choose from predefined color palettes or customize colors
  • Export: Save charts as PNG images

Release Notes

0.2.6

Initial release with support for:

  • Raw Go benchmark visualization
  • Interactive charts and customization options

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Enjoy visualizing your Go benchmarks!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft