View Code on GitHub

PDF Repository by Opera

Managing a PDF corpus to benchmark and test PDF.js

We ran extensive tests with PDF.js on 6933 PDFs. We crawled the PDFs in a way so we hope they approximate the most popular PDFs on the internet. This is our first public report of the results, in the hope that its useful for anybody working on PDF.js.

Speed Histogram

We tested 131553 pages in 6933 pdfs in 5 runs with an average variance of 9.16% against an average page of a calibration document (The Tracemonkey Paper). On a 2.5 Ghz Intel Core i5 with 8g GB or memory this average is 300ms. Good user experience probably ends at like 3 - 4 times this amount of time per page.

Version0.2x0.4x0.6x0.8x1.0x1.2x1.4x1.6x1.8x2.0x2.2x2.4x2.6x2.8x3.0xSlowerTotal
14042942010501111220970974840280519691510120811228827725674173243710131553
31.9%38.1%9.3%5.4%3.7%2.1%1.5%1.1%0.9%0.9%0.7%0.6%0.4%0.3%0.2%2.8%

PDFs, that crashed PDF.js

There were 56 pdfs that crashed the system when we tried to render them with version 140429:

  • http://www.sahrc.org.za/home/21/files/Pfanelo%20June%20Edition.pdf
  • http://ce.sharif.edu/courses/87-88/2/ce342/assignments/files/assignDir7/S09-HW6.pdf
  • http://www.microimage.com.cn/uploadfile/xwjs/uploadfile/200904/20090421121345858.pdf
  • http://studies.aljazeera.net/ResourceGallery/media/Documents/2013/9/8/20139810737330580Porous%20Borders_bokoharam.pdf
  • http://www.att.com/support_static_files/manuals/Samsung_Galaxy_S4_Zoom.pdf
  • http://nnn.no/wp-content/uploads/2012/12/Overenskomst-Coop-Kaffe.pdf
  • http://www.cruiseshipportal.com/fileadmin/Downloads/CostaConcordia_study.pdf
  • http://ir.kadokawa.co.jp/topics/20140303_kcct.pdf
  • http://stream2.cma.gov.cn/cmatcvod/12/tqx/wenxian/ninth/%E8%BF%9110%E5%B9%B4%E4%B8%AD%E5%9B%BD%E5%8F%B0%E9%A3%8E%E6%9A%B4%E9%9B%A8%E7%A0%94%E7%A9%B6%E8%BF%9B%E5%B1%95.pdf
  • http://www.attajdid.ma/Pdf/3325_03-02-2014/04.pdf
  • http://www.gandramartins.adv.br/project/ives-gandra/public/uploads/2014/02/24/e0915dddesinformacao_sobre_a_pec_37.pdf
  • http://appplace.es/iphone/210-akinator-para-iphone.pdf
  • http://www.metrojambi.com/v1/hiburan/13395-the-raid-5cm-dan-habibie-a-ainun-film-indonesia-terlaris-2012.pdf
  • http://resources.news.com.au/files/2014/03/31/1226870/184371-tm-web-file-estia-festival.pdf
  • http://www.rcom.co.in/Rcom/aboutus/ir/pdf/Apple_iPhone_5c_and_5s_Press%20Release_01Nov2013.pdf
  • http://rudar.ruc.dk/bitstream/1800/12945/1/samlet-29Nov1035.pdf
  • http://www.metropcs.com/assets/user_guides/SamsungGalaxyS4.pdf
  • http://dokuman.osym.gov.tr/pdfdokuman/2014/ALS/ALSKILAVUZ722014.pdf
  • http://www.metrojambi.com/v1/hiburan/23259-coboy-junior-sumbang-lagu-dalam-trilogi-laskar-pelangi.pdf
  • http://www.danah.org/papers/FacebookPrivacyTrainwreck.pdf
  • http://www.conanp.gob.mx/acciones/pdf/pdf_procodes/PADRON_PROCODES_PERSONAS_FISICAS_3ER_TRIMESTRE.pdf
  • http://www.earth-prints.org/bitstream/2122/8753/1/poster_geoitalia_2013.pdf
  • http://imgs.sapo.pt/meo-site/2013/01/iPhone-5.pdf
  • http://epaper.jwb.com.cn/bhzb/page/241/2013-06/22/13/2013062213_pdf.pdf
  • http://www.hms.co.il/images/pdf/Kony-Insurance-datasheet.pdf
  • http://www.alazhar.gov.eg/sawt_alazhar/697/SawtAlAzhar_Issue_697.pdf
  • http://cache.vzw.com/multimedia/mim/sam_galaxy_s4/samsung_galaxy_s_4_um.pdf
  • http://iom.org.ua/en/pdf/IOM%20UKRAINE%20EURO%202012%20HUMAN%20TRAFFICKING.pdf
  • http://wellington.govt.nz/~/media/services/rates-and-property/earthquake-prone-buildings/files/eq-letstalk.pdf
  • http://www.iuoe324.org/sff_news/SFF_Newsletter_4.pdf
  • http://fenxishi.21cbh.com/var/upload/user/53104/file/ZiG3hwsjri531480224abe5_research.pdf
  • http://wakespace.lib.wfu.edu/bitstream/handle/10339/14669/freemanwm.pdf
  • http://www.nvidia.cn/content/company-info/aboutus/introduction-to-nvidia-cn.pdf
  • http://www.senac.br/media/1181/correio_709.pdf
  • http://pfarre.kirche.at/stoswald/sites/pfarre.kirche.at.stoswald/files/Osterpfarrbrief%202013f_0.pdf
  • http://www.cafeculture.com/wp-content/uploads/2014/03/V-CM-BR-086-04002-1346-0258-GP-Brazil-Fazenda-Cafe-Cambara-Terra-Preta-Microlot-Sample-0460-13-Pulped-Natural-60Kg.pdf
  • http://www.historia.uff.br/curias/modules/tinyd0/content/texto004.pdf
  • http://www.leskintique.com/WhitneyHoustonTribute.pdf
  • http://info.konysolutions.com/rs/konysolutions/images/DS_Kony_Mobile_Banking_Configurable-Extensible.pdf
  • http://www.etisalat.ae/en/system/docs/personal/guides/StepsForSettingiPhone5LTE.pdf
  • http://210.77.90.120/bitstream/344004/6951/1/%E4%B8%8D%E5%90%8C%E6%B5%B7%E8%A1%A8%E9%9D%A2%E6%B8%A9%E5%BA%A6%E5%AF%B9%E5%8D%97%E6%B5%B7%E5%8F%B0%E9%A3%8E%E2%80%9C%E6%9D%9C%E9%B9%83%E2%80%9D%E7%9A%84%E5%BD%B1%E5%93%8D%E8%AF%95%E9%AA%8C.pdf
  • http://www.spbstu.ru/publications/m_v/n_003/Rodyukov/256ba0c7.pdf
  • http://images.comparecellular.com/phones/2029/Samsung-Galaxy-S4-Active-User-Manual-eng.pdf
  • http://www.newhaven.edu/506338.pdf
  • http://homeschoolcreations.com/files/Angry_Birds_Printable_Pack_Preschool.pdf
  • http://minhateca.com.br/Samvel.Bracynho/Livros+Espiritismo/(+Espiritismo)+-+*23+-+Alan+Darc+-+Par*c3*a1bolas+e+Frases+de+Amor,4934196.pdf
  • http://www.hms.co.il/images/pdf/Kony-Private-Banking-datasheet.pdf
  • http://www.mediadesign.de/sites/default/files/m2-_vom_2013-01-11_seite_03.pdf
  • http://apps.tre-pi.jus.br/novo/eleicoes2012/arquivos/tre-pi-eleicoes-compilacao_resolucao-edicao-2.pdf
  • http://www.metrojambi.com/v1/hiburan/11542-turuti-pacar-ayu-ting-ting-ingin-gemuk.pdf
  • http://capmembers.com/media/cms/Invictus2_54A4E91A1C80C.pdf
  • http://www.dut.ac.za/sites/default/files/prospective_and_current_students/BankDetails.pdf
  • http://www.nzqa.govt.nz/assets/qualifications-and-standards/qualifications/ncea/NCEA-subject-resources/English/91479-B/91479-EXP-B-student2-001.pdf
  • http://docs.xamarin.com/guides/ios/platform_features/introduction_to_ios_7/offline.pdf
  • http://www.spprep.org/files/file/Academic_12-13/12-13-profile.pdf
  • http://www.photologix.nl/downloads/PHOTOLOGIX_CafeBabel_BeppeGrillo.pdf

