thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Chen <senhaoc...@gmail.com>
Subject Why TFramedTransport so much slow when transport big data?
Date Wed, 17 Apr 2013 08:06:59 GMT
Hi,
Now I'm using TNonblockingServer.  But I found php is so slow than cpp.

The testing result:

server  client  data size  time
 cpp      php    829K        2m23.110s
 cpp      php    446K        0m33.337s
 cpp      php    199K        0m4.305s
 cpp      cpp     829K       0m0.564s

The service and data struct is:
struct Book {
    1: i32 book_id,
   2: string book_name,
   3: string book_author,
   4: double book_price,
   5: string book_publisher,
   6: i32    age,
}

service BookOrder {
    list<Book> order(1: string book);
}


Now I have some question:
1. Why php is so much slower than cpp
2. As the amount of data increases, the php's performance drastically
reduced

can anyone tell me?

Thanks.
--
Hassan Chen

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message