Skip to content

Commit d2c5ac9

Browse files
committed
Some minor changes
1 parent b06eaf2 commit d2c5ac9

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

benchmark.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
#!/bin/sh
22

3+
if [ ! `which wrk` ]; then
4+
echo "wrk not found."
5+
exit 1;
6+
fi
7+
8+
if [ ! `which curl` ]; then
9+
echo "curl not found."
10+
exit 1;
11+
fi
12+
313
base="http://127.0.0.1/php-frameworks-bench"
414

515
if [ $# -eq 0 ]; then
6-
# include framework list
16+
# include frameworks list
717
. ./list.sh
818
export targets="$list"
919
else

check.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ do
2020

2121
url_output=$(curl -s "$url")
2222

23+
# expected to get the Hello World! + libs/output_data.php
2324
if ! [[ "$url_output" =~ ^('Hello World!')(.*)(([0-9]*):(([0-9]+([.][0-9]*)?|[.][0-9]+)):([0-9]*))$ ]]; then
2425
echo -e "error: \n$url"
2526
echo "$url_output"

clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
if [ $# -eq 0 ]; then
4-
# include framework list
4+
# include frameworks list
55
. ./list.sh
66
targets="$list"
77
else

clear-cache.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/bin/sh
22

3+
if [ ! `which composer` ]; then
4+
echo "composer not found."
5+
exit 1;
6+
fi
7+
38
if [ $# -eq 0 ]; then
4-
# include framework list
9+
# include frameworks list
510
. ./list.sh
611
targets="$list"
712
else

setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#!/bin/sh
22

33
if [ ! `which composer` ]; then
4-
echo "composer command not found."
4+
echo "composer not found."
55
exit 1;
66
fi
77

88
if [ ! `which wrk` ]; then
9-
echo "wrk command not found."
9+
echo "wrk not found."
1010
exit 1;
1111
fi
1212

1313
if [ ! `which curl` ]; then
14-
echo "curl command not found."
14+
echo "curl not found."
1515
exit 1;
1616
fi
1717

1818
if [ $# -eq 0 ]; then
19-
# include framework list
19+
# include frameworks list
2020
. ./list.sh
2121
targets="$list"
2222
else

update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/sh
22
if [ ! `which composer` ]; then
3-
echo "composer command not found."
3+
echo "composer not found."
44
exit 1;
55
fi
66

77
if [ $# -eq 0 ]; then
8-
# include framework list
8+
# include frameworks list
99
. ./list.sh
1010
targets="$list"
1111
else

0 commit comments

Comments
 (0)