Skip to content

test(melange): add (emit_stdlib false) to supported melange tests#10288

Merged
anmonteiro merged 2 commits intoocaml:mainfrom
anmonteiro:anmonteiro/emit-stdlib-false-for-melange-test
Mar 20, 2024
Merged

test(melange): add (emit_stdlib false) to supported melange tests#10288
anmonteiro merged 2 commits intoocaml:mainfrom
anmonteiro:anmonteiro/emit-stdlib-false-for-melange-test

Conversation

@anmonteiro
Copy link
Copy Markdown
Collaborator

  • (emit_stdlib false) disables emitting all the JS targets for the melange stdlib
  • this should speed up the tests quite a bit (tens of seconds)

@anmonteiro anmonteiro added melange Melange rules and generator test-suite performance labels Mar 20, 2024
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
@anmonteiro anmonteiro force-pushed the anmonteiro/emit-stdlib-false-for-melange-test branch from fb751f2 to b089e1f Compare March 20, 2024 03:10
@anmonteiro
Copy link
Copy Markdown
Collaborator Author

This is around 15-20s faster on linux. hard to tell on macOS

@jchavarri
Copy link
Copy Markdown
Collaborator

Do you know if there's a way to set this at the env variable level? So we can set it once and any future tests added (where we/I might forget about adding emit_stdlib false) don't run into the same performance costs.

@anmonteiro
Copy link
Copy Markdown
Collaborator Author

I'm not sure. I also don't know whether we'd want this to be the default in tests, but probably yes? 🤔

@anmonteiro anmonteiro requested a review from jchavarri March 20, 2024 22:21
@anmonteiro anmonteiro enabled auto-merge (squash) March 20, 2024 23:30
@anmonteiro anmonteiro merged commit 2de1ee3 into ocaml:main Mar 20, 2024
@anmonteiro anmonteiro deleted the anmonteiro/emit-stdlib-false-for-melange-test branch March 20, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

melange Melange rules and generator performance test-suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants