News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Martin Sikora's Blog:
Storing arrays using JSON, serialize and var_export
August 09, 2011 @ 09:31:51

Martin Sikora was working on an application that used a large dataset (in an array) and found some interesting things in regards to PHP's resulting loading time and saving time in four different types of arrays.

Recently I was dealing with precessing and storing large arrays in PHP (around 100 000 items) and I found out some quiet surprising facts that are very useful in performance critical applications. [...] When I started looking for some benchmark I found article Cache a large array: JSON, serialize or var_export?. That is really good but I wanted to compare a few more things.

He tested with four different array types including associative with an integer value and numeric index with a string value at sizes of 10, 100, 1,000 and 10,000 items. He ran his tests with the json methods, serializing them and a var_export. There's graphs of his results for each included in the post with some interesting variations between the different array types.

0 comments voice your opinion now!
json serialize varexport large array dataset benchmark


blog comments powered by Disqus

Similar Posts

Blue Parabola Blog: Lies, Damn Lies, and Statistics - Zend's Drupal Benchmarks

Michael Nitschinger: Benchmarking Cache Transcoders in PHP

Lorna Mitchell's Blog: PHPUnit with Zend_Controller_Action_Helper

Paul Jones' Blog: Solar 0.23.0 Released

PHPBuilder.com: PHP Arrays: Advanced Iteration and Manipulation


Community Events

Don't see your event here?
Let us know!


community php7 conference podcast voicesoftheelephpant laravel5 library interview series framework release unittest api version opinion language laravel introduction extension example

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework