This is a simple application built for measuring the rendering performance of both rendering engine, namely CanvasKit based on skia, and also native HTMLCanvas, which is also based on Skia underneath.
Visit https://goodnotes.github.io/canvaskit-benchmark/ to play around with both canvases.
Steps:
- Choose the stroke type that you want to generate, e.g. variable or constant (default to constant)
- Enter the number of strokes that you want to generate, default to 50
- Click "Generate strokes"
- Choose your rendering engine, e.g. CanvasKit2D, CanvasKitWebGL or HTMLCanvas
- Click "Draw".
- Wait for the results that will be printed as logs.
- You can plot the reults by clicking "Plot results"