FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Benchmark fixes by AndreasMadsen · Pull Request #9064 · nodejs/node · GitHub

/ node Public

Benchmark fixes - #9064

Closed
AndreasMadsen wants to merge 3 commits into
nodejs:masterfrom
AndreasMadsen:benchmark-fixes
Closed

Benchmark fixes#9064
AndreasMadsen wants to merge 3 commits into
nodejs:masterfrom
AndreasMadsen:benchmark-fixes

Conversation

AndreasMadsen commented Oct 12, 2016
edited
Loading

Copy link
Copy Markdown
Member
Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

benchmark

Description of change

Some minor benchmark fixes. I can create 3 separate pull requests if that makes the review process easier.

benchmark: fixes csv parsing given no parameters

When a benchmark did not contain any parameters the csv configuration
filed would be "". In R this is by default parsed as NA, causing NA in
the printout too.

Fixes: #9061

benchmark: change the execution order

This changes the execution order from "iter, file, binary" to "file,
iter, binary". This means the csv no longer has to buffered completely.

This also has the added effect that stopping compare.js early or
interfering with performance only affects a single benchmark, instead of
all of them.

Refs: #8659

benchmark: use node v4 syntax in common.js

Using new syntax such as ...args means that the benchmark suite can't
be used with older node versions. This changes the ...args syntax to a
good old Array.prototype.slice.

Refs: #8932 (comment)

When a benchmark did not contain any parameters the csv configuration
filed would be "". In R this is by default parsed as NA, causing NA in
the printout too.

Fixes: #9061
This changes the execution order from "iter, file, binary" to "file,
iter, binary". This means the csv no longer has to buffered completely.

This also has the added effect that stopping compare.js early or
interfering with performance only affects a single benchmark, instead of
all of them.

Refs: #8659
Using new syntax such as `...args` means that the benchmark suite can't
be used with older node versions. This changes the `...args` syntax to a
good old `Array.prototype.slice`.

Refs: #8932 (comment)
nodejs-github-bot added the benchmark Issues and PRs related to the benchmark subsystem. label Oct 12, 2016

Copy link
Copy Markdown
Member Author

/cc @mscdex

jasnell commented Oct 14, 2016

Copy link
Copy Markdown
Member

Not overly keen on this. But technically LGTM

mscdex commented Oct 14, 2016

Copy link
Copy Markdown
Contributor

@jasnell Which part did you have reservations about?

I can confirm the csv parsing fix works.

jasnell commented Oct 14, 2016

Copy link
Copy Markdown
Member

The changes to v8ForceOptimization. It's no biggie tho.

Copy link
Copy Markdown
Member Author

@jasnell: @trevnorris touched a bit on it in #8637 (comment).

I'd like to point out that by keeping benchmarks using the absolute latest features it makes it impossible to test them against older versions of Node. Requiring editing the file and removing the offending syntax. I'd say for benchmarks that don't involve new JS features we use the backwards compatible syntax as much as possible.

mscdex commented Oct 14, 2016

Copy link
Copy Markdown
Contributor

LGTM

jasnell self-assigned this Oct 17, 2016
jasnell pushed a commit that referenced this pull request Oct 17, 2016
When a benchmark did not contain any parameters the csv configuration
filed would be "". In R this is by default parsed as NA, causing NA in
the printout too.

Fixes: #9061
PR-URL: #9064
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
jasnell pushed a commit that referenced this pull request Oct 17, 2016
This changes the execution order from "iter, file, binary" to "file,
iter, binary". This means the csv no longer has to buffered completely.

This also has the added effect that stopping compare.js early or
interfering with performance only affects a single benchmark, instead of
all of them.

Refs: #8659
PR-URL: #9064
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
jasnell pushed a commit that referenced this pull request Oct 17, 2016
Using new syntax such as `...args` means that the benchmark suite can't
be used with older node versions. This changes the `...args` syntax to a
good old `Array.prototype.slice`.

Refs: #8932 (comment)
PR-URL: #9064
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>

jasnell commented Oct 17, 2016

Copy link
Copy Markdown
Member

Landed in 138a792, 41173de, and 8a0b7ff

jasnell closed this Oct 17, 2016
jasnell pushed a commit that referenced this pull request Oct 17, 2016
When a benchmark did not contain any parameters the csv configuration
filed would be "". In R this is by default parsed as NA, causing NA in
the printout too.

Fixes: #9061
PR-URL: #9064
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
jasnell pushed a commit that referenced this pull request Oct 17, 2016
This changes the execution order from "iter, file, binary" to "file,
iter, binary". This means the csv no longer has to buffered completely.

This also has the added effect that stopping compare.js early or
interfering with performance only affects a single benchmark, instead of
all of them.

Refs: #8659
PR-URL: #9064
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
jasnell pushed a commit that referenced this pull request Oct 17, 2016
Using new syntax such as `...args` means that the benchmark suite can't
be used with older node versions. This changes the `...args` syntax to a
good old `Array.prototype.slice`.

Refs: #8932 (comment)
PR-URL: #9064
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>

Copy link
Copy Markdown
Member Author

@jasnell thanks for merging this, kinda forgot about it :)

gibfahn mentioned this pull request Jun 15, 2017
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmark Issues and PRs related to the benchmark subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

benchmark: 'NA' appended to filename in compare.R output

4 participants


Back | FazBrowse Home | New Git URL