README.md 581 字节
Newer Older
B
Bomin Zhang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
# STRESS

``` bash
$ ./stress [-server=<localhost>] [-db=<test>] [-concurrent=<1>] [-fetch=<false>] [scriptFile]
```

## SCRIPT FILE

```json
[{
    "sql": "select * from meters where id = %d and a >= %d and a <= %d and tbname='%s'",
    "args": [{
        "type": "int",
        "min": -10,
        "max": 20
    }, {
        "type": "range",
        "min": 30,
        "max": 60
    }, {
        "type": "string",
        "min": 0,
        "max": 10,
        "list": [
            "table1",
            "table2",
            "table3",
            "table4"
        ]
    }]
}]
```