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

Add throughput benchmark #961

Merged
merged 2 commits into from
Oct 11, 2018
Merged

Add throughput benchmark #961

merged 2 commits into from
Oct 11, 2018

Conversation

ry
Copy link
Member

@ry ry commented Oct 11, 2018

Fixes #890

@ry
Copy link
Member Author

ry commented Oct 11, 2018

@piscisaureus PTAL - seems to be working. I will squash upon approval.

echo_server = subprocess.Popen(
[deno_exe, "--allow-net", "tests/echo_server.ts", ADDR])

time.sleep(1) # wait for deno to wake up. TODO racy.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure it is done compiling ts in 1 sec?

Copy link
Member

@piscisaureus piscisaureus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I will make it work on windows some day.

@ry ry merged commit c814d5a into denoland:master Oct 11, 2018
@ry ry deleted the throughput_bench branch October 11, 2018 20:55
@ghost
Copy link

ghost commented Oct 12, 2018

you're mixing a lot of processes and other tainting factors: deno, python, head, netcat, timers. also, this test stops at 10mb as smallest echo.

when possible to do so, a better test with a full range from small to large using only deno and not starting and stopping timers over and over is needed.

this test kind of ignores everything i've talked about so far.. 10mb is not small, you never send 10mb reaponses in Rest services or ws messages

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

Successfully merging this pull request may close these issues.

2 participants