Skip to content
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

Speed up iproxy and ffmpeg startup #932

Merged
merged 3 commits into from
Apr 16, 2019

Conversation

mykola-mokhnach
Copy link
Contributor

This PR adds more advanced checks for ffmpeg and iproxy startup verification

this.mainProcess.on('output', (stdout, stderr) => {
if (stderr && !stderr.includes('frame=')) {
ffmpegLogger.info(`${stderr}`);
if (stderr) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use this in a start detector on start? https://github.com/appium/node-teen_process#start-detectors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because if startDetector fails then the whole process is considered invalid. Although, I assume the process might be still running, but it just didn't have enough time for the initialisation.

@mykola-mokhnach
Copy link
Contributor Author

Please don't merge this PR without the confirmation about perf improvement

@mykola-mokhnach
Copy link
Contributor Author

@KazuCocoa Does xcuitest driver perform better if you run video recording using this PR on your machine?

@KazuCocoa
Copy link
Member

KazuCocoa commented Apr 15, 2019

Yes. I measured three times as below against https://github.com/appium/ruby_lib_core/blob/73ab4718a616c49676eadc88cc3ecf9e39a81e67/test/functional/ios/ios/mjpeg_server_test.rb . The performane has been improved 👍
Each measurement was between starting record method and stoping it.

  • before
    • test_start_recording_screen
      10.551466
      11.165453
      9.336953
    • test_start_recording_screen_2
      23.022842
      23.069032
      20.892031
  • After
    • test_start_recording_screen
      5.46792
      5.544852
      5.670948
    • test_start_recording_screen_2
      16.517302
      18.09173
      17.740235

@mykola-mokhnach

@mykola-mokhnach mykola-mokhnach merged commit 7564df6 into appium:master Apr 16, 2019
@mykola-mokhnach mykola-mokhnach deleted the opt_rec_start branch April 17, 2019 05:41
khanayan123 pushed a commit to khanayan123/appium-xcuitest-driver that referenced this pull request May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants