Skip to content
Snippets Groups Projects
  • Davies Liu's avatar
    4f01265f
    [SPARK-3786] [PySpark] speedup tests · 4f01265f
    Davies Liu authored
    This patch try to speed up tests of PySpark, re-use the SparkContext in tests.py and mllib/tests.py to reduce the overhead of create SparkContext, remove some test cases, which did not make sense. It also improve the performance of some cases, such as MergerTests and SortTests.
    
    before this patch:
    
    real	21m27.320s
    user	4m42.967s
    sys	0m17.343s
    
    after this patch:
    
    real	9m47.541s
    user	2m12.947s
    sys	0m14.543s
    
    It almost cut the time by half.
    
    Author: Davies Liu <davies.liu@gmail.com>
    
    Closes #2646 from davies/tests and squashes the following commits:
    
    c54de60 [Davies Liu] revert change about memory limit
    6a2a4b0 [Davies Liu] refactor of tests, speedup 100%
    4f01265f
    History
    [SPARK-3786] [PySpark] speedup tests
    Davies Liu authored
    This patch try to speed up tests of PySpark, re-use the SparkContext in tests.py and mllib/tests.py to reduce the overhead of create SparkContext, remove some test cases, which did not make sense. It also improve the performance of some cases, such as MergerTests and SortTests.
    
    before this patch:
    
    real	21m27.320s
    user	4m42.967s
    sys	0m17.343s
    
    after this patch:
    
    real	9m47.541s
    user	2m12.947s
    sys	0m14.543s
    
    It almost cut the time by half.
    
    Author: Davies Liu <davies.liu@gmail.com>
    
    Closes #2646 from davies/tests and squashes the following commits:
    
    c54de60 [Davies Liu] revert change about memory limit
    6a2a4b0 [Davies Liu] refactor of tests, speedup 100%
tests.py 14.01 KiB