Commit da9f1dd5 authored by Jan Kiene's avatar Jan Kiene
Browse files

add reference lines in WMOPS graph

no actual numbers, just placeholder for now
parent 8019fa29
Loading
Loading
Loading
Loading
+19 −6
Original line number Diff line number Diff line
@@ -3,6 +3,13 @@ import argparse

MAX_VALUES = 40

REF_WMOPS_EVS = 88
REF_WMOPS_3EVS = 3 * REF_WMOPS_EVS
REF_WMOPS_6EVS = 6 * REF_WMOPS_EVS
REF_WMOPS_10EVS = 10 * REF_WMOPS_EVS

REF_COLORS = ["#000000", "#666666", "#AAAAAA"]

RUNS_KEYS_COMMON = ["fullDate", "shortDate", "revision", "logFile"]
RUNS_KEYS_WMOPS = RUNS_KEYS_COMMON + [
    "worstCaseEnc",
@@ -51,7 +58,9 @@ RUNS_LINE_IDX = {

DISPLAY_IDS = {
    "wmops": [
        "requirement",
        "3xEVS",
        "6xEVS",
        "10xEVS",
        "worst case codec",
        "worst case enc/dec",
        "worst case enc",
@@ -103,7 +112,9 @@ DISPLAY_ELEM_TEMPLATE = '{{ lines: {{ show: true }}, points: {{ show: true, fill

LINE_COLORS = {
    "wmops": [
        "#000000",
        REF_COLORS[0],
        REF_COLORS[1],
        REF_COLORS[2],
        "#0080FF",
        "#FF8000",
        "#CF4B4B",
@@ -114,7 +125,7 @@ LINE_COLORS = {
        "#00F040",
    ],
    "rom": [
        "#000000",
        REF_COLORS[0],
        "#FF0000",
        "#FF8000",
        "#FFFF00",
@@ -126,7 +137,7 @@ LINE_COLORS = {
        "#00FF00",
    ],
    "ram": [
        "#000000",
        REF_COLORS[0],
        "#FF0000",
        "#FF8000",
        "#FFFF00",
@@ -167,7 +178,9 @@ FILE_DATA = {
        "description": "Worst Case WMOPS",
        "filename": "graphs_wmops_flc.js",
        "references": {
            "requirement": 0,
            "3xEVS": REF_WMOPS_3EVS,
            "6xEVS": REF_WMOPS_6EVS,
            "10xEVS": REF_WMOPS_10EVS,
        },
    },
    "rom": {
@@ -306,7 +319,7 @@ def create_display_strings(log_lines, references, split_char, which):


if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser = argparse.ArgumentParser(description="Generate Javascript code for the complexity webpage")
    parser.add_argument("wmops_log")
    parser.add_argument("wmops_per_op_log")
    parser.add_argument("rom_log")
+3 −0
Original line number Diff line number Diff line
@@ -123,6 +123,9 @@
      <li style="border-color: #CF8080;"><em>Worst case encoder performance (rateswitching)</em> </li>
      <li style="border-color: #008040;"><em>Worst case decoder performance</em> </li>
      <li style="border-color: #00F040;"><em>Worst case decoder performance (rateswitching)</em> </li>
      <li style="border-color: #000000;"><em>3xEVS Reference</em> </li>
      <li style="border-color: #666666;"><em>6xEVS Reference</em> </li>
      <li style="border-color: #AAAAAA;"><em>10xEVS Reference</em> </li>
    </ul>
  </div>