Test name | Executions per second |
---|---|
Canvas | 2512033.0 Ops/sec |
OffscreenCanvas | 2533379.5 Ops/sec |
var canvas = document.createElement('canvas');
var context = canvas.getContext('2d');
var offscreenCanvas = document.createElement('canvas');
var offscreenContext = offscreenCanvas.getContext('2d');
context.measureText('m');
offscreenContext.measureText('m');