Skip to content

Instantly share code, notes, and snippets.

@Hawzen
Hawzen / 10_stats.csv
Last active October 28, 2022 00:18
stress experiment oct 28
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 22 columns, instead of 1. in line 5.
Type,Name,Request Count,Failure Count,Median Response Time,Average Response Time,Min Response Time,Max Response Time,Average Content Size,Requests/s,Failures/s,50%,66%,75%,80%,90%,95%,98%,99%,99.9%,99.99%,100%
POST,/api/v2/login/access-token,15,0,380.0,6330.242621898651,373.5775612294674,83613.02677541971,251.0,0.024696654599214173,0.0,380,400,410,1200,5600,84000,84000,84000,84000,84000,84000
POST,/api/v2/login/test-token,18,0,170.0,16407.802698926793,21.593522280454636,92122.55312874913,412.0,0.02963598551905701,0.0,3000,7300,13000,31000,88000,92000,92000,92000,92000,92000,92000
GET,/api/v2/screen/individual,19,0,9200.0,11972.235598846486,5190.305922180414,58367.984700948,49311.94736842105,0.03128242915900462,0.0,9200,12000,12000,13000,22000,58000,58000,58000,58000,58000,58000
POST,/api/v2/screen/individual,4,1,63000.0,151178.96536923945,5258.3865113556385,286038.8090983033,4178.25,0.006585774559790447,0.0016464436399476117,250000,250000,286000,286000,286000,286000,286000,286000,286000,286000,286000
GET
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Hawzen
Hawzen / Data_sorting.py
Created August 17, 2019 18:09
A rough plotting of Shark Tank investors decisions regarding pitches
with open('season.txt', 'r', encoding="utf8") as f:
data = f.read()
investments = {}
for pitch in data.split('$'): # Split all pitches into chunks
lines = list(pitch.splitlines()) # Split a pitch by lines
if lines[0]=='': # If the first line is a blank then remove it
lines.pop(0)