-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
dynamic module second import still slowly when has import std@0.56.0/http/server.ts
#6226
Comments
I have update reproudce repo, the new repo has less code and make test easier |
When I add a simple module cache to the code, both qps are close to 20k in my PC I think |
std@0.56.0/http/server.ts
std@0.56.0/http/server.ts
std@0.56.0/http/server.ts
std@0.56.0/http/server.ts
node dynamic import is also heavye, but deno dynamic import is look like have ignore the compiled files and recompile everytime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
deno version
debian 10
report steps
you need
wrk
or other tools for testgit clone https://github.com/shynome/deno-report-dynamic-module-exec-so-slowly.git
cd deno-report-dynamic-module-exec-so-slowly
deno run -A server.ts
curl http://127.0.0.1:8000/b
work finecurl http://127.0.0.1:8000/c
work finewrk http://127.0.0.1:8000/b
my qps test result is 79wrk http://127.0.0.1:8000/c
my qps test result is 6389difference
the difference is
b.ts
has imported typeimport type { ServerRequest } from "https://deno.land/std@0.56.0/http/server.ts"
, if I remove this line,b.ts
will work fineThe text was updated successfully, but these errors were encountered: