Skip to content

Commit d3a6043

Browse files
committed
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
1 parent 5b73c97 commit d3a6043

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

codespeed/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ class Benchmark(models.Model):
132132
)
133133

134134
name = models.CharField(unique=True, max_length=30)
135+
parent = models.ForeignKey('self', verbose_name="parent",
136+
help_text="allows to group benchmarks in hierarchies", null=True, default=None)
135137
benchmark_type = models.CharField(max_length=1, choices=B_TYPES, default='C')
136138
description = models.CharField(max_length=300, blank=True)
137139
units_title = models.CharField(max_length=30, default='Time')

0 commit comments

Comments
 (0)