-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provision the instance with all the tools
Install the required tooling and code to run the benchmarks.
- Loading branch information
Showing
6 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
qed | ||
|
||
# Autogenerated code | ||
tests/plot.hmtl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Copyright 2018 Banco Bilbao Vizcaya Argentaria, S.A. | ||
|
||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
|
||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# Get developement tools and build Wrk | ||
sudo yum groupinstall 'Development Tools' -y | ||
sudo yum install -y openssl-devel git -y | ||
git clone https://github.com/wg/wrk.git wrk | ||
cd wrk | ||
echo "Building Wrk. Check logs at /tmp/wrk_make.log" | ||
make >> /tmp/wrk_make.log | ||
# move the executable to somewhere in your PATH | ||
sudo cp wrk /usr/bin/wrk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env sh | ||
|
||
# Copyright 2018 Banco Bilbao Vizcaya Argentaria, S.A. | ||
|
||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
|
||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
echo Starting server... | ||
/tmp/qed/cloud/aws/qed start -k pepe -p $(mktemp -d /var/tmp/demo.XXX) -l info & | ||
echo done. | ||
|
||
sleep 10 | ||
|
||
echo Stress time! | ||
wrk -t100 -c100 -d60s --latency -s /tmp/qed/attack_add/attack_add.lua http://localhost:8080 | ||
echo done. | ||
|
||
echo Cleanup... | ||
/sbin/fuser -k -n tcp 8080 | ||
rm -rf /var/tmp/demo.* | ||
echo done. |
File renamed without changes.