{"id":18411331,"url":"https://github.com/shelljs/benchmarks","last_synced_at":"2025-08-19T08:38:03.083Z","repository":{"id":66000896,"uuid":"48668251","full_name":"shelljs/benchmarks","owner":"shelljs","description":"Collection of benchmarks for ShellJS","archived":false,"fork":false,"pushed_at":"2016-07-30T04:45:55.000Z","size":34,"stargazers_count":4,"open_issues_count":6,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-07T11:37:06.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shelljs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-28T01:49:34.000Z","updated_at":"2019-05-14T23:40:52.000Z","dependencies_parsed_at":"2023-02-28T11:00:30.001Z","dependency_job_id":null,"html_url":"https://github.com/shelljs/benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shelljs/benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelljs%2Fbenchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelljs%2Fbenchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelljs%2Fbenchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelljs%2Fbenchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shelljs","download_url":"https://codeload.github.com/shelljs/benchmarks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelljs%2Fbenchmarks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263781176,"owners_count":23510419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T03:36:13.679Z","updated_at":"2025-07-05T18:06:55.744Z","avatar_url":"https://github.com/shelljs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ShellJS Benchmarks\n\n[![Join the chat at https://gitter.im/shelljs/shelljs](https://badges.gitter.im/shelljs/shelljs.svg)](https://gitter.im/shelljs/shelljs?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n[![Build Status](https://travis-ci.org/shelljs/benchmarks.svg?branch=master)](https://travis-ci.org/shelljs/benchmarks)\n\nCollection of benchmarks for ShellJS\n\nNote: benchmark results will be moving to Github Pages - stay tuned.\n\nThis is a comparison of [ShellJS]() and bash for performance. Each test case\nruns scripts with equivalent output and compares Bash's runtime with ShellJS's.\nSurprisingly, ShellJS is often the winner, sometimes being up to **12x faster**!\nWoohoo! See below for [ShellJS performance wins](#shelljs-performance-wins).\n\n## Results\n\n### ShellJS performance wins\n\n - [echoIntoFile](test/echoIntoFile)\n - [ls10k](test/ls10k)\n - [touchSyntax0.6](test/touchSyntax0.6)\n\n## System Information:\n\n - Linux\n\n - 4.2.0-30-generic\n\n - x64\n\n - Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz × 4\n\n## Node information\n\n - Node.js: v5.3.0\n\n - V8: 4.6.85.31\n\n\n\n## Shell Information:\n\n - name: `/bin/bash`\n\n - version: GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)\nCopyright (C) 2013 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later \u003chttp://gnu.org/licenses/gpl.html\u003e\nThis is free software; you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\n\n\n### [echoIntoFile](test/echoIntoFile)\n\n - [Bash](test/echoIntoFile/echoIntoFile.sh) took `842` milliseconds\n\n - [ShellJS 0.5.3](test/echoIntoFile/echoIntoFile.js) took `252` milliseconds\n\n - [ShellJS 0.6.0](test/echoIntoFile/echoIntoFile.js) took `270` milliseconds\n\n - [ShellJS latest](test/echoIntoFile/echoIntoFile.js) took `178` milliseconds\n\nShellJS was `4.730` times faster than Bash\n\n### [envVariable](test/envVariable)\n\n - [Bash](test/envVariable/envVar.sh) took `314` milliseconds\n\n - [ShellJS 0.5.3](test/envVariable/envVar.js) took `281` milliseconds\n\n - [ShellJS 0.6.0](test/envVariable/envVar.js) took `293` milliseconds\n\n - [ShellJS latest](test/envVariable/envVar.js) took `618` milliseconds\n\nBash was `1.968` times faster than ShellJS\n\n### [forLoopAlternateSyntax](test/forLoopAlternateSyntax)\n\n - [Bash](test/forLoopAlternateSyntax/helloworld10k.sh) took `91` milliseconds\n\n - [ShellJS 0.5.3](test/forLoopAlternateSyntax/helloworld10k.js) took `184` milliseconds\n\n - [ShellJS 0.6.0](test/forLoopAlternateSyntax/helloworld10k.js) took `185` milliseconds\n\n - [ShellJS latest](test/forLoopAlternateSyntax/helloworld10k.js) took `235` milliseconds\n\nBash was `2.582` times faster than ShellJS\n\n### [helloworld](test/helloworld)\n\n - [Bash](test/helloworld/helloworld.sh) took `84` milliseconds\n\n - [ShellJS 0.5.3](test/helloworld/helloworld.js) took `195` milliseconds\n\n - [ShellJS 0.6.0](test/helloworld/helloworld.js) took `175` milliseconds\n\n - [ShellJS latest](test/helloworld/helloworld.js) took `175` milliseconds\n\nBash was `2.083` times faster than ShellJS\n\n### [helloworld10k](test/helloworld10k)\n\n - [Bash](test/helloworld10k/helloworld10k.sh) took `208` milliseconds\n\n - [ShellJS 0.5.3](test/helloworld10k/helloworld10k.js) took `326` milliseconds\n\n - [ShellJS 0.6.0](test/helloworld10k/helloworld10k.js) took `264` milliseconds\n\n - [ShellJS latest](test/helloworld10k/helloworld10k.js) took `760` milliseconds\n\nBash was `3.654` times faster than ShellJS\n\n### [ls10k](test/ls10k)\n\n - [Bash](test/ls10k/ls10k.sh) took `10334` milliseconds\n\n - [ShellJS 0.5.3](test/ls10k/ls10k.js) took `690` milliseconds\n\n - [ShellJS 0.6.0](test/ls10k/ls10k.js) took `748` milliseconds\n\n - [ShellJS latest](test/ls10k/ls10k.js) took `1115` milliseconds\n\nShellJS was `9.268` times faster than Bash\n\n### [pwd10k](test/pwd10k)\n\n - [Bash](test/pwd10k/path10k.sh) took `632` milliseconds\n\n - [ShellJS 0.5.3](test/pwd10k/path10k.js) took `1625` milliseconds\n\n - [ShellJS 0.6.0](test/pwd10k/path10k.js) took `2343` milliseconds\n\n - [ShellJS latest](test/pwd10k/path10k.js) took `6133` milliseconds\n\nBash was `9.704` times faster than ShellJS\n\n### [touchSyntax0.6](test/touchSyntax0.6)\n\n - [Bash](test/touchSyntax0.6/touchrm10k.sh) took `1392` milliseconds\n\n - Skipping test for ShellJS 0.5.3\n\n - [ShellJS 0.6.0](test/touchSyntax0.6/touchrm10k.js) took `270` milliseconds\n\n - [ShellJS latest](test/touchSyntax0.6/touchrm10k.js) took `465` milliseconds\n\nShellJS was `2.994` times faster than Bash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelljs%2Fbenchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshelljs%2Fbenchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelljs%2Fbenchmarks/lists"}