perlのラッパーをCに書き換えるだけの簡単なお仕事です
また速くなった。しかしめんどくさい。
$ make && perl -Iblib/lib -Iblib/arch -Ilib benchmark/all.pl Write (16 bytes): Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 8.92/s -- -92% -94% Cache::Swifty 106/s 1093% -- -24% swifty_direct 141/s 1479% 32% -- Read (16 bytes): Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 36.7/s -- -91% -95% Cache::Swifty 391/s 966% -- -50% swifty_direct 781/s 2031% 100% -- Write (1024 bytes): Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 8.85/s -- -91% -93% Cache::Swifty 101/s 1036% -- -26% swifty_direct 136/s 1435% 35% -- Read (1024 bytes): (warning: too few iterations for a reliable count) Rate Cache::FastMmap Cache::Swifty swifty_direct Cache::FastMmap 36.2/s -- -90% -95% Cache::Swifty 365/s 908% -- -49% swifty_direct 714/s 1873% 96% --