Created
September 12, 2012 22:39
-
-
Save sletix/3710506 to your computer and use it in GitHub Desktop.
vpc-test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Tests | |
| cisco.pdf (111 pages): | |
| ~ 6.40 minutes **current-production-version** | |
| # PNG | |
| # Docsplit.extract_images(path, size: '1000x', format: [:png], output: dir) in rails-side | |
| ~ 7 minutes with (vpc - 5m) **first-vpc-version** | |
| # PNG | |
| # Docsplit.extract_images(path, size: '1000x', format: [:png], output: dir) | |
| -> Test company/Project 1/111/4589,,/cisco-default.pdf | |
| ~ 5 minutes (vpc - 2m) | |
| # PNG | |
| # `convert -density 105 -geometry 1000x -quality 75` | |
| -> Test company/Project 1/111/4589,,/cisco-convert105.pdf | |
| ~ 4 minutes (vpc - 1.30m) | |
| # PNG | |
| # `convert -density 95 -geometry 800x -quality 65` | |
| -> Test company/Project 1/111/4589,,/cisco-convert95-800px.pdf | |
| ~ 4.40 minutes (vpc - 2m) | |
| # PNG | |
| # `convert -density 125 -geometry 1000x' | |
| -> Test company/Project 1/111/4589,,/cisco-convert125d.pdf | |
| ~ 3 minutes (vpc - 1.1m) | |
| # JPEG | |
| # `convert -density 105 -geometry 1000x -colorspace RGB -interlace none -quality 100` | |
| -> Test company/Project 1/111/4589,,/cisco-d105-jpg.pdf | |
| ~ 3.24 minutes (vpc - 1.4m) | |
| # JPEG | |
| # `convert -density 200 -geometry 1000x -colorspace RGB -interlace none -quality 80` | |
| -> Test company/Project 1/111/4589,,/cisco-200d-80q-jpg.pdf | |
| ~ 3.30 minutes (vpc - 1.4m) | |
| # JPEG | |
| # `convert -density 200 -geometry 1000x -colorspace RGB -interlace none -quality 100` | |
| -> Test company/Project 1/111/4589,,/cisco-200d-100q-jpg.pdf | |
| ~ 2 minutes **current-version** | |
| # PNG | |
| # Generate previews in vpc | |
| # `gs -sOutputFile=page-%03d.png -dNOPAUSE -dSAFER -sDEVICE=png16m -dBATCH -q -r150 -dGraphicsAlphaBits=4 -dTextAlphaBits=4` | |
| # `convert *.png -resize '211x>' preview-page-%03d.png"` | |
| -> Test company/Project 2/another one/cisco.pdf | |
| File - https://dl.dropbox.com/u/2578162/cisco.pdf | |
| # Results | |
| In old version(on rails-side processing) - output images with 1000x688* px, and processing time - 6.40 minutes | |
| And now we have vpc(working on nfs) - output images with 1800x1238* px, and it's getting 3x boost - 2 minutes ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment