Index: tools/perf/benchmarks/octane.py |
diff --git a/tools/perf/benchmarks/octane.py b/tools/perf/benchmarks/octane.py |
index 6af1bb85afd9555e57798dceb07e70b0776a5320..16b0bf30bdb5a1c4e8db9c59cadbcf3e0d040938 100644 |
--- a/tools/perf/benchmarks/octane.py |
+++ b/tools/perf/benchmarks/octane.py |
@@ -20,9 +20,49 @@ from telemetry.page import page_set |
from telemetry.util import statistics |
from telemetry.value import scalar |
- |
_GB = 1024 * 1024 * 1024 |
+DESCRIPTIONS = { |
+ 'CodeLoad': |
+ 'Measures how quickly a JavaScript engine can start executing code ' |
+ 'after loading a large JavaScript program, social widget being a common ' |
+ 'example. The source for test is derived from open source libraries ' |
+ '(Closure, jQuery) (1,530 lines).', |
+ 'Crypto': |
+ 'Encryption and decryption benchmark based on code by Tom Wu ' |
+ '(1698 lines).', |
+ 'DeltaBlue': |
+ 'One-way constraint solver, originally written in Smalltalk by John ' |
+ 'Maloney and Mario Wolczko (880 lines).', |
+ 'EarleyBoyer': |
+ 'Classic Scheme benchmarks, translated to JavaScript by Florian ' |
+ 'Loitsch\'s Scheme2Js compiler (4684 lines).', |
+ 'Gameboy': |
+ 'Emulate the portable console\'s architecture and runs a demanding 3D ' |
+ 'simulation, all in JavaScript (11,097 lines).', |
+ 'Mandreel': |
+ 'Runs the 3D Bullet Physics Engine ported from C++ to JavaScript via ' |
+ 'Mandreel (277,377 lines).', |
+ 'NavierStokes': |
+ '2D NavierStokes equations solver, heavily manipulates double precision ' |
+ 'arrays. Based on Oliver Hunt\'s code (387 lines).', |
+ 'PdfJS': |
+ 'Mozilla\'s PDF Reader implemented in JavaScript. It measures decoding ' |
+ 'and interpretation time (33,056 lines).', |
+ 'RayTrace': |
+ 'Ray tracer benchmark based on code by Adam Burmister (904 lines).', |
+ 'RegExp': |
+ 'Regular expression benchmark generated by extracting regular ' |
+ 'expression operations from 50 of the most popular web pages ' |
+ '(1761 lines).', |
+ 'Richards': |
+ 'OS kernel simulation benchmark, originally written in BCPL by Martin ' |
+ 'Richards (539 lines).', |
+ 'Splay': |
+ 'Data manipulation benchmark that deals with splay trees and exercises ' |
+ 'the automatic memory management subsystem (394 lines).', |
+} |
+ |
class _OctaneMeasurement(page_measurement.PageMeasurement): |
def __init__(self): |
@@ -72,13 +112,17 @@ class _OctaneMeasurement(page_measurement.PageMeasurement): |
name = score_and_name[0] |
score = int(score_and_name[1]) |
results.AddValue(scalar.ScalarValue( |
- results.current_page, name, 'score', score, important=False)) |
+ results.current_page, name, 'score', score, important=False, |
+ description=DESCRIPTIONS.get(name))) |
# Collect all test scores to compute geometric mean. |
all_scores.append(score) |
total = statistics.GeometricMean(all_scores) |
results.AddSummaryValue( |
- scalar.ScalarValue(None, 'Total.Score', 'score', total)) |
+ scalar.ScalarValue(None, 'Total.Score', 'score', total, |
+ description='Geometric mean of the scores of each ' |
+ 'individual benchmark in the Octane ' |
+ 'benchmark collection.')) |
class Octane(benchmark.Benchmark): |