GithubHelp home page GithubHelp logo

arctern_benchmark's Introduction

arctern_benchmark

arctern benchmark

arctern_benchmark是为了对arctern的不同版本进行测试,并在网页生成时间对比图。 运行arctern benchmark主要需要以下几个部分:测试case的json文件,测试case文件,配置运行环境

  1. 编写要测试的函数对应的py文件,可以参考st_area.py

  2. 执行命令:

    python3 main.py -f test_suites/gis_only/gis_test.txt --times 3 --spark --python -v 0.1.0 --commit_id ae520101d84e76baf3978754e371b0a83a8d36b1 -w True

命令详解:

    -f #待测试的测试集合文件,每一行是一个测试用例,原文件以及对应的输出文件
    --times #待测试文件的测试次数
    --spark #如果加这个参数,意味着要测试arctern_pyspark的接口
    --Python #是否要测试Python接口
    -v #要测试的arctern版本
    --commit_id #要测试的arctern版本的具体的commit_id
    -w #是否要创建新的conda环境
  1. 生成网页对比图
    python3 gen_html.py --python --spark

命令详解:

    --python #是否收集Python接口运行的时间
    --spark #是否收集spark接口的运行时间
  1. 查看对比图 用浏览器打开result_html目录下对应test_case的html文件,就可以看到测试函数在不同版本的性能对比图了。

arctern_benchmark's People

Contributors

czs007 avatar xiaocai2333 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

czs007

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.