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
# HDS Load Testing Tool using Locust Load Testing Framework and HDS_Fragmenter library | |
# Simulates user access by fetching the bootstrap file to parse out fragment names. | |
# Bootstrap files are fetched 1/10 times. | |
# | |
# Usage: | |
# 1. Fetch dependencies given below | |
# 2. Edit "url_f4m_path" below to the stream-level manifest path/URI | |
# 3. Run: `locust -f hdslt.py -H http://my_origin_server` | |
# pip install locustio |
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
jQuery(function($) { | |
$('form[data-async]').live('submit', function(event) { | |
var $form = $(this); | |
var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |