8000 容器执行性能优化 · Issue #30 · xjq7/runcode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

容器执行性能优化 #30

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

Open
yhh2908307500 opened this issue Aug 22, 2024 · 1 comment
Open

容器执行性能优化 #30

yhh2908307500 opened this issue Aug 22, 2024 · 1 comment

Comments

@yhh2908307500
Copy link

经过测试,发现每次执行都会销毁旧的容器,新建一个容器去运行新的代码,其实这样开销会比较大;
基于历史的容器,在每次执行新代码时,进行重启,性能会不会好一点呢?

菜鸟教程在线运行的代码,测试发现是一直使用两个容器交替执行,可以参考一下。
https://www.runoob.com/try/runcode.php?filename=HelloWorld&type=python3

@xjq7
Copy link
Owner
xjq7 commented Sep 4, 2024

之前是考虑过重复利用重启来着, 需要做好容器的管理, 另外容器销毁后仍有缓存, 启动速度很快, 比菜鸟的运行速度会快些,

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
0