The 32 slowest PDFs

Sorted by the slowest page in version 140429 that was contained inside the document:

Slowest PageUrl
138.38430861840067 (#27)http://thesecretstories.com/K-5_WORKSHOP_HANDOUT.pdf
126.15938018783487 (#1)http://jrwy.zjol.com.cn/resfile/2014-01-17/07/07.pdf
124.78892733591938 (#1)http://pdf.wenweipo.com/2014/02/05/a06-0205.pdf
66.09978273148057 (#1)http://www.sanantonio.gov/dsd/pdf/MDP/MDP_730.pdf
62.65082872957823 (#2)http://www.makkahnewspaper.com/makkahNews/media/k2/attachments/31012014_1_2.pdf
50.03763689644555 (#1)http://www.socialism.com/drupal-6.8/sites/all/pdf/class/Lorde-Age%20Race%20Class%20and%20Sex.pdf
44.985641595219384 (#40)http://www.att.com/support_static_files/manuals/Samsung_Galaxy_S_III.pdf
43.8799903177659 (#1)http://www.aljarida.com/files/issues/2012/02/03/pages/pdf/33.pdf
42.02718666564841 (#4)http://launch3telecom.com/shared_media/pdf/manufacturers/rfs_8.pdf
40.43932158742736 (#48)http://www.nmfs.noaa.gov/pr/pdfs/permits/americascup_iha_application.pdf
40.39531901261407 (#38)http://betterairport.verdus.nl/upload/forum/geert-jan.verkade@curnet.nl/B%20Superbia.pdf
37.82117243539982 (#38)http://xn--80aikaaqfdpng.xn--p1ai/shared/files/201304/5_28121.pdf
36.97834475218559 (#1)http://www.digitalmarketingaward.iabschweiz.ch/fileadmin/templates/pdf/2013/Ricardolino_Pr%C3%A4sentation.pdf
36.22502814885469 (#1)http://www.drk-karlsruhe.de/fileadmin/Angebote/Veranstaltungen/Flyer%20Familientag_2013_final.pdf
35.63874643890517 (#17)http://www.aecilluminazione.com/uploads/kcFinder/files/Brochure_Tunnel_ENG_low.pdf
33.496377952955484 (#1)http://www.attajdid.ma/Pdf/3354_14-03-2014/08.pdf
32.92199712880385 (#1)http://www.jindai.ac.jp/uploads/jindai/leaflet-education-2013_03.pdf
32.550535556231104 (#41)http://sun025.sun.ac.za/portal/page/portal/Arts/Departemente1/Joernalistiek/Homepage/publications/smf/SMF.pdf
32.52363525466562 (#2)http://artsontheblock.com/wp-content/uploads/2011/07/December-2013-AOB-Newsletter.pdf
30.801734820480323 (#1)http://emidius.mi.ingv.it/DBMI08/aquilano/query_eq/quest.pdf
28.996826430345262 (#1)http://www.metrolisboa.pt/wp-content/uploads/Mapadarede_Metro_julho2012.pdf
28.767014647682494 (#1)http://wldaily.zjol.com.cn/images/2013-06/28/wlrb20130628a0007v01n.pdf
28.357488677221756 (#1)http://www.stalbert.catholic.edu.au/__files/f/2817/T%203%20W%201%20-%20Yrs%201%20&%202%20Royal%20Baby%20Page.pdf
28.355158250881985 (#1)http://www.iloungeserver.com/iLounge_iPad-iPadminiBG_d.pdf
27.642042325649108 (#28)http://www.ifpi.org/downloads/Digital-Music-Report-2014.pdf
26.40154757982717 (#1)http://epaper.ynet.com/images/2014-03/14/A20/bjqnb20140314A20.pdf
25.962248800007632 (#1)http://www.ichihara-chb.ed.jp/yawatahigashi-j/gakkoudayori/1gatugou.pdf
25.181299886261243 (#1)http://ig-infol.ru/archive/2012/41/4.pdf
24.739032621019053 (#9)http://mediauk.gamerzines.com/download/Battlefield-3_1.pdf
24.701162790710807 (#9)http://www.afd.fr/webdav/shared/PUBLICATIONS/Colonne-droite/Presentation-AFD-VA.pdf
24.455738487368382 (#5)http://ptgmedia.pearsoncmg.com/images/9780744015423/samplepages/9780744015423.pdf
24.2222410942984 (#2)http://www.coachusa.com/CoachUsaAssets/files/97/route45.pdf