n1qlperf

command
v0.0.0-...-b800c40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

README

cbindexperf

Bulk scan request perf reporting tool for secondary indexes

Examples

$ cbindexperf -cluster 127.0.0.1:9000 -configfile config.json -resultfile result.json

$ cat config.json
{
   "Concurrency" : 1,
   "Clients": 1,
   "ScanSpecs" : [
      {
         "Type" : "All",
         "Id" : 1,
         "Index" : "first_name",
         "Repeat" : 0,
         "Limit" : 100,
         "Bucket" : "default"
      },
      {
         "Limit" : 0,
         "Low" : [
            "Aaron"
         ],
         "Repeat" : 0,
         "Type" : "Range",
         "Bucket" : "default",
         "High" : [
            "Z"
         ],
         "Id" : 2,
         "Inclusion" : 3,
         "Index" : "first_name"
      },
      {
         "Repeat" : 0,
         "Limit" : 0,
         "Type" : "Lookup",
         "Bucket" : "default",
         "Lookups" : [
            [
               "Aaron"
            ],
            [
               "Adela"
            ]
         ],
         "Index" : "first_name",
         "Id" : 2,
         "Inclusion" : 3
      }
   ]
}


$ cat result.json
{
   "Rows" : 300000,
   "Duration" : 1.5,
   "ScanResults" : [
      {
         "Rows" : 100,
         "Duration" : 18705899,
         "Error" : "",
         "Id" : 1
      },
      {
         "Duration" : 28055551,
         "Rows" : 998,
         "Error" : "",
         "Id" : 2
      },
      {
         "Rows" : 1000,
         "Duration" : 27615818,
         "Id" : 2,
         "Error" : ""
      }
   ]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL