pull/11367/head
ncteisen 8 years ago
parent 0ac47d28cd
commit 251b025b89
  1. 1
      tools/profiling/microbenchmarks/bm_diff/bm_build.py
  2. 1
      tools/profiling/microbenchmarks/bm_diff/bm_constants.py
  3. 7
      tools/profiling/microbenchmarks/bm_diff/bm_diff.py
  4. 1
      tools/profiling/microbenchmarks/bm_diff/bm_run.py

@ -27,7 +27,6 @@
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
""" Python utility to build opt and counters benchmarks """
import bm_constants

@ -27,7 +27,6 @@
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
""" Configurable constants for the bm_*.py family """
_AVAILABLE_BENCHMARK_TESTS = [

@ -48,7 +48,7 @@ verbose = False
def _median(ary):
assert(len(ary))
assert (len(ary))
ary = sorted(ary)
n = len(ary)
if n % 2 == 0:
@ -141,7 +141,7 @@ def _read_json(filename, badjson_files, nonexistant_files):
nonexistant_files[stripped] += 1
else:
nonexistant_files[stripped] = 1
return None
return None
except ValueError, e:
if stripped in badjson_files:
badjson_files[stripped] += 1
@ -199,7 +199,8 @@ def diff(bms, loops, track, old, new):
for name in sorted(benchmarks.keys()):
if benchmarks[name].skip(): continue
rows.append([name] + benchmarks[name].row(fields))
note = 'Corrupt JSON data (indicates timeout or crash) = %s' % str(badjson_files)
note = 'Corrupt JSON data (indicates timeout or crash) = %s' % str(
badjson_files)
note += '\n\nMissing files (new benchmark) = %s' % str(nonexistant_files)
if rows:
return tabulate.tabulate(rows, headers=headers, floatfmt='+.2f'), note

@ -27,7 +27,6 @@
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
""" Python utility to run opt and counters benchmarks and save json output """
import bm_constants

Loading…
Cancel
Save