Skip to content

Commit

Permalink
Relax diff on test [skip skia]
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Feb 22, 2024
1 parent b61ecad commit 0d6d8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion __test__/regression.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ test('draw-svg-with-text', async (t) => {
const Arrow = new Image()
Arrow.src = await fs.readFile(join(__dirname, 'image-og.svg'))
ctx.drawImage(Arrow, 80, 60)
await snapshotImage(t, { ctx, canvas }, 'png', process.arch === 'x64' && process.platform !== 'darwin' ? 0.015 : 0.3)
await snapshotImage(t, { ctx, canvas }, 'png', process.arch === 'x64' && process.platform !== 'darwin' ? 0.15 : 0.3)
})

test('DOMMatrix::transformPoint', (t) => {
Expand Down

1 comment on commit 0d6d8ad

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 0d6d8ad Previous: 3245ff6 Ratio
Draw house#skia-canvas 30 ops/sec (±0.24%) 29 ops/sec (±0.2%) 0.97
Draw house#node-canvas 38 ops/sec (±0.39%) 37 ops/sec (±0.76%) 0.97
Draw house#@napi-rs/skia 32 ops/sec (±0.44%) 30 ops/sec (±1.13%) 0.94
Draw gradient#skia-canvas 28 ops/sec (±0.26%) 28 ops/sec (±0.79%) 1
Draw gradient#node-canvas 36 ops/sec (±0.61%) 36 ops/sec (±0.58%) 1
Draw gradient#@napi-rs/skia 31 ops/sec (±0.56%) 29 ops/sec (±0.77%) 0.94

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.