If you use Sharp to convert images to WebP in Node, perhaps checkout this quick benchmark to compare the time cost and size savings by different efforts:
Web developer from Sweden living in South Carolina and working for GitHub.
Creator of thatsgroce.web.app/about
- "Shallow clone vs. deep clone, in Node, with benchmark" peterbe.com/plog/shallow-c… #javascript #node
- I dip my toes into running TypeScript files directly. peterbe.com/plog/ts-node-v… tl;dr bun is super fast, esno and esrun are about the same performance as ts-node.

