Uh oh!
There was an error while loading. Please reload this page.
test: remove excessively poor performance - #2410
Conversation
String concatenation in the assert messages has drastic impact on test runtime. Removal of these messages is unlikely to affect debugging if any breaking changes are made. Previous time to run: $ time ./iojs test/parallel/test-stringbytes-external.js real 0m2.321s user 0m2.256s sys 0m0.092s With fix: $ time ./iojs test/parallel/test-stringbytes-external.js real 0m0.518s user 0m0.508s sys 0m0.008s
bnoordhuis
commented
Aug 17, 2015
LGTM |
trevnorris
commented
Aug 17, 2015
rvagg
commented
Aug 17, 2015
lgtm, nice find, can you speed up MOAR TESTS? |
Qard
commented
Aug 18, 2015
I feel like assert messages should probably just be code comments in most cases. If you see it, it's because bad stuff happened. If bad stuff happened, you are going to look at the code. If you look at the code, you are going to see the comments that explain why it was making that assertion. |
thefourtheye
commented
Aug 18, 2015
LGTM and what @Qard said makes sense. |
Trott
commented
Aug 18, 2015
Fishrock123
commented
Aug 28, 2015
cc @trevnorris, ci looks good. LGTM. |
trevnorris
commented
Aug 28, 2015
Thanks for the reminder. Had forgotten about this one. Landed in bfb5a58eab3. |
jbergstroem
commented
Aug 28, 2015
Holy crap. Keep em comin' @trevnorris :) |
String concatenation in the assert messages has drastic impact on test runtime. Removal of these messages is unlikely to affect debugging if any breaking changes are made. Previous time to run: $ time ./iojs test/parallel/test-stringbytes-external.js real 0m2.321s user 0m2.256s sys 0m0.092s With fix: $ time ./iojs test/parallel/test-stringbytes-external.js real 0m0.518s user 0m0.508s sys 0m0.008s PR-URL: #2410 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
String concatenation in the assert messages has drastic impact on test runtime. Removal of these messages is unlikely to affect debugging if any breaking changes are made. Previous time to run: $ time ./iojs test/parallel/test-stringbytes-external.js real 0m2.321s user 0m2.256s sys 0m0.092s With fix: $ time ./iojs test/parallel/test-stringbytes-external.js real 0m0.518s user 0m0.508s sys 0m0.008s PR-URL: #2544 Reviewed-By: trevnorris - Trevor Norris <trev.norris@gmail.com> Reviewed-By: thefourtheye - Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
trevnorris
commented
Sep 1, 2015
Correction. Actual commit is 37ee43e. The |
orangemocha
commented
Sep 2, 2015
Here's what happened: #2544 (comment) |
String concatenation in the assert messages has drastic impact on test
runtime. Removal of these messages is unlikely to affect debugging if
any breaking changes are made.
Previous time to run:
With fix:
R=@bnoordhuis