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
from locust import HttpLocust, TaskSet, task, between | |
from locust.contrib.fasthttp import FastHttpLocust | |
def index(l): | |
l.client.get("/") | |
def stats(l): | |
l.client.get("/latency-test") |
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
var path = (function() { | |
var pathName = window.location.pathname; | |
var newPathArray = pathName.split('/').filter(function(val){ | |
return !val == ''; | |
}); | |
function partExists(arrVal) { | |
return newPathArray.some(function(val){ | |
return val === arrVal; |