generated from napi-rs/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: transform state between save/restore
- Loading branch information
1 parent
36ff54f
commit d313b80
Showing
28 changed files
with
1,243 additions
and
1,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
[target.x86_64-apple-darwin] | ||
# ivybridge provided by Github Actions | ||
rustflags = ["-C", "target-cpu=ivybridge"] | ||
|
||
[target.x86_64-pc-windows-msvc] | ||
rustflags = ["-C", "link-args=/NODEFAULTLIB:libcmt.lib"] | ||
rustflags = ["-C", "link-args=/NODEFAULTLIB:libcmt.lib", "-C", "target-cpu=haswell"] | ||
|
||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-C", "target-cpu=haswell"] | ||
|
||
[target.aarch64-apple-darwin] | ||
rustflags = ["-C", "target-cpu=apple-a14"] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
linker = "aarch64-linux-gnu-gcc" | ||
rustflags = ["-C", "target-cpu=cortex-a57"] | ||
|
||
[target.armv7-unknown-linux-gnueabihf] | ||
linker = "arm-linux-gnueabihf-gcc" | ||
rustflags = ["-C", "target-cpu=cortex-a7"] | ||
|
||
[target.x86_64-unknown-linux-musl] | ||
rustflags = [ | ||
"-C", | ||
"target-feature=-crt-static", | ||
"-C", | ||
"target-cpu=haswell", | ||
] | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
linker = "aarch64-linux-musl-gcc" | ||
rustflags = ["-C", "target-feature=-crt-static"] | ||
rustflags = [ | ||
"-C", | ||
"target-feature=-crt-static", | ||
"-C", | ||
"target-cpu=cortex-a57", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import test from 'ava' | ||
import { omit } from 'lodash' | ||
|
||
import { createCanvas, Canvas } from '../index' | ||
|
||
test('Canvas constructor should be equal to createCanvas', (t) => { | ||
t.deepEqual(createCanvas(200, 100), new Canvas(200, 100)) | ||
t.deepEqual(omit(createCanvas(200, 100), 'getContext'), omit(new Canvas(200, 100), 'getContext')) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Submodule depot_tools
updated
255 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d313b80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
Draw house#skia-canvas
25.21
ops/sec (±1.25%
)31
ops/sec (±0.41%
)1.23
Draw house#node-canvas
22.94
ops/sec (±0.51%
)27
ops/sec (±0.47%
)1.18
Draw house#@napi-rs/skia
25.2
ops/sec (±1%
)29
ops/sec (±0.3%
)1.15
Draw gradient#skia-canvas
23
ops/sec (±1.1%
)31
ops/sec (±0.3%
)1.35
Draw gradient#node-canvas
22
ops/sec (±0.28%
)26
ops/sec (±1.72%
)1.18
Draw gradient#@napi-rs/skia
25
ops/sec (±0.08%
)28
ops/sec (±0.47%
)1.12
This comment was automatically generated by workflow using github-action-benchmark.