Skip to content

Perf‐Test Guide

Hermet Park edited this page Aug 21, 2026 · 3 revisions

Internal Mode

Internal Mode is a hidden switch in the ThorVG Perf Test app that reveals tools helping for the ThorVG development.

Enabling and disabling

Open the browser devtools console on any page of the app and run:

__tvg.internal()        // enable
__tvg.internal(false)   // disable

Version selector

A dropdown in the header switches which build of @thorvg/webcanvas the page runs on. Options are:

  • Local : the version bundled with the app, taken from the workspace package.
  • Public npm version : the list is fetched from the npm registry when the dropdown first opens.

Benchmark

Opens a modal that runs a fixed measurement over the current grid setup instead of the free-running live chart. The run has two phases, a 3 second warmup and a 10 second measurement window, and it reports:

  • Average FPS
  • Frame time: avg, min, max, p95
  • Memory: average and peak, when the browser exposes it

Compatibility check

Opens the ThorVG test automation app with the current animation, which renders a PDF report comparing ThorVG output against the reference.

ThorVG View

Opens the current animation in the official ThorVG View in a new tab, which is useful for a quick side by side sanity check against a different player.

Clone this wiki locally