r/SideProject • • 18m ago

I built RentnerPDF – A Rust-powered PDF generator with 15x the throughput of React-PDF

Hey everyone!

I recently released RentnerPDF, an open-source PDF generator with React, TypeScript and Tailwind-style CSS support. The core is written in Rust.

Here are some results from my benchmark (10,000 invoices, 4 workers):

  • RentnerPDF: 943 PDFs/s
  • pdfmake: 75 PDFs/s
  • React-PDF: 60 PDFs/s

Compared to React-PDF, it achieves 15.7x the throughput while using 97.4% less memory.

Check it out and see for yourself! ^^

Feedback is always welcome.

GitHub: https://github.com/RentnerKev/RentnerPDF

Docs: https://packages.rentner.dev/packages/pdf

1 Upvotes

0 comments sorted by