JSON compression in JavaScript

This page presents measurements of various compression techniques applied to 100000 bytes of real-world JSON data. Only forward transformations/compression was tested, no inverses and/or decompression. All tests were executed on Intel E6750 with 32bit Windows XP, Firefox 3.6.

Contestants


Results

Single

Algorithm Size (bytes) Time (msec)
MTF 100000 330
BWT 100001 11011
LZW - variable output width 18274 174
LZW - fixed output width 22970 110

Remarks:


Combined

Algorithm Size (bytes) Time (msec)
MTF + LZW 33000 540
BWT + LZW 9906 11159
BWT + MTF + LZW 7070 11577

Remarks:


BWT + MTF + LZW using smaller chunks

Chunk size (bytes) Size (bytes) Time (msec)
5000 14956 5862
10000 11285 7110
20000 8869 8336
50000 7556 10209

TODO

© 2010 Ondrej Zara