programming-journal / programming

21 stars 15 forks source link

programming.cls is slow #49

Open krono opened 3 years ago

krono commented 3 years ago

Compared with other article bundles, programming is slow:

(23 page Programming paper, 2 figures, few math and listings)

Timings pdflatex lualatex xelatex
Programming 14.100 23.551 17.266
Article (base LaTeX) 5.085 6.804 5.428
Article (base LaTeX) (otf Fonts: LMR) 5.068 7.068 5.480
Article (KOMA) 5.751 7.656 5.930
Article (KOMA) (otf Fonts: LMR) 5.733 7.827 6.250
IEEEtran 5.373 6.499 5.119
IEEEtran (otf fonts: Gyre [Times,Helvt,Cour]) 5.319 7.449 5.514
JFP 5.585 7.187 5.563
JFP (otf fonts: Gyre [Times,Helvt,Cour]) 5.615 8.138 6.294

Thanks to @shriram and @samth for pointing this out.

All timings ``` Programming pdflatex paper 12,76s user 1,20s system 98% cpu 14,100 total lualatex paper 20,84s user 2,38s system 98% cpu 23,551 total xelatex paper 15,55s user 1,77s system 100% cpu 17,266 total Article (base LaTeX) pdflatex paper.tex 4,55s user 0,49s system 99% cpu 5,085 total lualatex paper.tex 6,12s user 0,67s system 99% cpu 6,804 total xelatex paper.tex 4,73s user 0,60s system 98% cpu 5,428 total Article (base LaTeX) (otf Fonts: LMR) pdflatex paper.tex 4,56s user 0,49s system 99% cpu 5,068 total lualatex paper.tex 6,36s user 0,69s system 99% cpu 7,068 total xelatex paper.tex 4,99s user 0,60s system 101% cpu 5,480 total Article (KOMA) pdflatex paper.tex 5,11s user 0,57s system 98% cpu 5,751 total lualatex paper.tex 6,81s user 0,77s system 99% cpu 7,656 total xelatex paper.tex 5,35s user 0,66s system 101% cpu 5,930 total Article (KOMA) (otf Fonts: LMR) pdflatex paper 5,15s user 0,55s system 99% cpu 5,733 total lualatex paper 7,04s user 0,76s system 99% cpu 7,827 total xelatex paper 5,54s user 0,65s system 98% cpu 6,250 total IEEEtran pdflatex paper.tex 4,80s user 0,52s system 99% cpu 5,373 total lualatex paper.tex 5,77s user 0,69s system 99% cpu 6,499 total xelatex paper.tex 4,62s user 0,58s system 101% cpu 5,119 total IEEEtran (otf fonts: Gyre [Times,Helvt,Cour]) pdflatex paper.tex 4,69s user 0,57s system 98% cpu 5,319 total lualatex paper.tex 6,61s user 0,81s system 99% cpu 7,449 total xelatex paper.tex 4,94s user 0,65s system 101% cpu 5,514 total JFP pdflatex paper 4,96s user 0,60s system 99% cpu 5,585 total lualatex paper 6,35s user 0,80s system 99% cpu 7,187 total xelatex paper 5,01s user 0,66s system 101% cpu 5,563 total JFP (otf fonts: Gyre [Times,Helvt,Cour]) pdflatex paper 4,98s user 0,61s system 99% cpu 5,615 total lualatex paper 7,19s user 0,91s system 99% cpu 8,138 total xelatex paper 5,60s user 0,80s system 101% cpu 6,294 total ```
krono commented 1 year ago

Slight update:

krono commented 11 months ago

This is again relevant because Overleaf now has a 20s limit on free plans