Skip to content

Firefly Performance Test

9miao Mobile Game edited this page Aug 6, 2014 · 1 revision

Firefly Performance Test

Test Tool Introduction

Test tool is a concurrency testing that simulates client based on gevent written. (Download address: http://www.9miao.com/forum.php?mod=viewthread&tid=33814&highlight=%E6%80%A7%E8%83%BD)

produceuser.py: generate a batch of test accounts.
getuserinfo.py: get account information in database and generate user.json file.
Roboter.py: script for testing

Here we need to alter accounts interval in Line 110.

In order to achieve better test results, it’s suggested that start some more roboter.py each with a 200-400 interval to test, so you could simulate concurrency result in a better way.

Performance test

Major concerns
1. Network IO concurrence
2. Inter-process communication pressure
3. Data read-write pressure

Test machine configuration:

Operation system

CPU

memory

CentOS release 6.3 (Final) 64bit

24core Intel(R) Xeon(R) CPU           E5645  @ 2.40GHz

24020 MB

Test method:
Simulate client connection via script, run an instance fight in every two seconds. The processes have been made in server during this course: manage client connection, role characteristic and fight computing, dropped items generating and recording etc.

The server’s running condition when service starts:

Here we turn on four gameservers

Server pressure condition when we run an instance fight in every two seconds in four hundred clients:

Eight hundred clients: