databricks / spark-sql-perf

Apache License 2.0
586 stars 407 forks source link

Main Class for running Benchmarks from the command line #47

Closed marmbrus closed 8 years ago

marmbrus commented 8 years ago

This PR adds the ability to run performance test locally as a stand alone program that reports the results to the console:

$ bin/run --help
spark-sql-perf 0.2.0
Usage: spark-sql-perf [options]

  -b <value> | --benchmark <value>
        the name of the benchmark to run
  -f <value> | --filter <value>
        a filter on the name of the queries to run
  -i <value> | --iterations <value>
        the number of iterations to run
  --help
        prints this usage text

$ bin/run --benchmark DatasetPerformance
yhuai commented 8 years ago

LGTM. Tried it locally with DatasetPerformance. Tests were good and I can see the result dir performance.