]> Cypherpunks repositories - gostls13.git/commitdiff
dashboard: reintroduce Benchmark model
authorAndrew Gerrand <adg@golang.org>
Thu, 20 May 2010 00:53:41 +0000 (17:53 -0700)
committerAndrew Gerrand <adg@golang.org>
Thu, 20 May 2010 00:53:41 +0000 (17:53 -0700)
R=rsc
CC=golang-dev
https://golang.org/cl/1217046

misc/dashboard/godashboard/gobuild.py

index aac90b3267a72060bb4b87542dddbd36c8d97dbf..46aeef9f9e3fe079ff67e2528799b5815142f5db 100644 (file)
@@ -47,6 +47,10 @@ class Commit(db.Model):
     # successful.
     builds = db.StringListProperty()
 
+class Benchmark(db.Model):             
+    name = db.StringProperty()         
+    version = db.IntegerProperty()     
+
 class BenchmarkResults(db.Model):
     builder = db.StringProperty()
     benchmark = db.StringProperty()
@@ -435,8 +439,6 @@ class Benchmarks(webapp.RequestHandler):
 
         for (benchmark, (iterations, time)) in benchmarks.items():
             b = Benchmark.get_or_insert('v002.' + benchmark.encode('base64'), name = benchmark, version = 2)
-            r = BenchmarkResult(key_name = '%08x/%s' % (n.num, builder), parent = b, num = n.num, iterations = iterations, nsperop = time, builder = builder)
-            r.put()
             key = '%s;%s' % (builder, benchmark)
             r1 = BenchmarkResults.get_by_key_name(key)
             if r1 is not None and (len(r1.data) < 4 or r1.data[-4] != -1 or r1.data[-3] != n.num):