Skip to content

Commit

Permalink
nit benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Feb 18, 2025
1 parent 3d78825 commit 3b6585a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 41 deletions.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion benchmarks/benchmark_oneoff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export async function main({
kind: "rawscript",
rawscript: {
language: api.RawScript.language.BASH,
content: "# let's bloat that bash script, 3.. 2.. 1.. BOOM\n".repeat(25000) + "echo \"$WM_FLOW_JOB_ID\"\n",
content: "# let's bloat that bash script, 3.. 2.. 1.. BOOM\n".repeat(100) + "echo \"$WM_FLOW_JOB_ID\"\n",
},
});
} else {
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function waitForDeployment(workspace: string, hash: string) {
if (resp.lock !== null) {
return;
}
} catch (err) {}
} catch (err) { }
await sleep(0.5);
}
throw new Error("Script did not deploy in time");
Expand Down Expand Up @@ -246,7 +246,7 @@ export const getFlowPayload = (flowPattern: string): api.FlowPreview => {
input_transforms: {},
language: api.RawScript.language.BASH,
type: "rawscript",
content: "# let's bloat that bash script, 3.. 2.. 1.. BOOM\n".repeat(25000) + "echo \"$WM_FLOW_JOB_ID\"\n",
content: "# let's bloat that bash script, 3.. 2.. 1.. BOOM\n".repeat(100) + `if [[ -z $\{WM_FLOW_JOB_ID+x\} ]]; then\necho "not set"\nelif [[ -z "$WM_FLOW_JOB_ID" ]]; then\necho "empty"\nelse\necho "$WM_FLOW_JOB_ID"\nfi`,
},
}
],
Expand Down

0 comments on commit 3b6585a

Please sign in to comment.