Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
comp90024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mu Lu
comp90024
Commits
7b342f2c
Commit
7b342f2c
authored
6 years ago
by
Luca Morandini
Browse files
Options
Downloads
Patches
Plain Diff
- Used XML to store pages
parent
07082688
Branches
Branches containing commit
Tags
v2019
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openfaas/README.md
+3
-3
3 additions, 3 deletions
openfaas/README.md
with
3 additions
and
3 deletions
openfaas/README.md
+
3
−
3
View file @
7b342f2c
...
...
@@ -120,8 +120,8 @@ In another shell, download Wikipedia pages for the test
```
bash
pages
=
"italy china france germany australia brazil denmark mexico zambia thailand"
for
page
in
${
pages
}
;
do
curl
"https://en.wikipedia.org/w/api.php?format=
text
&action=parse&prop=wikitext&page=
${
page
}
"
\
-o
/tmp/
${
page
}
.
ht
ml
do
curl
"https://en.wikipedia.org/w/api.php?format=
xml
&action=parse&prop=wikitext&page=
${
page
}
"
\
-o
/tmp/
${
page
}
.
x
ml
done
```
...
...
@@ -131,7 +131,7 @@ Call the word-count functions on the downloaded pages repeateadly
for
i
in
{
1..100
}
;
do
for
page
in
${
pages
}
;
do
text
=
`
cat
/tmp/
${
page
}
.
ht
ml
`
;
curl
-XPOST
"http://0.0.0.0:8080/function/wcmp"
--data
"
${
text
}
"
-o
/dev/null
-s
-w
"%{http_code}
`
date
`
\n
"
do
text
=
`
cat
/tmp/
${
page
}
.
x
ml
`
;
curl
-XPOST
"http://0.0.0.0:8080/function/wcmp"
--data
'
${text}
'
-o
/dev/null
-s
-w
"%{http_code}
`
date
`
\n
"
done
done
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment