Purpose

Benchmark for server environment

Request typeSynchronous
PluggetSystemTypeServer

Request format


JSON

{
   "taskType":"ServiceServerBenchmark",
   "params":{
      "sqlSelectIterations":0,
      "redis1KeysIterations":0,
      "redis2KeysIterations":0,
      "jsonParsingIterations":0
   }
}

Parameter

Type

Mandatory

Description

taskTypestringyesTask type
sqlSelectIterationsint

The number of iterations — a speed test of the execution queries to PostgreSQL.

redis1KeysIterationsint

The number of iterations — a speed test of the execution queries to Redis1

redis2KeysIterationsint
The number of iterations — a speed test of the execution queries to Redis2
jsonParsingIterationsint

Number of iterations — json parsing test

Response format


JSON

{
   "responseCommon":{
      "taskGuid":"guid",
      "taskType":"ServiceServerBenchmark",
   },
   "taskResponse":{
       sqlSelectsTimeSeconds: 0,
       redis1KeysTimeSeconds: 0,
       redis2KeysTimeSeconds: 0,
       jsonParsingTimeSeconds: 0,
   },
   "error":{
      "wsError":{
         "code":"string",
         "desc":"string"
      }
   }
}

Parameter

Type

Description

taskGuidguidUnique code for this task. Used when receiving a task via the queue
-taskTypestring enumTask type
-sqlSelectsTimeSecondsdoubleSql query execution time in seconds
-redis1KeysTimeSecondsdoubleRedis 1 query execution time in seconds
-redis2KeysTimeSecondsdoubleRedis 2 query execution time in seconds
-jsonParsingTimeSecondsdoubleJson parsing time in seconds
error
Error container, for more details see the article Error Description

Response with access error


JSON

{
  "responseCommon": {
    "taskGuid": "34398dc7-5488-49d1-a499-fef9e8826f40",
    "taskType": "ServiceServerBenchmark"
  },
  "error": {
    "wsError": {
      "code": "AuthFailed"
    }
  }
}