-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve speed for test #188
Comments
Thanks. It seems that the following test is the slowest test:
Let's look into this as the first step. |
I'll give it a try to improve the speed of |
Because date_time and float are not included in tsv. Before this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (24.666772) Finished in 24.667106 seconds. ------------------------------------------------------------------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------------------------------------------------------------------- 0.04 tests/s, 0.04 assertions/s real 0m25.270s user 0m24.633s sys 0m0.451s ``` After this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (17.476536) Finished in 17.476912 seconds. ------------------------------------------------------------------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------------------------------------------------------------------- 0.06 tests/s, 0.06 assertions/s real 0m18.117s user 0m17.554s sys 0m0.383s ``` Refs red-data-tools#188.
Because date_time and float are not included in tsv. Before this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (24.666772) Finished in 24.667106 seconds. ------------------------------------------------------------------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------------------------------------------------------------------- 0.04 tests/s, 0.04 assertions/s real 0m25.270s user 0m24.633s sys 0m0.451s ``` After this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (17.476536) Finished in 17.476912 seconds. ------------------------------------------------------------------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------------------------------------------------------------------- 0.06 tests/s, 0.06 assertions/s real 0m18.117s user 0m17.554s sys 0m0.383s ``` Refs #188.
Because tsv file is too big(404,290 rows). Before this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (17.476536) Finished in 17.476912 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 0.06 tests/s, 0.06 assertions/s real 0m18.117s user 0m17.554s sys 0m0.383s ``` After this change: $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (0.001124) Finished in 0.001461 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 684.46 tests/s, 684.46 assertions/s real 0m0.595s user 0m0.376s sys 0m0.126s Refs red-data-tools#188.
Because tsv file is too big(404,290 rows). Before this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (17.476536) Finished in 17.476912 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 0.06 tests/s, 0.06 assertions/s real 0m18.117s user 0m17.554s sys 0m0.383s ``` After this change: $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (0.001124) Finished in 0.001461 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 684.46 tests/s, 684.46 assertions/s real 0m0.595s user 0m0.376s sys 0m0.126s Refs red-data-tools#188.
Because tsv file is too big(404,290 rows). Before this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (17.476536) Finished in 17.476912 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 0.06 tests/s, 0.06 assertions/s real 0m18.117s user 0m17.554s sys 0m0.383s ``` After this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (0.001124) Finished in 0.001461 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 684.46 tests/s, 684.46 assertions/s real 0m0.595s user 0m0.376s sys 0m0.126s ``` Refs red-data-tools#188.
Because tsv file is too big(404,290 rows). Before this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (17.476536) Finished in 17.476912 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 0.06 tests/s, 0.06 assertions/s real 0m18.117s user 0m17.554s sys 0m0.383s ``` After this change: ```bash $ time ruby -I lib test/run-test.rb -t "/QuoraDuplicateQuestionPairTest/" -v Loaded suite test Started QuoraDuplicateQuestionPairTest: test: #each: .: (0.001124) Finished in 0.001461 seconds. ------------------------------------------------------------------------------------- 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed ------------------------------------------------------------------------------------- 684.46 tests/s, 684.46 assertions/s real 0m0.595s user 0m0.376s sys 0m0.126s ``` Refs #188. --------- Co-authored-by: Sutou Kouhei <[email protected]>
GitHub: red-data-toolsGH-188 Because csv file is too big (277,656 rows). Before this change: ```console time ruby test/run-test.rb -t GeoloniaTest --verbose=important-only Finished in 5.998956 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m6.603s user 0m6.146s sys 0m0.346s ``` After this change: ```console $ time ruby test/run-test.rb -t GeoloniaTest --verbose=important-only Finished in 0.001634 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.564s user 0m0.388s sys 0m0.087s ```
GitHub: red-data-toolsGH-188 Because csv file is too big (277,656 rows). Before this change: ```console $ time ruby test/run-test.rb -t GeoloniaTest --verbose=important-only Finished in 5.998956 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m6.603s user 0m6.146s sys 0m0.346s ``` After this change: ```console $ time ruby test/run-test.rb -t GeoloniaTest --verbose=important-only Finished in 0.001634 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.564s user 0m0.388s sys 0m0.087s ```
GitHub: GH-188 Because csv file is too big (277,656 rows). Before this change: ```console $ time ruby test/run-test.rb -t GeoloniaTest --verbose=important-only Finished in 5.998956 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m6.603s user 0m6.146s sys 0m0.346s ``` After this change: ```console $ time ruby test/run-test.rb -t GeoloniaTest --verbose=important-only Finished in 0.001634 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.564s user 0m0.388s sys 0m0.087s ```
GitHub: red-data-toolsGH-188 Because date_time is not included in the following csvs. * diamonds.csv (diamonds dataset inherits from `Ggplot2Dataset`) * mpg.csv (fuel economy dataset inherits from `Ggplot2Dataset`) Before this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 3.702616 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.665s user 0m4.136s sys 0m0.226s ``` After this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 3.367821 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.179s user 0m3.738s sys 0m0.202s ``` After this change, the fuel economy dataset test also passed: ```console $ ruby test/run-test.rb -t FuelEconomyTest --verbose=important-only Finished in 0.017332 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications ```
GitHub: GH-188 Because date_time is not included in the following csvs. * diamonds.csv (diamonds dataset inherits from `Ggplot2Dataset`) * mpg.csv (fuel economy dataset inherits from `Ggplot2Dataset`) Before this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 3.702616 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.665s user 0m4.136s sys 0m0.226s ``` After this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 3.367821 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.179s user 0m3.738s sys 0m0.202s ``` After this change, the fuel economy dataset test also passed: ```console $ ruby test/run-test.rb -t FuelEconomyTest --verbose=important-only Finished in 0.017332 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications ```
GitHub: red-data-toolsGH-188 Because csv file is too big (53,940 rows). Before this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 3.367821 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.179s user 0m3.738s sys 0m0.202s ``` After this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 0.002048 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.551s user 0m0.379s sys 0m0.085s ```
GitHub: GH-188 Because csv file is too big (53,940 rows). Before this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 3.367821 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.179s user 0m3.738s sys 0m0.202s ``` After this change: ```console $ time ruby test/run-test.rb -t DiamondsTest --verbose=important-only Finished in 0.002048 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.551s user 0m0.379s sys 0m0.085s ```
GitHub: red-data-toolsGH-188 Because csv file is too big (10,779 rows). Before this change: ```console $ time ruby test/run-test.rb -t HouseOfRepresentativeTest --verbose=important-only Finished in 2.679117 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m3.295s user 0m3.031s sys 0m0.152s ``` After this change: ```console $ time ruby test/run-test.rb -t HouseOfRepresentativeTest --verbose=important-only Finished in 0.095506 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.659s user 0m0.465s sys 0m0.103s ```
GitHub: red-data-toolsGH-188 Because csv file is too big (10,779 rows and 41 columns). Before this change: ```console $ time ruby test/run-test.rb -t HouseOfRepresentativeTest --verbose=important-only Finished in 2.679117 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m3.295s user 0m3.031s sys 0m0.152s ``` After this change: ```console $ time ruby test/run-test.rb -t HouseOfRepresentativeTest --verbose=important-only Finished in 0.095506 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.659s user 0m0.465s sys 0m0.103s ```
GitHub: GH-188 Because csv file is too big (10,779 rows and 41 columns). Before this change: ```console $ time ruby test/run-test.rb -t HouseOfRepresentativeTest --verbose=important-only Finished in 2.679117 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m3.295s user 0m3.031s sys 0m0.152s ``` After this change: ```console $ time ruby test/run-test.rb -t HouseOfRepresentativeTest --verbose=important-only Finished in 0.095506 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.659s user 0m0.465s sys 0m0.103s ```
GitHub: red-data-toolsGH-188 Because csv file is too big (32,561 rows). Before this change: ```console $ time ruby test/run-test.rb -t AdultTest::train --verbose=important-only Finished in 2.742848 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m3.366s user 0m3.064s sys 0m0.183s ``` After this change: ```console $ time ruby test/run-test.rb -t AdultTest::train --verbose=important-only Finished in 0.001817 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.587s user 0m0.395s sys 0m0.093s ```
GitHub: GH-188 Because csv file is too big (32,561 rows). Before this change: ```console $ time ruby test/run-test.rb -t AdultTest::train --verbose=important-only Finished in 2.742848 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m3.366s user 0m3.064s sys 0m0.183s ``` After this change: ```console $ time ruby test/run-test.rb -t AdultTest::train --verbose=important-only Finished in 0.001817 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.587s user 0m0.395s sys 0m0.093s ```
GitHub: red-data-toolsGH-188 Because csv file is too big (9,462 rows and 39 columns). Before this change: ```console $ time ruby test/run-test.rb -t HouseOfCouncillorTest:::bill --verbose=important-only Finished in 2.352206 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m2.953s user 0m2.701s sys 0m0.153s ``` After this change: ```console $ time ruby test/run-test.rb -t HouseOfCouncillorTest:::bill --verbose=important-only Finished in 0.002077 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.566s user 0m0.382s sys 0m0.092s ```
GitHub: GH-188 Because csv file is too big (9,462 rows and 39 columns). Before this change: ```console $ time ruby test/run-test.rb -t HouseOfCouncillorTest:::bill --verbose=important-only Finished in 2.352206 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m2.953s user 0m2.701s sys 0m0.153s ``` After this change: ```console $ time ruby test/run-test.rb -t HouseOfCouncillorTest:::bill --verbose=important-only Finished in 0.002077 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.566s user 0m0.382s sys 0m0.092s ```
GitHub: red-data-toolsGH-188 Because text file is too big (134,555 rows in total). Before this change: ```console $ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only Finished in 3.65658 seconds. 4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.550s user 0m3.723s sys 0m0.568s ``` After this change: ```console $ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only Finished in 0.060458 seconds. 4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.613s user 0m0.428s sys 0m0.096s ```
GitHub: GH-188 Because text file is too big (134,555 rows in total). Before this change: ```console $ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only Finished in 3.65658 seconds. 4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m4.550s user 0m3.723s sys 0m0.568s ``` After this change: ```console $ time ruby test/run-test.rb -t NagoyaUniversityConversationCorpusTest --verbose=important-only Finished in 0.060458 seconds. 4 tests, 4 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.613s user 0m0.428s sys 0m0.096s ``` --------- Co-authored-by: Sutou Kouhei <[email protected]>
GitHub: red-data-toolsGH-188 Because csv file is too big (20,640 rows). Before this change: ```console $ time ruby test/run-test.rb -t CaliforniaHousingTest --verbose=important-only Finished in 1.453959 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m3.029s user 0m1.745s sys 0m0.161s ``` After this change: ```console $ time ruby test/run-test.rb -t CaliforniaHousingTest --verbose=important-only Finished in 0.331599 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m1.126s user 0m0.738s sys 0m0.143s ```
GitHub: GH-188 Because csv file is too big (20,640 rows). Before this change: ```console $ time ruby test/run-test.rb -t CaliforniaHousingTest --verbose=important-only Finished in 1.453959 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m3.029s user 0m1.745s sys 0m0.161s ``` After this change: ```console $ time ruby test/run-test.rb -t CaliforniaHousingTest --verbose=important-only Finished in 0.331599 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m1.126s user 0m0.738s sys 0m0.143s ```
GitHub: red-data-toolsGH-188 Because csv file is too big (67,753 rows). Before this change: ```console $ time ruby test/run-test.rb -t SudachiSynonymDictionaryTest --verbose=important-only Finished in 1.296801 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m1.964s user 0m1.740s sys 0m0.118s ``` After this change: ```console $ time ruby test/run-test.rb -t SudachiSynonymDictionaryTest --verbose=important-only Finished in 0.010658 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.634s user 0m0.455s sys 0m0.092s ```
GitHub: GH-188 Because csv file is too big (67,753 rows). Before this change: ```console $ time ruby test/run-test.rb -t SudachiSynonymDictionaryTest --verbose=important-only Finished in 1.296801 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m1.964s user 0m1.740s sys 0m0.118s ``` After this change: ```console $ time ruby test/run-test.rb -t SudachiSynonymDictionaryTest --verbose=important-only Finished in 0.010658 seconds. 2 tests, 2 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.634s user 0m0.455s sys 0m0.092s ```
GitHub: red-data-toolsGH-188 Because csv file is too big (16,281 rows). Before this change: ```console $ time ruby test/run-test.rb -t AdultTest::test --verbose=important-only Finished in 1.355024 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m1.980s user 0m1.777s sys 0m0.113s ``` After this change: ```console $ time ruby test/run-test.rb -t AdultTest::test --verbose=important-only Finished in 0.002213 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.619s user 0m0.442s sys 0m0.089s ```
GitHub: GH-188 Because csv file is too big (16,281 rows). Before this change: ```console $ time ruby test/run-test.rb -t AdultTest::test --verbose=important-only Finished in 1.355024 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m1.980s user 0m1.777s sys 0m0.113s ``` After this change: ```console $ time ruby test/run-test.rb -t AdultTest::test --verbose=important-only Finished in 0.002213 seconds. 1 tests, 1 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications real 0m0.619s user 0m0.442s sys 0m0.089s ```
I have given it a try to improve the execution time below:
We reduced the test execution time from about 73 seconds to about 24 seconds (3 times faster!). It was difficult to more reduce the execution time of the following top 5 slow tests, so this is as far as we can go with red-datasets. $ ruby -I ../../test-unit/test-unit/lib test/run-test.rb --report-slow-tests --progress-row-max=72
Loaded suite test
Started
|/Users/zzz/src/github.com/red-data-tools/red-datasets/lib/datasets/tar-gz-readable.rb:7: warning: attempt to close unfinished zstream; reset forced.
-Failed to read bzcat input: Errno::EPIPE: Broken pipe
Finished in 23.527626 seconds.
------------------------------------------------------------------------
Top 5 slow tests
test: #to_table(FashionMNISTTest::Normal::train): 2.519765
--location /Users/zzz/src/github.com/red-data-tools/red-datasets/test/test-fashion-mnist.rb:42
test: #to_table(MNISTTest::Normal::train): 2.305772
--location /Users/zzz/src/github.com/red-data-tools/red-datasets/test/test-mnist.rb:41
test: #to_table(KuzushijiMNISTTest::Normal::train): 2.266870
--location /Users/zzz/src/github.com/red-data-tools/red-datasets/test/test-kuzushiji-mnist.rb:42
test: #each(WikipediaTest::en::articles): 1.690996
--location /Users/zzz/src/github.com/red-data-tools/red-datasets/test/test-wikipedia.rb:9
test: #each(WikipediaKyotoJapaneseEnglishTest::lexicon): 1.494162
--location /Users/zzz/src/github.com/red-data-tools/red-datasets/test/test-wikipedia-kyoto-japanese-english.rb:137
------------------------------------------------------------------------
201 tests, 242 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
------------------------------------------------------------------------
8.54 tests/s, 10.29 assertions/s More improvements will come from implementing parallelization support in test-unit/test-unit#235. Thanks! |
Running all tests takes about 70 seconds, even with cached files in my environment. During implementation, I tested frequently and waiting for 70 seconds each time was not realistic.
As a workaround, I've been running tests for the implemented dataset only, which completes in about 2.5 seconds using the following command:
ruby -I lib test/run-test.rb -t "HouseOfRepresentativeTest" -v
However, when submitting a pull request and running all tests, it takes about 70 seconds.
The tests for
red-datasets
use test-unit. I couldn't find how to speed up the tests, such as parallelization.Is there any effective solution? Thanks!
My environment:
Running all tests with cached files in my environment on 723bdf2 below:
The text was updated successfully, but these errors were encountered: