Giter Club home page Giter Club logo

duckrun's Introduction

duckrun

  • Utility to run a series of scripts and report the running times.
  • Initial support is for Redshift and Python.
  • work in progress

Redshift setup

  • copy the config file and input your secrets. An example config file can be found in the project root.

cp redshift_config.yaml redshift_config.yaml

  • configure the yaml file with your settings
  • execute the following using your config

python redshift_run.py redshift_config.yaml

Python Demo

make intagrationTest

Resdhift Sample Output

$ python tests/integration_test/python_process_integration.py

SUMMARY


start_time          end_time            processes      local_start_time    local_end_time
_______________________________________________________________________________________________
1528339130.748658   1528339131.1300669  2              06/06/18 22:38      06/06/18 22:38





DETAIL


step      process desc                            running_time (seconds)                  percent of total time
__________________________________________________________________________________________________________________________________
1         file1.sql                               0.1877                                  49.3
2         file2.sql                               0.1934                                  50.7


STD OUT


file1.sql
--------------------
1


file2.sql
--------------------
0.79304793653686

Use Cases

  • Testing the impact of databases changes on running time
  • Automating a series of SQL Scripts

Set Up

  • add duckrun to your python path
  • install depdendencies
    • pip3 install -r ./requirements.txt
  • configure YAML
    • cp redshift_config_example.yaml redshift_config.yaml

duckrun's People

Contributors

jasonsatran avatar

Watchers

 avatar

duckrun's Issues

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.