ConcurrentHashMapとmemcachedとjdbcの性能比較を行いました。memcachedのクライアントライブラリは、com.dangaとnet.spyの両方で実施しました。 計測は、それぞれ100万件のデータを生成したり、読み取った時間です。単位はmsecです。 対象 Create Bulk Create Read Bulk Read ConcurrentHashMap 4,586 --- 859 --- Memcache(com.danga) 422,290 216,359 592,190 90,960 Memcache(net.spy) 60,074 --- 425,191 49,515 jdbc(mysql) --- 88,974 654,895 11,554 計測時の注意点を列挙します。 com.dangaのmemcachedの「Bulk Create」は、複数ス