続PerlをCで書き換えるだけ (ry
OOインターフェイスで Cache::FastMmap の10倍超えた。そろそろ pathtraq.com への導入にむけた機能追加する。
$ make && perl -Iblib/lib -Iblib/arch -Ilib benchmark/all.pl 500 Cache::FastMmap Cache::Swifty swifty_direct Write (16 bytes): Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 8.82/s -- -92% -94% Cache::Swifty 108/s 1122% -- -22% swifty_direct 138/s 1462% 28% -- Read (16 bytes): (warning: too few iterations for a reliable count) Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 36.1/s -- -91% -95% Cache::Swifty 403/s 1017% -- -44% swifty_direct 714/s 1879% 77% -- Write (1024 bytes): Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 8.73/s -- -92% -93% Cache::Swifty 103/s 1079% -- -23% swifty_direct 133/s 1428% 30% -- Read (1024 bytes): Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 35.5/s -- -91% -95% Cache::Swifty 388/s 991% -- -43% swifty_direct 676/s 1801% 74% --