Giter Site home page Giter Site logo

simple_meter's Introduction

Simple Meter Benchmarking

Operation

We read a JSON template, insert the random keys, and flume it to whatever target DB we have. We massively fork everything, and store the results in Redis. After the fact, we read from the Redis the results, crunch the numbers, and display them. This bit is all handled by the simple_benchmarks gem.

There are _key.rb files that are matched to the _data.json files of the same name. The _gun.rb files are the specific "guns" to target specific database engines. The tokumx and mongodb guns share a lot of code in common in a library.

Updating

Updating for the purposes of testing will consist simply of adding a 'meter_bucket' array to the document, and adding new entries to that array.

For key-value engines, the document will be retrived and have a new entry appended. For engines like MongoDB or Postgres, there will be no prior retrival. The new information will simply be added to the document in place.

In the update mode, the document is required to be on the engine's server apriori, and so a prior run to add the documents (without the --update flag) is required.

If, during an update on an engine that requires the document to be there first, a new document will be added instead. The metrics for that should be instrumented seperately.

simple_meter's People

Watchers

James Cloos avatar Lord Alveric avatar  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.