This repository has been archived by the owner on Jan 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pause to wait for end of warmup. Useful as retranslateAll can run…
… long. Also switched options passed to HHVM to be compatible with HHVM 3.0
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,6 +152,11 @@ private static function RunWithOptionsAndEngine( | |
exec($options->scriptAfterWarmup); | ||
} | ||
|
||
while ($php_engine->needsRetranslatePause()) { | ||
self::PrintProgress('Pausing 5 seconds to allow retranslation threads to catch up.'); | ||
sleep(5); | ||
} | ||
|
||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mofarrell
Author
Contributor
|
||
self::PrintProgress('Starting Siege for benchmark'); | ||
$siege = new Siege($options, $target, RequestModes::BENCHMARK); | ||
$siege->start(); | ||
|
@mofarrell Wouldn't we want this check before the
waitAfterWarmup
andscriptAfterWarmup
checks? Otherwise the scripts hooked through--exec-after-warmup
may start before the warmup is actually complete.