8000 Updated benchmarks with results from my desktop computer · shelljs/benchmarks@10b55fc · GitHub
[go: up one dir, main page]

Skip to content

Commit 10b55fc

Browse files
Updated benchmarks with results from my desktop computer
1 parent b5867f6 commit 10b55fc

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed

README.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,64 +11,66 @@ This will comprise every shell utility ShellJS supports.
1111

1212
### [echoIntoFile](scripts/echoIntoFile)
1313

14-
- [ShellJS](scripts/echoIntoFile/echoIntoFile.js) took `271` milliseconds
14+
- [ShellJS](scripts/echoIntoFile/echoIntoFile.js) took `185` milliseconds
1515

16-
- [Bash](scripts/echoIntoFile/echoIntoFile.sh) took `871` milliseconds
16+
- [Bash](scripts/echoIntoFile/echoIntoFile.sh) took `423` milliseconds
1717

18-
ShellJS was `3.214` times faster than Bash
18+
ShellJS was `2.286` times faster than Bash
1919

2020
### [envVariable](scripts/envVariable)
2121

22-
- [ShellJS](scripts/envVariable/envVar.js) took `1237` milliseconds
22+
- [ShellJS](scripts/envVariable/envVar.js) took `690` milliseconds
2323

24-
- [Bash](scripts/envVariable/envVar.sh) took `1178` milliseconds
24+
- [Bash](scripts/envVariable/envVar.sh) took `709` milliseconds
2525

26-
Bash was `1.050` times faster than ShellJS
26+
ShellJS was `1.028` times faster than Bash
2727

2828
### [forLoopAlternateSyntax](scripts/forLoopAlternateSyntax)
2929

30-
- [ShellJS](scripts/forLoopAlternateSyntax/helloworld10k.js) took `180` milliseconds
30+
- [ShellJS](scripts/forLoopAlternateSyntax/helloworld10k.js) took `111` milliseconds
3131

32-
- [Bash](scripts/forLoopAlternateSyntax/helloworld10k.sh) took `97` milliseconds
32+
- [Bash](scripts/forLoopAlternateSyntax/helloworld10k.sh) took `58` milliseconds
3333

34-
Bash was `1.856` times faster than ShellJS
34+
Bash was `1.914` times faster than ShellJS
3535

3636
### [helloworld](scripts/helloworld)
3737

38-
- [ShellJS](scripts/helloworld/helloworld.js) took `159` milliseconds
38+
- [ShellJS](scripts/helloworld/helloworld.js) took `104` milliseconds
3939

40-
- [Bash](scripts/helloworld/helloworld.sh) took `83` milliseconds
40+
- [Bash](scripts/helloworld/helloworld.sh) took `68` milliseconds
4141

42-
Bash was `1.916` times faster than ShellJS
42+
Bash was `1.529` times faster than ShellJS
4343

4444
### [helloworld10k](scripts/helloworld10k)
4545

46-
- [ShellJS](scripts/helloworld10k/helloworld10k.js) took `293` milliseconds
46+
- [ShellJS](scripts/helloworld10k/helloworld10k.js) took `178` milliseconds
4747

48-
- [Bash](scripts/helloworld10k/helloworld10k.sh) took `168` milliseconds
48+
- [Bash](scripts/helloworld10k/helloworld10k.sh) took `93` milliseconds
4949

50-
Bash was `1.744` times faster than ShellJS
50+
Bash was `1.914` times faster than ShellJS
5151

5252
### [ls10k](scripts/ls10k)
5353

54-
- [ShellJS](scripts/ls10k/ls10k.js) took `827` milliseconds
54+
- [ShellJS](scripts/ls10k/ls10k.js) took `389` milliseconds
5555

56-
- [Bash](scripts/ls10k/ls10k.sh) took `9679` milliseconds
56+
- [Bash](scripts/ls10k/ls10k.sh) took `3715` milliseconds
5757

58-
ShellJS was `11.704` times faster than Bash
58+
ShellJS was `9.550` times faster than Bash
5959

6060
### [pwd10k](scripts/pwd10k)
6161

62-
- [ShellJS](scripts/pwd10k/path10k.js) took `2072` milliseconds
62+
- [ShellJS](scripts/pwd10k/path10k.js) took `903` milliseconds
6363

64-
- [Bash](scripts/pwd10k/path10k.sh) took `679` milliseconds
64+
- [Bash](scripts/pwd10k/path10k.sh) took `332` milliseconds
6565

66-
Bash was `3.052` times faster than ShellJS
66+
Bash was `2.720` times faster than ShellJS
6767

6868
### [touchSyntax06](scripts/touchSyntax06)
6969

70-
- [ShellJS](scripts/touchSyntax06/touchrm10k.js) took `293` milliseconds
70+
- [ShellJS](scripts/touchSyntax06/touchrm10k.js) took `129` milliseconds
7171

72-
- [Bash](scripts/touchSyntax06/touchrm10k.sh) took `1447` milliseconds
72+
- [Bash](scripts/touchSyntax06/touchrm10k.sh) took `782` milliseconds
7373

74-
ShellJS was `4.939` times faster than Bash
74+
ShellJS was `6.062` times faster than Bash
75+
76+
Output differs

0 commit comments

Comments
 (0)
0