-
Notifications
You must be signed in to change notification settings - Fork 25k
[iOS] Automation scripts for perf testing #28622
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
Conversation
### Summary As discussed in #28405 , this is the third PR. The`bootstrap.sh` script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup ) All you need to do is run ```shell ./bootstrap -t ${TEAM_ID} -p ${PROFILE} ``` The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen. ### Test plan Don't break any CI jobs unless they're flaky.
### Summary As discussed in #28405 , this is the third PR. The`bootstrap.sh` script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup ) All you need to do is run ```shell ./bootstrap -t ${TEAM_ID} -p ${PROFILE} ``` The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen. ### Test plan Don't break any CI jobs unless they're flaky.
### Summary As discussed in #28405 , this is the third PR. The`bootstrap.sh` script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup ) All you need to do is run ```shell ./bootstrap -t ${TEAM_ID} -p ${PROFILE} ``` The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen. ### Test plan Don't break any CI jobs unless they're flaky.
@@ -61,16 +69,14 @@ + (void)benchmarkWithModel:(NSString*)modelPath { | |||
if (FLAGS_print_output) { | |||
std::cout << module.forward(inputs) << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to UI_LOG as well? or just remove this? how do we support gflags in iOS test app?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, all the gflag values are hardcoded. I'm thinking about using a JSON file to make it configurable.
### Summary As discussed in #28405 , this is the third PR. The`bootstrap.sh` script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup ) All you need to do is run ```shell ./bootstrap -t ${TEAM_ID} -p ${PROFILE} ``` The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen. ### Test plan Don't break any CI jobs unless they're flaky.
### Summary As discussed in #28405 , this is the third PR. The`bootstrap.sh` script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup ) All you need to do is run ```shell ./bootstrap -t ${TEAM_ID} -p ${PROFILE} ``` The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen. ### Test plan Don't break any CI jobs unless they're flaky.
@ljk53 Refactored the code a lil bit, now we can set the gflag parameters via a |
### Summary As discussed in #28405 , this is the third PR. The`bootstrap.sh` script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup ) All you need to do is run ```shell ./bootstrap -t ${TEAM_ID} -p ${PROFILE} ``` The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen. ### Test plan Don't break any CI jobs unless they're flaky.
### Summary As discussed in #28405 , this is the third PR. The`bootstrap.sh` script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup ) All you need to do is run ```shell ./bootstrap -t ${TEAM_ID} -p ${PROFILE} ``` The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen. ### Test plan Don't break any CI jobs unless they're flaky.
Stack from ghstack:
Summary
As discussed in #28405 , this is the third PR. The
bootstrap.sh
script is mainly for those who want to do perf on iOS but don't want to touch XCode or any iOS code. But it does require you have valid iOS dev credentials installed on your machine. (You can easily acquire those stuff from any experienced iOS developers. Takes only 5 mins to setup )All you need to do is run
The testing app will be automatically installed on your device. The log of the benchmark function will be displayed on the screen.
Test plan
Don't break any CI jobs unless they're flaky.
Differential Revision: D18156178