-
- Downloads
[SPARK-6953] [PySpark] speed up python tests
This PR try to speed up some python tests: ``` tests.py 144s -> 103s -41s mllib/classification.py 24s -> 17s -7s mllib/regression.py 27s -> 15s -12s mllib/tree.py 27s -> 13s -14s mllib/tests.py 64s -> 31s -33s streaming/tests.py 185s -> 84s -101s ``` Considering python3, the total saving will be 558s (almost 10 minutes) (core, and streaming run three times, mllib runs twice). During testing, it will show used time for each test file: ``` Run core tests ... Running test: pyspark/rdd.py ... ok (22s) Running test: pyspark/context.py ... ok (16s) Running test: pyspark/conf.py ... ok (4s) Running test: pyspark/broadcast.py ... ok (4s) Running test: pyspark/accumulators.py ... ok (4s) Running test: pyspark/serializers.py ... ok (6s) Running test: pyspark/profiler.py ... ok (5s) Running test: pyspark/shuffle.py ... ok (1s) Running test: pyspark/tests.py ... ok (103s) 144s ``` Author: Reynold Xin <rxin@databricks.com> Author: Xiangrui Meng <meng@databricks.com> Closes #5605 from rxin/python-tests-speed and squashes the following commits: d08542d [Reynold Xin] Merge pull request #14 from mengxr/SPARK-6953 89321ee [Xiangrui Meng] fix seed in tests 3ad2387 [Reynold Xin] Merge pull request #5427 from davies/python_tests
Showing
- python/pyspark/mllib/classification.py 9 additions, 8 deletionspython/pyspark/mllib/classification.py
- python/pyspark/mllib/regression.py 15 additions, 10 deletionspython/pyspark/mllib/regression.py
- python/pyspark/mllib/tests.py 36 additions, 33 deletionspython/pyspark/mllib/tests.py
- python/pyspark/mllib/tree.py 8 additions, 7 deletionspython/pyspark/mllib/tree.py
- python/pyspark/shuffle.py 4 additions, 3 deletionspython/pyspark/shuffle.py
- python/pyspark/sql/tests.py 2 additions, 2 deletionspython/pyspark/sql/tests.py
- python/pyspark/streaming/tests.py 39 additions, 24 deletionspython/pyspark/streaming/tests.py
- python/pyspark/tests.py 61 additions, 35 deletionspython/pyspark/tests.py
- python/run-tests 8 additions, 5 deletionspython/run-tests
Loading
Please register or sign in to comment