Comment

Comment by einshutoin

Hi HN,

I recently shared `lazy-image`, a Rust-powered Node.js image library meant to be a drop-in replacement for Sharp in serverless environments.

Some of you asked for reproducible benchmarks. So I built a Dockerized test environment with a React frontend to compare them side-by-side.

*Repo:* https://github.com/albert-einshutoin/lazy-image-test

*How to run:* 1. `git clone ...` 2. `docker-compose up --build` 3. Open `http://localhost:3001`

*What it tests:* - *Zero-Copy Conversion*: Where lazy-image shines (WebP/AVIF generation without resizing). - *Resize + Convert*: Standard use cases. - *Advanced Ops*: Where Sharp still wins (blur, crop, etc.) - included for fairness.

The app visualizes processing time (ms) and file size (bytes) for your specific hardware. I'd love for you to run it and tell me if my claims hold up on your machines!

parent einshutoin 10 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton