Kyoto Cabinet is an update of Tokyo Cabinet as an light-weighted key-value database solution. The installation of Kyoto Cabinet and its python library could be done by the following script:
wget http://fallabs.com/kyotocabinet/kyotocabinet-1.2.9.tar.gz
tar vxzf kyotocabinet-1.2.9.tar.gz
cd kyotocabinet-1.2.9/
./configure
make
sudo make install
cd ..
wget http://fallabs.com/kyotocabinet/pythonlegacypkg/kyotocabinet-python-legacy-1.5.tar.gz
tar vzxf kyotocabinet-python-legacy-1.5.tar.gz
cd kyotocabinet-python-legacy-1.5/
make
sudo make install
cd ..
I have a very simple test on Kyoto Cabinet. I have test set and get 1,000,000 entries to the db and compared it with python dict. The result is as below:
kc write time: 4.4425470829
kc read time: 1.49812507629
dict write time: 3.50502705574
dict read time: 1.01603198051
kc key/value iteration time: 2.5863609314
dict key/value iteration time: 3.59536600113
wget http://fallabs.com/kyotocabinet/kyotocabinet-1.2.9.tar.gz
tar vxzf kyotocabinet-1.2.9.tar.gz
cd kyotocabinet-1.2.9/
./configure
make
sudo make install
cd ..
wget http://fallabs.com/kyotocabinet/pythonlegacypkg/kyotocabinet-python-legacy-1.5.tar.gz
tar vzxf kyotocabinet-python-legacy-1.5.tar.gz
cd kyotocabinet-python-legacy-1.5/
make
sudo make install
cd ..
I have a very simple test on Kyoto Cabinet. I have test set and get 1,000,000 entries to the db and compared it with python dict. The result is as below:
kc write time: 4.4425470829
kc read time: 1.49812507629
dict write time: 3.50502705574
dict read time: 1.01603198051
kc key/value iteration time: 2.5863609314
dict key/value iteration time: 3.59536600113
Comments