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
import email.utils # for rfc2822 formatted current timestamp | |
import requests | |
class CometClient(object): | |
def __init__(self, last_modified=None): | |
if last_modified is None: | |
self.last_modified = email.utils.formatdate() | |
else: | |
self.last_modified = last_modified |
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
import argparse | |
import subprocess | |
import sys | |
import re | |
from collections import defaultdict | |
from lxml import etree | |
report = ["Min", "Avg", "Median", "95%", "99%"] |