Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add hierarchy to Benchmark model

    - Sometimes benchmarks have a big number of single results. It is
      favourable to keep them all. Thus, they might be organised in an
      hierarchical way.
      Example: To evaluate computer systems there might be one
      overall benchmark number. That number is calculated from sub
      benchmarks as CPU, hard disc I/O, RAM I/O, etc.
    - The single or the summarised result may be shown in the standard
      templates in a later version. For now all benchmarks are shown.

Change-Id: I47062535bc0ec6e1d25ae857b4af74f207737c37
  • Loading branch information...
commit d3a6043ec430af5ef4ba8ee1bba4a972b27d4fa6 1 parent 5b73c97
Frank Becker a8 authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  codespeed/models.py
2  codespeed/models.py
View
@@ -132,6 +132,8 @@ class Benchmark(models.Model):
)
name = models.CharField(unique=True, max_length=30)
+ parent = models.ForeignKey('self', verbose_name="parent",
+ help_text="allows to group benchmarks in hierarchies", null=True, default=None)
benchmark_type = models.CharField(max_length=1, choices=B_TYPES, default='C')
description = models.CharField(max_length=300, blank=True)
units_title = models.CharField(max_length=30, default='Time')
Please sign in to comment.
Something went wrong with that request. Please try again.