DENSITY - 高性能压缩库


BSD
跨平台
C/C++

软件简介

DENSITY 是一个超级快的压缩库。完全兼容 C99 语言规范。下面是性能测试详情:

使用的文件 : enwik8 (100 MB)

硬件平台 : MacBook Pro, OSX 10.10.2, 2.3 GHz Intel Core i7, 8Gb 1600 MHz DDR, SSD

计时方法 : 使用 time 函数,在多次运行后取最佳值

注意: sharc -c1 使用 chameleon 算法, sharc -c2 使用 cheetah 算法, sharc -c3 使用
lion 算法 (see About the algorithms further down).

Program Library Compress Decompress Size Ratio Round trip
**[sharc](https://github.com/centaurean/sharc)** -c1 **density** 0.12.1 0.109s (914 MB/s) 0.077s (1299 MB/s) 61 524 502 61,52% 0.186s
[lz4](https://github.com/Cyan4973/lz4) -1 lz4 r126 0.461s (217 MB/s) 0.091s (1099 MB/s) 56 995 497 57,00% 0.552s
[lzop](http://www.lzop.org) -1 lzo 2.08 0.367s (272 MB/s) 0.309s (324 MB/s) 56 709 096 56,71% 0.676s
**[sharc](https://github.com/centaurean/sharc)** -c2 **density** 0.12.1 0.211s (473 MB/s) 0.177s (565 MB/s) 53 156 782 53,16% 0.388s
**[sharc](https://github.com/centaurean/sharc)** -c3 **density** 0.12.1 0.361s (277 MB/s) 0.396s (253 MB/s) 47 991 605 47,99% 0.757s
[lz4](https://github.com/Cyan4973/lz4) -3 lz4 r126 1.520s (66 MB/s) 0.087s (1149 MB/s) 47 082 421 47,08% 1.607s
[lzop](http://www.lzop.org) -7 lzo 2.08 9.562s (10 MB/s) 0.319s (313 MB/s) 41 720 721 41,72% 9.881s