Skip to content

shelljs/benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShellJS Benchmarks

Join the chat at https://gitter.im/shelljs/shelljs Build Status

Collection of benchmarks for ShellJS

Note: benchmark results will be moving to Github Pages - stay tuned.

This is a comparison of ShellJS and bash for performance. Each test case runs scripts with equivalent output and compares Bash's runtime with ShellJS's. Surprisingly, ShellJS is often the winner, sometimes being up to 12x faster! Woohoo! See below for ShellJS performance wins.

Results

ShellJS performance wins

System Information:

  • Linux

  • 4.2.0-30-generic

  • x64

  • Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz × 4

Node information

  • Node.js: v5.3.0

  • V8: 4.6.85.31

Shell Information:

  • name: /bin/bash

  • version: GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2013 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.

ShellJS was 4.730 times faster than Bash

Bash was 1.968 times faster than ShellJS

Bash was 2.582 times faster than ShellJS

Bash was 2.083 times faster than ShellJS

Bash was 3.654 times faster than ShellJS

ShellJS was 9.268 times faster than Bash

Bash was 9.704 times faster than ShellJS

ShellJS was 2.994 times faster than Bash

About

Collection of benchmarks for ShellJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published