Last active
August 29, 2015 14:17
-
-
Save calonso/43ea2c5e7a61f831a86c to your computer and use it in GitHub Desktop.
Custom C* configs comparison
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This ruby benchmark uses the latest cassandra-driver gem and inserts 50.000 entries in the cluster using several methods. | |
The model is like this: | |
CREATE TABLE events ( | |
id varchar, | |
timestamp timestamp, | |
var1 float, | |
var2 float, | |
var3 varchar, | |
var4 int, | |
PRIMARY KEY (id, timestamp) | |
) | |
It worths mentioning that we've tried with same id and with random ones having the same results. | |
XXXXX@XXXXXXXXXXX:~/cbenchmark$ CBENCH_REPLICATION_FACTOR=3 ./cbench.rb | |
user system total real | |
any_prepared_async 14.420000 0.710000 15.130000 ( 14.430499) | |
any_prepared_sync 26.580000 2.250000 28.830000 ( 71.302576) | |
any_non_prepared_sync 21.550000 3.310000 24.860000 ( 69.254249) | |
any_non_prepared_async 8.890000 0.360000 9.250000 ( 8.689930) | |
one_prepared_async 12.530000 0.220000 12.750000 ( 12.199848) | |
one_prepared_sync 27.700000 2.540000 30.240000 ( 71.629692) | |
one_non_prepared_sync 21.520000 3.200000 24.720000 ( 69.334548) | |
one_non_prepared_async 8.400000 0.470000 8.870000 ( 8.451268) | |
quorum_prepared_async 13.170000 0.050000 13.220000 ( 12.713715) | |
quorum_prepared_sync 27.210000 2.890000 30.100000 (111.314576) | |
quorum_non_prepared_sync 21.290000 3.560000 24.850000 (108.975929) | |
quorum_non_prepared_async 8.640000 0.510000 9.150000 ( 8.796696) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment