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

Update results with up to date bash/nodejs combination #14

Open
pavelloz opened this issue Jul 4, 2019 · 3 comments
Open

Update results with up to date bash/nodejs combination #14

pavelloz opened this issue Jul 4, 2019 · 3 comments

Comments

@pavelloz
Copy link

pavelloz commented Jul 4, 2019

With new versions available (up to date bash, nodejs), i think benchmark results are even more flattering.

Especially that line looks cool:

ShellJS was 219.411 times faster than Bash

System Information:

  • Darwin
  • 17.7.0
  • x64
  • Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz × 8

Node information

v12.5.0

  • Node.js: v12.5.0
  • V8: 7.5.288.22-node.14

Shell Information:

  • name: /bin/bash
  • version: GNU bash, version 5.0.7(1)-release (x86_64-apple-darwin17.7.0)
    Copyright (C) 2019 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

[echoIntoFile]

  • [Bash] took 2280 milliseconds
  • [ShellJS 0.5.3] took 414 milliseconds
  • [ShellJS 0.6.0] took 426 milliseconds
  • [ShellJS latest] took 106 milliseconds
    ShellJS was 21.509 times faster than Bash
    =======================

[envVariable]

  • [Bash] took 228 milliseconds
  • [ShellJS 0.5.3] took 259 milliseconds
  • [ShellJS 0.6.0] took 257 milliseconds
  • [ShellJS latest] took 109 milliseconds
    Output differs
    ShellJS was 2.092 times faster than Bash
    =======================

[forLoopAlternateSyntax]

  • [Bash] took 79 milliseconds
  • [ShellJS 0.5.3] took 140 milliseconds
  • [ShellJS 0.6.0] took 134 milliseconds
  • [ShellJS latest] took 110 milliseconds
    Output differs
    Bash was 1.392 times faster than ShellJS
    =======================

[helloworld]

  • [Bash] took 67 milliseconds
  • [ShellJS 0.5.3] took 119 milliseconds
  • [ShellJS 0.6.0] took 119 milliseconds
  • [ShellJS latest] took 114 milliseconds
    Output differs
    Bash was 1.701 times faster than ShellJS
    =======================

[helloworld10k]

  • [Bash] took 152 milliseconds
  • [ShellJS 0.5.3] took 228 milliseconds
  • [ShellJS 0.6.0] took 235 milliseconds
  • [ShellJS latest] took 108 milliseconds
    Output differs
    ShellJS was 1.407 times faster than Bash
    =======================

[ls10k]

  • [Bash] took 23477 milliseconds
  • [ShellJS 0.5.3] took 667 milliseconds
  • [ShellJS 0.6.0] took 697 milliseconds
  • [ShellJS latest] took 107 milliseconds
    Output differs
    ShellJS was 219.411 times faster than Bash
    =======================

[pwd10k]

  • [Bash] took 631 milliseconds
  • [ShellJS 0.5.3] took 2183 milliseconds
  • [ShellJS 0.6.0] took 1911 milliseconds
  • [ShellJS latest] took 111 milliseconds
    Output differs
    ShellJS was 5.685 times faster than Bash
    =======================

[touchSyntax0.6]

  • [Bash] took 3971 milliseconds
  • Skipping test for ShellJS 0.5.3
  • [ShellJS 0.6.0] took 348 milliseconds
  • [ShellJS latest] took 113 milliseconds
    ShellJS was 35.142 times faster than Bash
    =======================
@pavelloz pavelloz changed the title Refresh results Update results with up to date bash/nodejs combination Jul 4, 2019
@nfischer
Copy link
Member

nfischer commented Jul 5, 2019

Nice! Feel free to send a PR to update the README.

@pavelloz
Copy link
Author

pavelloz commented Jul 7, 2019

I was just going to submit PR with updated results when i noticed "Output differs".
I slapped couple writeLogs() in there to see if the difference is substantial and it looks like the most amazing results are when shelljs is not outputting anything, which in those kinds of tests means there's a whole lot less to do :)

@nfischer
Copy link
Member

nfischer commented Jul 8, 2019

@pavelloz can you file a bug in this repo for each case where shelljs is obviously broken?

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

No branches or pull requests

2 participants