Coder Social home page Coder Social logo

Comments (3)

klahnakoski avatar klahnakoski commented on May 20, 2024
  • Must these config files be javascript, or can they be JSON?
  • Are the labels related to the members of the compare?
  • May the data structure be flatter? ie instead of {key: value} we use [{"id":key, "config":value}]?
  • May we flatten the structure even more, assigning a platform property to each benchmark?

I have not even looked a the code yet, so these may be naive questions.

Like this

{
    "label":"Linux64bit",
    "platform":"linux64",
    "benchmarks":[{
        "id":"six-speed",
        "label":"SixSpeed(JSshell)",
        "compare":[
            {
                "id":"six-speed-sm",
                "label":"SpiderMonkey",
                "config":{
                    "color":"#e55525",
                    "label":"SpiderMonkey",
                    "frameworkId":"JSBENCH_FRAMEWORK_ID",
                    "suite":"six-speed-sm",
                    "buildType":"opt"
                }
            },
            {
                "id":"six-speed-v8",
                "label":"Chromev8",
                "config":{
                    "color":"#ffcd02",
                    "label":"Chromev8",
                    "frameworkId":"JSBENCH_FRAMEWORK_ID",
                    "suite":"six-speed-v8",
                    "buildType":"opt"
                }
            }
        ]
    }]
}

or even flatter, at the expense of a bit more redundancy:

[
    {
        "id":"six-speed-sm",
        "label":"SpiderMonkey",
        "benchmark":"six-speed",
        "platform":"linux64",
        "color":"#e55525",
        "frameworkId":"JSBENCH_FRAMEWORK_ID",
        "suite":"six-speed-sm",
        "buildType":"opt"
    },
    {
        "id":"six-speed-v8",
        "label":"Chromev8",
        "benchmark":"six-speed",
        "platform":"linux64",
        "color":"#ffcd02",
        "frameworkId":"JSBENCH_FRAMEWORK_ID",
        "suite":"six-speed-v8",
        "buildType":"opt"
    }
]

from firefox-performance-dashboards.

armenzg avatar armenzg commented on May 20, 2024

Must these config files be javascript, or can they be JSON?

They don't have to be Javascript.

Are the labels related to the members of the compare?

They're... I will be honest; we could get rid of the top labels. It is only for the purpose of this widget:
image
It is meant to match the colours and labels of the graphs.

May the data structure be flatter? ie instead of {key: value} we use [{"id":key, "config":value}]?

If it doesn't become harder to manipulate programatically or to understand I have no objections.

May we flatten the structure even more, assigning a platform property to each benchmark?

On the most flat version we don't have "label" (text in the dropdown picker) and "platform" (probably also related to the dropdown picker). As long as it is handled somehow I'm fine with that.

from firefox-performance-dashboards.

armenzg avatar armenzg commented on May 20, 2024

I'm seeing a couple more of issues being filed that would depend on this to be fixed fist. In other words, this has become a bit more important since the Android work they could see it plotted on the fx-health dashboard.

Let me know if you think you could tackle this in the next couple of weeks.

from firefox-performance-dashboards.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.