Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit 62945ee

Browse files
committed
Add benchmark scripts.
1 parent f0a9970 commit 62945ee

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

‎benchmarks/benchmark-appium.sh‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
START=$(date +%s)
4+
5+
xcodebuild -project "../Contacts.xcodeproj" \
6+
-scheme "Contacts" \
7+
-sdk iphonesimulator \
8+
-derivedDataPath "../build" \
9+
build
10+
11+
cd "../appium" && bundle exec cucumber
12+
13+
echo "Time elapsed: $DIFF"

‎benchmarks/benchmark-calabash.sh‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
START=$(date +%s)
4+
5+
xcodebuild -project "../Contacts.xcodeproj" \
6+
-scheme "Contacts-cal" \
7+
-sdk iphonesimulator \
8+
-derivedDataPath "../build" \
9+
build
10+
11+
cd "../calabash" && APP="../Build/Products/Debug-iphonesimulator/Contacts-cal.app" bundle exec cucumber
12+
13+
echo "Time elapsed: $DIFF"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
START=$(date +%s)
4+
5+
xcodebuild -project "../Contacts.xcodeproj" \
6+
-scheme "Contacts" \
7+
-sdk iphonesimulator \
8+
-derivedDataPath "../build" \
9+
build
10+
11+
cd "../ui-automation" && ./run-tests.sh "../build/Products/Debug-iphonesimulator/Contacts-test.app" "iPhone 6 (9.1)"
12+
13+
echo "Time elapsed: $DIFF"

‎benchmarks/benchmark-xctests.sh‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
START=$(date +%s)
4+
5+
xcodebuild -project "../Contacts.xcodeproj" \
6+
-scheme "Contacts" \
7+
-sdk iphonesimulator \
8+
-derivedDataPath "../build" \
9+
-destination 'platform=iOS Simulator,name=iPhone 6,OS=9.1' \
10+
test
11+
12+
END=$(date +%s)
13+
DIFF=$(echo "$END - $START" | bc)
14+
15+
echo "Time elapsed: $DIFF"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /