Skip to content

Commit

Permalink
docs: add glibc version not less than 2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
yisibl committed Aug 17, 2022
1 parent 4e48571 commit 6b7d0ab
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 8 additions & 4 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,17 @@ npm install @napi-rs/canvas

### `arm64`

**Linux** 需要 [**_cortex-a57_**](https://en.wikipedia.org/wiki/ARM_Cortex-A57) 或更新的 CPU 架构.
**Linux** 需要 [**_cortex-a57_**](https://en.wikipedia.org/wiki/ARM_Cortex-A57) 或更新的 CPU 架构

**macOS** 上支持所有 `m` 系列芯片.
**macOS** 上支持所有 Apple M 系列芯片

### `armv7`

[**_cortex-a7_**](https://en.wikipedia.org/wiki/ARM_Cortex-A7) 或更新的 CPU 架构.
[**_cortex-a7_**](https://en.wikipedia.org/wiki/ARM_Cortex-A7) 或更新的 CPU 架构。

### glibc

由于 Skia 依赖 [glibc](https://www.gnu.org/software/libc/) 2.18 的 API,所以最少需要您的系统中 glibc 版本 >= 2.18。

# 用法

Expand Down Expand Up @@ -117,7 +121,7 @@ writeFileSync(join(__dirname, 'draw-emoji.png'), b)

# 性能

[benchmark](./benchmark) 代码.
[benchmark](./benchmark) 代码

硬件信息:

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ npm install @napi-rs/canvas

[**_cortex-a57_**](https://en.wikipedia.org/wiki/ARM_Cortex-A57) or newer CPU architecture on **Linux**.

All `m` chips on **macOS**.
All Apple M chips on **macOS**.

### `armv7`

[**_cortex-a7_**](https://en.wikipedia.org/wiki/ARM_Cortex-A7) or newer CPU architecture.

### glibc

Since Skia relies on the [glibc](https://www.gnu.org/software/libc/) 2.18 API, you need to have at least glibc version >= 2.18 on your system.

# Usage

```js
Expand Down

1 comment on commit 6b7d0ab

@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: 6b7d0ab Previous: 4e48571 Ratio
Draw house#skia-canvas 24 ops/sec (±0.07%) 22 ops/sec (±0.87%) 0.92
Draw house#node-canvas 26 ops/sec (±0.39%) 18 ops/sec (±0.63%) 0.69
Draw house#@napi-rs/skia 23 ops/sec (±0.19%) 19 ops/sec (±1.82%) 0.83
Draw gradient#skia-canvas 23 ops/sec (±0.03%) 20 ops/sec (±1.31%) 0.87
Draw gradient#node-canvas 25 ops/sec (±0.33%) 17 ops/sec (±0.59%) 0.68
Draw gradient#@napi-rs/skia 22 ops/sec (±0.13%) 19 ops/sec (±0.54%) 0.86

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

Please sign in to comment.