From 93e3aac6315c17a74e63f02053a3e8e2e6b21928 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 27 Aug 2019 16:54:17 +0200 Subject: improve benchmark code quality using pylint The description Benchmark member is replaced with class docstrings --- src/benchmarks/dj_trace.py | 139 +++++++++++++++++++++++---------------------- 1 file changed, 70 insertions(+), 69 deletions(-) (limited to 'src/benchmarks/dj_trace.py') diff --git a/src/benchmarks/dj_trace.py b/src/benchmarks/dj_trace.py index b262255..b837a9e 100644 --- a/src/benchmarks/dj_trace.py +++ b/src/benchmarks/dj_trace.py @@ -1,57 +1,57 @@ -import matplotlib.pyplot as plt -import numpy as np +"""Benchmark definition using the traces collected by DJ Delorie""" + import os -from urllib.request import urlretrieve import sys import re +from urllib.request import urlretrieve +import matplotlib.pyplot as plt +import numpy as np from src.benchmark import Benchmark from src.util import print_status -comma_sep_number_re = "(?:\\d*(?:,\\d*)?)*" -rss_re = "(?P" + comma_sep_number_re + ")" -time_re = "(?P