Skip to content

Commit

Permalink
Freshen up benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Jan 4, 2025
1 parent 528e793 commit 0598df2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Build:

## pdf2printable vs the competition

(As of 2024-03-02)
(As of 2025-01-04)

A bit of friendly comparison helps make sure the featureset is well-rounded and performance is on par.

Expand Down Expand Up @@ -98,11 +98,11 @@ Good printers should support PDF or PWG. After that, URF is the biggest enabler.
### Performance
Measured with a representative 90-page document for PWG-raster at 600 DPI on a AMD 3950X.

| | Speed (RGB) | Speed (Gray) | Size (RGB) | Size (Gray) |
| ---------------------- | ----------- | -------------| ----------- | ----------- |
| pdf2printable | 9s | 9s | 152MB | 76MB |
| ipptransform | 26s | 27s | 159MB | 76MB |
| mutool (AA off) | 19s | 26s | 152MB | 76MB |
| jrender (600dpi patch) | 25s | N/A | 334MB¹ | N/A |
| | Speed (RGB) | Speed (Gray) | Size (RGB) | Size (Gray) |
| ---------------------- | ----------- | -------------| ------------ | ----------- |
| pdf2printable | 500 PPM | 529 PPM | 152 MB | 76 MB |
| ipptransform | 204 PPM | 194 PPM | 159 MB | 76 MB |
| mutool (AA off) | 260 PPM | 184 PPM | 152 MB | 76 MB |
| jrender (600dpi patch) | 171 PPM | N/A | 334 MB¹ | N/A |

1. Antialiasing seems to be enabled and would account for the size difference. However, at these resolutions that doesn't really provide much benefit. For pdf2printable and mutool it can be optionally enabled/disabled.
3 changes: 2 additions & 1 deletion bench.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ time ./pdf2printable -r 600 -c gray8 ~/reference.pdf out.pwg
./configure
make -Bj$(nproc)
LD_LIBRARY_PATH=./cups/ time ./tools/ipptransform -m image/pwg-raster -r 600 -t srgb_8 ~/reference.pdf > out.pwg
LD_LIBRARY_PATH=./cups/ time ./tools/ipptransform -m image/pwg-raster -r 600 -t sgray_8 ~/reference.pdf > out.pwg

# jrender

Expand All @@ -30,4 +31,4 @@ time jrender-*/bin/jrender ~/reference.pdf out.pwg
# mutool
make -Bj$(nproc)
time ./build/release/mutool convert -O resolution=600 -A 0 -o out.pwg ~/reference.pdf
time ./build/release/mutool convert -O resolution=600,colorspace=gray -A 0 -o out2.pwg ~/reference.pdf
time ./build/release/mutool convert -O resolution=600,colorspace=gray -A 0 -o out.pwg ~/reference.pdf

0 comments on commit 0598df2

Please sign in to comment.