Swoole-src: Table performance quesions

Created on 7 Dec 2018  ·  2Comments  ·  Source: swoole/swoole-src

Table is able to make around 1 million reads/writes per second. I have a few questions:

1) What was the specs of the system that this benchmark came from? Was it bare metal, VM/VPS, AWS, ??
2) Was this benchmark done in PHP user-space using PHP Swoole\Table object or was it using the C/C++ api in a native application
3) How does concurrency effect table? Was this benchmark one process accessing the same table, multiple processes accessing table synchronously (such as req/reply type model which would prevent lock contention), or multiple processes accessing randomly with periodic lock contention

Thank you

question

All 2 comments

Test used physical machine. (Intel Core I7, 8G memory)

Test script is here https://github.com/swoole/swoole-src/blob/master/benchmark/table.php

I can remember I have tested _table_ with some millions of requests, as around 2.5 times faster than _IPC_ and this ahead of _redis_, vice versa, too. i7, 16GB, ThinkPad.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qifengzhang007 picture qifengzhang007  ·  3Comments

sagesan picture sagesan  ·  4Comments

AndyChanCode picture AndyChanCode  ·  3Comments

chenye2017 picture chenye2017  ·  3Comments

lotarbo picture lotarbo  ·  4Comments