Benchmarks
How much faster depends on what you compare, so here are the comparisons that matter. Same template,
same data, the same 2-CPU Linux machine, ferroreport 1.1.0 against JasperReports 6.20.6 on Java 21. One script in the
repository reproduces all of it (tools/bench_all.py).
Cold: a process starts, renders one report and exits
What a script, a serverless function or a container per report pays. From process start to the PDF on disk.
Invoice, 2 pages 234× faster · 191 → 15 MiB
Grouped sales, 4 pages 210× faster · 186 → 15 MiB
Arabic, right to left, 1 page 240× faster · 178 → 14 MiB
20,000 rows, 477 pages 22× faster · 464 → 14 MiB
Warm: a service that stays up
JasperReports at its best: one JVM, the template compiled once, the JIT warmed up by hundreds of runs, the PDF exported to memory. ferroreport parses the template again every time.
Invoice, 2 pages 3.6× faster
Employee list, 2 pages 4.4× faster
Arabic, right to left, 1 page 3.2× faster
20,000 rows, 477 pages 5.3× faster
Large: rows by the hundred thousand
Rows are read as they are needed and each page is written as it is finished, so memory does not grow with the report. JasperReports runs with its default heap.
100,000 rows, 2,382 pages 9.0× faster · 876 → 14 MiB
1,000,000 rows, 23,810 pages 5.7× faster · 1,737 → 15 MiB
Each format: what an output costs
The 20,000-row report, cold, to each format both engines write. PDF, Word and CSV are written page by page; a sheet's columns come from every page and an OpenDocument file's styles come before its body, so large ones are filled more than once.
PDF 23× faster · 463 → 14 MiB
Excel (XLSX) 8.1× faster · 263 → 59 MiB
Word (DOCX) 12× faster · 292 → 14 MiB
OpenDocument sheet (ODS) 8.3× faster · 299 → 100 MiB
OpenDocument text (ODT) 8.8× faster · 290 → 59 MiB
CSV 12× faster · 248 → 13 MiB
Against JasperReports 7.1.1, with the templates converted to JRXML 7 for both engines: cold, 200× to 208× faster for the small reports; warm, 2.9 to 5.0×; a million rows in 11.31 s and 15 MiB against 52.22 s and 1,734 MiB.
In short: most of JasperReports' time on a small report is starting the JVM and compiling the template. That is why the gap is two orders of magnitude when a process starts per report, and 3 to 5× when it does not. PDFs are usually smaller too: 1.2 MB instead of 4.5 MB for the 20,000 rows, and about the same size at a million.
Built to be fast, small and safe
A report engine for any stack, and a drop-in one for the JasperReports templates you already have.
Pixel-identical
Every test report is rendered by both engines and compared pixel by pixel: text metrics, line breaks, page splits, groups and variables follow Jasper exactly.
Safe with any template
No .jasper deserialization, no Java code in expressions, no network. Images and subreports only load from directories you allow, and page and time limits stop a report that runs away. Every change is tested against thousands of damaged templates.
Flat memory at any size
Rows are read as the report needs them and each page is written as it is finished. A million rows and 23,810 pages render in 16 MB, values like "page 3 of 240" included; over HTTP the rows travel one per line and the server stays at about 50 MB. Excel workbooks are written as they are made too.
One engine, any language
CLI, Rust library, JavaScript and WebAssembly, Python, Java (it reads a ResultSet row by row), and an HTTP API in an ~8 MB Docker image for C#, PHP, Go and the rest, with a template cache and Prometheus metrics. It starts in milliseconds, so it suits serverless functions too.
The features you use
Bands that split across pages, frames, images, subreports, tables, lists, crosstabs, every JasperReports chart type, QR codes, DataMatrix, PDF417, EAN, UPC, Code 128, Code 39 and other barcodes (barcode4j and Barbecue), SVG images, PDF form fields, links and bookmarks, styled, HTML and RTF text, rotation, multi-column layouts, conditional styles.
PDF, Excel, Word, PowerPoint, OpenDocument, CSV and HTML
The same template exports to an .xlsx workbook with the cells, merges, fonts, borders, images and charts Jasper's exporter gives, to a .docx laid out like Jasper's Word export, to a .pptx with a slide per page, to .ods and .odt for LibreOffice laid out the same way, to CSV, or to a web page that looks like the PDF for previews in a browser. Excel and CSV are checked cell by cell against Jasper. PDFs can be tagged for screen readers (PDF/UA-1, checked with veraPDF): texts as paragraphs, pictures as figures with their description, tables with their header cells, lists as lists.
JRXML, or a format of its own
Templates from Jaspersoft Studio work as they are, JRXML 6 or 7. New ones can be written in .ferro: the same report as an indented outline, half the size, accessible by default, and with no coordinates if you like: parts stack and sit in rows, and what repeats is defined once. ferroreport convert goes both ways, and ferroreport migrate checks a whole folder of templates before you switch. How it reads.
A designer in your browser
Paste a sample of your data, drag its fields onto the page, set fonts, colors, borders and number formats, and watch the PDF change as you go. It opens and saves .ferro and JasperReports .jrxml, and downloads PDF, Excel, Word and PowerPoint. Nothing is uploaded: the engine runs on your computer. Open the designer.
PDFs to archive and protect
PDF/A-2 and PDF/A-3, checked with veraPDF on every change; files carried inside the PDF, such as the XML of an electronic invoice; AES-256 encryption with a password and permissions; links, anchors and bookmarks. All in the open-source engine, from the template properties JasperReports already uses. How.
Free and open source
MIT or Apache-2.0, built for the community. Contributions and new test templates are welcome.
Same template, both engines
Pick a report. ferroreport renders it right here in your browser; JasperReports needs Java, so its PDF was made from the same template on a server, and the bars replay how long each one took. Then compare the two PDFs side by side.
Both bars move at real speed.
Your JasperReports template, unchanged: ferroreport reads the same .jrxml files. Edit anything and it renders again.
Loading the engine…
JasperReport report =
JasperCompileManager.compileReport("invoice.jrxml");
JsonDataSource rows =
new JsonDataSource(new FileInputStream("rows.json"));
Map<String, Object> params = new HashMap<>();
params.put("CUSTOMER", "Distribuidora Caribe");
JasperPrint print =
JasperFillManager.fillReport(report, params, rows);
JasperExportManager.exportReportToPdfFile(print, "invoice.pdf");
import { render } from "ferroreport";
const pdf = render(jrxml, rows, { CUSTOMER: "Distribuidora Caribe" });
The same call exists for Python, Rust, the command line and HTTP. See every option in the docs.
Install
Pick the way you want to call it. Every option uses the same engine and produces the same PDF.
The npm package, the Rust crates, the binaries and the Docker image are available now. The PyPI package is being published. Every function and option is described in the documentation.