| home > API > [/server/benchmark] > |
| request url |
http://[SERVER]:[PORT]/server/benchmark[?PARAMETER1=value[&...]] |
| short description |
Starts server benchmark test and shows results. |
| long description |
The benchmark test can be started only by a user from the 'admin' group. It is started if mode=1. The returned result is boolean type, "1" means OK.
The result for mode=2 is described below. |
| parameters |
| name |
type |
description |
| mode |
integer |
1 - start benchmark test, 2 - show results |
| sid |
string |
Session identifier for a server connection. Use the /server/login request to get a valid session identifier. |
|
| result |
| # |
name |
type |
description |
| 0 |
name |
string |
Name of the test |
| 1 |
version |
integer |
Version of the test |
| 2 |
time |
integer |
Time spent in test (in miliseconds) |
| 3 |
rate |
double |
Rate of the test in interval <1, 10> (10 is the best rate) |
|
| examples |
|
| further information |
|