node icon indicating copy to clipboard operation
node copied to clipboard

Net benchmarks fail to build

Open matthewloring opened this issue 10 years ago • 6 comments

  • Version: v7.0.0-pre (@master)
  • Platform: OS X 10.11.4
  • Subsystem: Benchmark

Running make bench results in the output:

net/net-c2s-cork.js
_stream_readable.js:19
    return emitter.prependListener(event, fn);
                   ^

TypeError: emitter.prependListener is not a function
    at prependListener (_stream_readable.js:19:20)
    at Socket.Readable.pipe (_stream_readable.js:582:3)
    at Server.<anonymous> (<node_dir>/benchmark/net/net-c2s-cork.js:71:12)
    at emitOne (events.js:96:13)
    at Server.emit (events.js:188:7)
    at TCP.onconnection (net.js:1452:8)
child process exited with code 1

matthewloring avatar Apr 27 '16 00:04 matthewloring

Ugh... ok, yeah, it looks like those benchmarks are doing some funny things with the event emitter interface. Good catch, will have to spend some time to figure that one out.

jasnell avatar Apr 27 '16 00:04 jasnell

@jasnell Putting together a potential fix now. I'm looking for more input but I think prependEmitter can be mocked out just like emit, on, etc for these benchmarks.

matthewloring avatar Apr 27 '16 00:04 matthewloring

/cc @mcollina

Trott avatar Apr 27 '16 00:04 Trott

The structure of these benchmark was already there. They probably need an overhaul anyway. BTW, we should make sure that the benchmarks are part of the CI thing, not to take actual measurement, but on the fact that they "work".

mcollina avatar Apr 27 '16 09:04 mcollina

Yeah I was thinking the same thing. The challenge is that some of the benchmarks are fairly intensive. However, during release prep, there should be an option to include benchmarks in a CI run. /cc @nodejs/build On Apr 27, 2016 2:07 AM, "Matteo Collina" [email protected] wrote:

The structure of these benchmark was already there. They probably need an overhaul anyway. BTW, we should make sure that the benchmarks are part of the CI thing, not to take actual measurement, but on the fact that they "work".

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/nodejs/node/issues/6405#issuecomment-215019528

jasnell avatar Apr 27 '16 12:04 jasnell

Fix landed in #6407

jasnell avatar Apr 30 '16 06:04 jasnell