shelljs / benchmarks Goto Github PK
View Code? Open in Web Editor NEWCollection of benchmarks for ShellJS
License: MIT License
Collection of benchmarks for ShellJS
License: MIT License
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
v12.5.0
/bin/bash
2280
milliseconds414
milliseconds426
milliseconds106
milliseconds21.509
times faster than Bash228
milliseconds259
milliseconds257
milliseconds109
milliseconds2.092
times faster than Bash79
milliseconds140
milliseconds134
milliseconds110
milliseconds1.392
times faster than ShellJS67
milliseconds119
milliseconds119
milliseconds114
milliseconds1.701
times faster than ShellJS152
milliseconds228
milliseconds235
milliseconds108
milliseconds1.407
times faster than Bash23477
milliseconds667
milliseconds697
milliseconds107
milliseconds219.411
times faster than Bash631
milliseconds2183
milliseconds1911
milliseconds111
milliseconds5.685
times faster than Bash3971
milliseconds348
milliseconds113
milliseconds35.142
times faster than BashDue to inactivity, I revoked the github token (wanted to limit security issues). If we revisit this project, we'll have to update the token again.
To get the most consistent results, we might do well to run each unit test multiple times, discard any outliers (maybe the system was in a weird state for one run), and average the remaining runs.
Doing a simple average is easy enough, and we'll see a huge amount of improvement that way, so it might be worth it to just write it in to do an average of 3-5 runs, and worry about outliers once they crop up.
Generating markdown and converting it to html works, but is very limiting. I think we can achieve much nicer results if we programmatically build a DOM and then write it out to a file. This should be easy to achieve using something like xmlbuilder. If we add in css files, then we can have complete control over styling, which is good.
Some shelljs commands that are currently untested include:
It'd be good to see some benchmarks for these as well, to see if we can get any performance wins.
Hi @IvantheDugtrio!
I was wondering if you'd consider allowing us to move this project in to the shelljs org? I've been trying to put more of an emphasis on performance in shelljs, and this tool looks really useful.
We would of course love for you to continue working on the project, and you would have full control of it.
Thank you for your consideration
cc @nfischer.
Once we start building an index.html
from benchmark run, Github pages should start displaying results. This should have a similar layout to the current index.md
file.
Requiring multiple versions of the same package is somewhat frowned upon in the node community, but here's a suggested workaround from isaacs:
We might consider investigating this in order to test against versions 0.5.3 and up. Or we can switch to requiring the latest version of shelljs and testing against that.
It might be worth it to investigate some sort of API for generating online graphs, so we can check performance changes over time, on average.
The website could really use some styling.
This is not the behavior I'm seeing on my machine. @IvantheDugtrio did you make sure you're running on the latest version of ShellJS? touch()
is a new feature in v0.6
These stats aren't very helpful unless we have information about your machine's specs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.