forked from alexfernandez/loadtest
-
Notifications
You must be signed in to change notification settings - Fork 1
Midsummer Milestone #3
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
Open
dania2512
wants to merge
38
commits into
gwcloudlab:master
Choose a base branch
from
dania2512:pois_time
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
ce27e73
working commit
8e5815d
implemented poisson arraival time given an rps interval
051bf6f
initial summary prints out
8d9bac5
added timestamps, changed file type to csv, filenames include rps + i…
500b439
Sarah's scripts
69a1c66
fixed summary orders + added errors
2a9cc70
script fixes
dc0578a
intitial automation can run multiple tests given a list of rps rates …
a7288b7
fixed bug of script not ending moved most of summary to request gener…
1e080ea
summary average bug fix
c1449c1
used forked process to start flask
08cf5d5
amanda's script + 99ile graphing script
bc06033
scripts as pictures
5279745
clean up for code review
fd889c1
policy 1: weighted urls working
403353a
Update linegraph.py
ascoville22 1b8ae8c
closed and open loop policies
97d670f
comments + midsummer milestone fixes
70e9d03
scripts read command line arguments
5bd7209
readme outline + req-gen no automation fix
591d491
full initial readme
678233d
fix
c00eda3
fix
9a1ebf2
fix
5d4e36a
readme fix
e5a95dc
readme
52dbd70
fix
fa3a150
readme formatting
b955d99
formatting
ec16d8e
sh file
c55e100
spacing
eeb885e
spacing
1b185d7
spacing fix
66a1667
formatting
d5f45b3
fix
18f6da6
fix
5aa7d50
fix
2be017f
Merge pull request #2 from dania2512/client_policies
dania2512 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,16 @@ | ||
| import os | ||
| import time | ||
| from flask import Flask | ||
| fibapp = Flask(__name__) | ||
| @fibapp.route('/') | ||
| def index(): | ||
| # temp() | ||
| return "Hello World!" | ||
|
|
||
| def temp(): | ||
| time.sleep(0.1) | ||
| print("waited") | ||
| return | ||
|
|
||
| if __name__ == '__main__': | ||
| fibapp.run() | ||
This file contains hidden or 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,23 @@ | ||
| import os, json | ||
| import subprocess | ||
| from tracemalloc import start | ||
| from Naked.toolshed.shell import execute_js | ||
|
|
||
|
|
||
|
|
||
| def generateLoad(req, duration): | ||
| command = "sample/request-generator.js --rps=" + str(req) + " --interval=" + str(duration) | ||
| execute_js(command) #run the script with the arguments | ||
|
|
||
| def main(): | ||
| TEST_LIST = [1, 5, 10, 50, 100, 500, 1000] | ||
| duration = 10 | ||
| # start_function() | ||
| for test in TEST_LIST: | ||
| generateLoad(test, duration) | ||
|
|
||
|
|
||
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| main() |
This file contains hidden or 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,4 @@ | ||
| sudo apt update | ||
| sudo apt-get install -y nodejs | ||
| cd ~/gwloadtest | ||
| npm install |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.