Simon Willison’s Weblog

Subscribe

Does creating a zip file with php use more RAM then CPU? Or vise versa? Also, is it faster to use a system call, or the php zip library? Exec (zip filename.zip) vs. $zip =new ZipArchive().

29th July 2013

My answer to Does creating a zip file with php use more RAM then CPU? Or vise versa? Also, is it faster to use a system call, or the php zip library? Exec (zip filename.zip) vs. $zip =new ZipArchive(). on Quora

You can find out the answer yourself using a very simple benchmark—just call time() before and after each option and loop them a few thousand times to calculate an average.

This is Does creating a zip file with php use more RAM then CPU? Or vise versa? Also, is it faster to use a system call, or the php zip library? Exec (zip filename.zip) vs. $zip =new ZipArchive(). by Simon Willison, posted on 29th July 2013.

Next: Do I need to change something on my LIVE website to do Remote usability testing? Am I needed to create a duplicate copy of my website?

Previous: Which companies in London are using Python?