Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub CI is unstable? #50

Closed
Moelf opened this issue Oct 17, 2022 · 4 comments
Closed

GitHub CI is unstable? #50

Moelf opened this issue Oct 17, 2022 · 4 comments

Comments

@Moelf
Copy link
Contributor

Moelf commented Oct 17, 2022

image

This doesn't make any sense (JIT languages (pypy and LuaJIT) can't take negative amount of time to start-up), I think we probably need to either

  • do a warm-up run for each language (hyperfine has this option)
  • increase iterations for fast languages to reduce fluctuation
  • take the minimal instead of mean as it is usually done to benchmark CPU-bounded task
@niklas-heer
Copy link
Owner

I'm not sure what is going on here. But these are the results. I would assume for now that the VM has isolation, and we can disregard outside influences. Otherwise, that could be the cause.

do a warm-up run for each language (hyperfine has this option)

I doubt that would help. hyperfine mentions that this only warms up a cache, which is useful if you're handling a lot of IO. But these operations are not IO heavy, they are CPU heavy. Thus, it wouldn't help. I think you are thinking of Lambda functions and their startup and warm up time. That behavior wouldn't be possible because every command has to boot up the environment from scratch every command invocation.

increase iterations for fast languages to reduce fluctuation

This might be an option, but how would you define "fast" and increase by how much? It would also increase the CI time.

take the minimal instead of mean as it is usually done to benchmark CPU-bounded task

That one seems to me as the best option. But I'm not sure about the min. Maybe using the median instead?

@niklas-heer
Copy link
Owner

See also the discussion in #17.

@Moelf
Copy link
Contributor Author

Moelf commented Oct 18, 2022

This might be an option, but how would you define "fast" and increase by how much? It would also increase the CI time.

there are only so many languages we just manually pick them.

it's very obvious from the graph there's a set of tier-1 languages much faster than the rest (all statically compiled, except LuaJIT maybe)

@Moelf Moelf closed this as completed Oct 18, 2022
@niklas-heer
Copy link
Owner

@Moelf did you close this in favour of #60 and #59?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants