Skip to content

Conversation

@JavierCladellas
Copy link
Collaborator

  • Closes Support complex scalability JSON files #152

  • Support specifying single path: "variables_path":"my.path.to.variable" that will yield {"variable":x}

  • Support lists: "variables_path":["execute","postprocess.*","simulation.*"]

  • If the resulting json is nested, it will be flattened. e.g. if the field my.variable contains {"x":1,"y":2}, the performance variables will be named variable.x and variable.y

Concrete example:
To extract the performance variables of the following JSON

{
    "execute": 7.276617949,
    "postprocess": {
        "outputs": 0.24561935600000004,
        "postprocess": 3.5976664250000003,
        "report": 0.0,
        "vizualisation": 3.1949894540000003
    },
    "simulation": {
        "heatTransfer": 1.1842422940000004,
        "simulation": 3.677921673,
        "solarMasks": 2.4920894700000003
    }
}

We can have

"stages": [
    {
        "name":"",
        "file": "instances/np_32/logs/timers.json",
        "format": "json",
        "variables_path":["execute", "postpocess.*","simulation.*"]
    }
]

Which will give

"execute": 7.276617949,
"outputs": 0.24561935600000004,
"postprocess": 3.5976664250000003,
"report": 0.0,
"vizualisation": 3.1949894540000003,
"heatTransfer": 1.1842422940000004,
"simulation": 3.677921673,
"solarMasks": 2.4920894700000003

Or if we provide just:

"stages": [
    {
        "name":"",
        "file": "instances/np_32/logs/timers.json",
        "format": "json",
        "variables_path":["*"]
   }
]

We would have

"execute": 7.276617949,
"postprocess.outputs": 0.24561935600000004,
"postprocess.postprocess": 3.5976664250000003,
"postprocess.report": 0.0,
"postprocess.vizualisation": 3.1949894540000003,
"simulation.heatTransfer": 1.1842422940000004,
"simulation.simulation": 3.677921673,
"simulation.solarMasks": 2.4920894700000003

@JavierCladellas JavierCladellas added enhancement A new feature or request benchmarking Issues related to benchmarking labels Nov 21, 2024
@JavierCladellas JavierCladellas self-assigned this Nov 21, 2024
@JavierCladellas JavierCladellas linked an issue Nov 21, 2024 that may be closed by this pull request
@netlify
Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for benchmarking-polite-crostata-92f389 ready!

Name Link
🔨 Latest commit cfbacf6
🔍 Latest deploy log https://app.netlify.com/sites/benchmarking-polite-crostata-92f389/deploys/6745d661f6b4670009d99d93
😎 Deploy Preview https://deploy-preview-153--benchmarking-polite-crostata-92f389.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@vincentchabannes vincentchabannes merged commit 32ced08 into master Nov 27, 2024
16 checks passed
@vincentchabannes vincentchabannes deleted the 152-support-complex-scalability-json-files branch November 27, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarking Issues related to benchmarking enhancement A new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support complex scalability JSON files

4 participants