Coder Social home page Coder Social logo

spannerbench-cli's Introduction

spannerbench

A Google Cloud Spanner query planner benchmarking tool. It also allows you to run the same benchmark against multiple versions of the query planner.

See examples/benchmark.yaml for an example configuration.

Downloads

Usage

$ spannerbench
Benchmark1
    (scanned)    (total)      (cpu)     (plan)
1:        965  37.7455ms   2.7275ms    812.5µs    965/965
2:        965   37.565ms    2.982ms    677.5µs    965/965
Benchmark2
    (scanned)    (total)      (cpu)     (plan)
1:        965   35.991ms   1.5865ms    1.063ms    965/3
2:        965   36.391ms     1.58ms    1.225ms    965/3
Benchmark3
    (scanned)    (total)      (cpu)     (plan)
2:        100  36.3065ms   1.7225ms    1.221ms    100/100

Output explained...

planner version total rows scanned total execution time total CPU time planning time rows scanned/rows returned
1: 965 38.187ms 3.015ms 798.5µs 965/965

Notes

  • The tool runs the query planner and the query to display query execution stats.
  • The "scanned rows" is the most useful metric, others might be noisy and inconsistent.
  • The tool currently doesn't support timestamp-bound queries but it's in the roadmap.
  • The tool currently doesn't allow to use a specified index when querying. It will be enabled if requested by the users.

Disclaimer

This is not an official Google product.

spannerbench-cli's People

Contributors

rakyll avatar zchee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.