Skip to content

hungfaileung/research-nosqlbench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 

Repository files navigation

research-nosqlbench

Resources

Firestore Testing

  curl --request POST \
  'https://firestore.googleapis.com/v1/projects/sixth-storm-328014/databases/(default)/documents/users?documentId=testgarydoc01' \
  --header 'Authorization: Bearer [your token]' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{"fields":{"name":{"stringValue":"gary"}}}' \
  --compressed
java -jar nb.jar run driver=http workload=test.yaml cycles=2
  • test.yaml
statements:
    - testing:
      method: 'POST'
      uri: 'https://firestore.googleapis.com/v1/projects/sixth-storm-328014/databases/(default)/documents/users?documentId=testgary'
      Content-Type: 'application/json'
      Authorization: 'Bearer [your token]'
      body: '{"fields":{"name":{"stringValue":"gary"}}}'
java -jar nb.jar run driver=http workload=test.yaml cycles=10000 threads=auto
statements:
    - testing:
      method: 'POST'
      uri: 'https://firestore.googleapis.com/v1/projects/[your project]/databases/(default)/documents/users?documentId=testgary{alpha}'
      Content-Type: 'application/json'
      Authorization: 'Bearer [your token]'
      body: '{"fields":{"name":{"stringValue":"gary{alpha}" }}}'
bindings:
 alpha: Identity()
 beta: NumberNameToString()
 gamma: Combinations('0-9A-F;0-9;A-Z;_;p;r;o;')
 delta: WeightedStrings('one:1;six:6;three:3;')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published