You are on page 1of 1

phpcassa vs pdo-cassandra (speed related comparison) -...

https://groups.google.com/forum/#!topic/phpcassa/6vY_...

+Mohammed

Search

Images

Maps

Play

YouTube

News

Gmail

Drive

Calendar

More

Mohammed Makhlouf

Share

Groups
phpcassa My groups Home Starred

phpcassa vs pdo-cassandra (speed related comparison)


3 posts by 2 authors Dragos 11/22/12

Favorites Click on a groups star icon to add it to your favorites

We've had some tests today having some inserts using phpcassa and pdo-cassandra and we would like to share some results. Test bench: 6 nodes (EC2, M1.Large), Datastax AMI with Cassandra 1.1.6, all instanced having the same rack and same DC. Replication factor = 3. Consistency level: QUORUM. SimpleStrategy. EC2Snitch. Tests were executed from the 7th EC2 machine (same Availability Zone as those six with Cassandra installed). #1 - phpcassa - single thread - 100K inserts (thrift C library compiled and enabled; query sent as thrift, not as CQL!) - 351 seconds #2 - phpcassa - single thread - 10K inserts (thrift C library compiled and enabled; query sent as thrift, not as CQL!) - 34 seconds #3 - pdo-cassandra - single thread - 100K inserts (CQL2) - 131-160 seconds #4 - pdo-cassandra - single thread - 10K inserts (CQL2) - 13-18 seconds #5 - cassandra stress tool (https://github.com/apache/cassandra/tree/trunk/tools/stress) java - single thread (-t 1) - 10K inserts - 11-26 seconds (we've tested 5 times and each time results were different) #6 - cassandra stress tool (https://github.com/apache/cassandra/tree/trunk/tools/stress) java - single thread (-t 1) - 100K inserts - 110-210 seconds (we've tested 5 times and each time results were different) #7 - cassandra stress tool (https://github.com/apache/cassandra/tree/trunk/tools/stress) java - 100 thread (-t 100) - 1M inserts - 110 seconds (not bad!) Any ideas why phpcassa (compiled C thrift library) is so slow compared with pdo-cassandra (this one has libthrift)? We would like to keep using phpcassa and "thrift" like syntax (at least until CQL3 is stable and has some "history"), but we need to run it faster. We will try having some opcode cached (apc) - maybe that will help also. Also we will try sending CQL2 from phpcassa to figure out if that makes any difference. I'm a bit "affraid" of using pdo-cassandra (READ.me from repository states very clearly it is: "Pretty much very experimental PDO driver for Cassandra CQL"; phpinfo does not even show what version number I have; does not compile on Ubuntu 12.10 and php 5.4.6); phpcassa proved very reliable during last 16 months (except that little-endian, big-endian hit) - great job Tyler Hobbs. I thank you for your efforts!

Recently viewed phpcassa v8-users pycassa-discuss Google Tasks API Scale 7 - Libraries a Recent searches ram requirements (i Connection refused vagrant networking

2013 Google Privacy - Terms of Service Google Home

Dragos

11/22/12

1 of 1

08/29/2013 09:16 AM

You might also like