Changeset 157887 in webkit
- Timestamp:
- Oct 23, 2013 2:15:50 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r157886 r157887 1 2013-10-23 Filip Pizlo <fpizlo@apple.com> 2 3 Have a way of dealing with slow tests in run-jsc-stress-tests 4 https://bugs.webkit.org/show_bug.cgi?id=123221 5 6 Reviewed by Mark Hahnenberg. 7 8 * js/regress/script-tests/stepanov_container.js: This test is slow! 9 1 10 2013-10-23 Alexey Proskuryakov <ap@apple.com> 2 11 -
trunk/LayoutTests/js/regress/script-tests/stepanov_container.js
r157637 r157887 1 //@ slow! 1 2 //@ runDefault 2 3 //@ runDefaultFTL if $enableFTL -
trunk/Tools/ChangeLog
r157882 r157887 1 2013-10-23 Filip Pizlo <fpizlo@apple.com> 2 3 Have a way of dealing with slow tests in run-jsc-stress-tests 4 https://bugs.webkit.org/show_bug.cgi?id=123221 5 6 Reviewed by Mark Hahnenberg. 7 8 If you add the slow! command to //@ then all subsequent plans are prepended to the run list 9 rather than appended to it. This means that slow tests get queued up first and are less likely 10 to block completion. 11 12 * Scripts/run-jsc-stress-tests: 13 1 14 2013-10-23 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Tools/Scripts/run-jsc-stress-tests
r157557 r157887 72 72 end 73 73 74 numProcessors = `sysctl -n hw.availcpu`.to_i75 if numProcessors == 076 numProcessors = `nproc --all 2>/dev/null`.to_i77 end 78 if numProcessors == 079 numProcessors = 174 $numProcessors = `sysctl -n hw.availcpu`.to_i 75 if $numProcessors == 0 76 $numProcessors = `nproc --all 2>/dev/null`.to_i 77 end 78 if $numProcessors == 0 79 $numProcessors = 1 80 80 end 81 81 … … 270 270 end 271 271 272 $runCommandOptions = {} 273 272 274 class Plan 273 275 attr_reader :directory, :arguments, :name, :outputHandler, :errorHandler … … 280 282 @outputHandler = outputHandler 281 283 @errorHandler = errorHandler 284 @isSlow = !!$runCommandOptions[:isSlow] 282 285 end 283 286 … … 347 350 348 351 def addRunCommand(kind, command, outputHandler, errorHandler) 349 $runlist << Plan.new($benchmarkDirectory, command, baseOutputName(kind), outputHandler, errorHandler) 352 plan = Plan.new($benchmarkDirectory, command, baseOutputName(kind), outputHandler, errorHandler) 353 if $numProcessors > 1 and $runCommandOptions[:isSlow] 354 $runlist.unshift plan 355 else 356 $runlist << plan 357 end 350 358 end 351 359 … … 355 363 def parseRunCommands 356 364 didRun = false 365 $runCommandOptions = {} 357 366 File.open($benchmarkDirectory + $benchmark) { 358 367 | inp | … … 372 381 } 373 382 didRun 383 end 384 385 def slow! 386 $runCommandOptions[:isSlow] = true 374 387 end 375 388 … … 660 673 # In the worst case, the processors just interfere with each other. 661 674 # Increase the timeout proportionally to the number of processors. 662 ENV["JSC_timeout"] = (ENV["JSC_timeout"].to_i.to_f * Math.sqrt( numProcessors)).to_i.to_s675 ENV["JSC_timeout"] = (ENV["JSC_timeout"].to_i.to_f * Math.sqrt($numProcessors)).to_i.to_s 663 676 end 664 677 … … 741 754 Dir.chdir(parallelDir) { 742 755 unless $progressMeter 743 mysys("make", "-j", numProcessors.to_s, "-s", "-f", "Makefile")756 mysys("make", "-j", $numProcessors.to_s, "-s", "-f", "Makefile") 744 757 else 745 cmd = "make -j #{ numProcessors} -s -f Makefile"758 cmd = "make -j #{$numProcessors} -s -f Makefile" 746 759 running = {} 747 760 didRun = {}
Note: See TracChangeset
for help on using the changeset viewer.