-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
benchmark: net/tcp-raw-pipe.js gives wrong data #11972
Comments
cc @nodejs/benchmarking, @isaacs (the author) |
It seems the cause is this:
Sorry, this benchmark is filled with internal undocumented API via bindings, so I can't understand it completely to proceed on. also cc @bnoordhuis, @indutny, @nodejs/streams (as to 'Who to CC in issues' with |
This looks like a windows-specific bug. I can get normal rates with this benchmark on OSX 10.11 and Ubuntu 16.04. |
cc @nodejs/platform-windows |
IMO this benchmark should be removed or rewritten. Using internal APIs from |
It's for comparative purposes, to measure the overhead of the official API. I don't have a Windows machine at hand right now but I can't reproduce on a Linux and OS X machine. |
I get zeroes on Windows too. @vsemozhetbyt BTW I suggest linking to a specific commit, since master is a moving target and the links might end up linking to the wrong lines. |
@seishun Thank you! I've tried to replace. I can take any last commit from the file history, right? |
Sorry, another attempt. cc @nodejs/platform-windows, @nodejs/streams, @nodejs/performance — can anybody try to fix this for using on Windows? |
It can take me some time to set an env to check this, as I will need to configure my windows machine for core development. So, if someone else can help here, I would be grateful. |
@mcollina , I'll can run checks (my machine is churning core node 90% of the time ;) |
@vsemozhetbyt repro
|
after #12258
|
@refack Thank you! |
fixes nodejs#11972 PR-URL: nodejs#12258 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
After
net
suite completed, I've run thecompare.R
and get the error (translated from Russian):The data from
net/tcp-raw-pipe.js
was like this:If I launch this benchmark separately, the output is:
Is this in my environment only? Can anybody reproduce?
Update: now this benchmark throws on Windows due to this check (see #12030).
The text was updated successfully, but these errors were encountered: