skia_canvas icon indicating copy to clipboard operation
skia_canvas copied to clipboard

Benchmarks

Open lino-levan opened this issue 3 years ago • 4 comments

It would be really nice to see some benchmarks in comparison with deno-canvas. If you are accepting PRs, I would love to contribute.

lino-levan avatar Oct 24 '22 20:10 lino-levan

PRs are always welcome! You can uncomment the deno-canvas code in bench/deno.js to compare performance of both of these libraries using deno task bench. Additionally, we should also add more benchmarks which test other APIs such as gradients and images.

DjDeveloperr avatar Oct 25 '22 02:10 DjDeveloperr

Sounds good, I'll check it out when I get the chance (probably tomorrow)

lino-levan avatar Oct 25 '22 02:10 lino-levan

I found an old video editor project that rendered scenes to images via deno-canvas. I just switched to skia-canvas and it's unbelievable. To render a 5 second video, the old one took 2m 51s (171044ms). Skia-canvas took 41s (40735ms).

lino-levan avatar Oct 26 '22 21:10 lino-levan

Thats really impressive! How does it compare to Node.js alternatives?

DjDeveloperr avatar Nov 13 '22 03:11 DjDeveloperr