benchmarks: 1488e1f55f61 (original) (raw)

Mercurial > benchmarks

changeset 201:1488e1f55f61

Issue #17785: Use a faster URL shortener for perf.py

Alexandre Vassalotti alexandre@peadrop.com
date Sat, 20 Apr 2013 12:59:46 -0700
parents 134941cc41c0
children 5d4ecadca0d5
files perf.py
diffstat 1 files changed, 16 insertions(+), 12 deletions(-)[+] [-] perf.py 28

line wrap: on

line diff

--- a/perf.py +++ b/perf.py @@ -54,6 +54,7 @@ from future import division, with_st import csv import contextlib +import json import logging import math import optparse @@ -68,10 +69,9 @@ import tempfile import time import threading try:

-except ImportError:

+except:

try: import multiprocessing except ImportError: @@ -784,21 +784,25 @@ def GetChart(base_data, changed_data, op def ShortenUrl(url):

Args: url: url to shorten. Returns:

def SummarizeData(data, points=100, summary_func=max):