8000 Adding scripts with new descriptors · shelljs/benchmarks@01dc924 · GitHub
[go: up one dir, main page]

Skip to content

Commit 01dc924

Browse files
Adding scripts with new descriptors
1 parent 104a5ed commit 01dc924

File tree

10 files changed

+35
-0
lines changed

10 files changed

+35
-0
lines changed

scripts/helloworld/helloworld.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require('shelljs/global');
2+
echo('Hello World')

scripts/helloworld/helloworld.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
echo "Hello World"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('shelljs/global');
2+
for (var k=0; k<10000; k++)
3+
echo('Hello World');
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
for k in `seq 10000`; do
3+
echo "Hello World"
4+
done

scripts/ls10k/ls10k.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('shelljs/global');
2+
for (var k=0; k<10000; k++)
3+
echo(ls().join('\n'));

scripts/ls10k/ls10k.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
for k in `seq 10000`; do
3+
ls
4+
done

scripts/path10k/path10k.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require('shelljs/global');
2+
for (var k=0; k<100000; k++)
3+
echo(pwd());

scripts/path10k/path10k.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
for k in `seq 100000`; do
3+
pwd
4+
done

scripts/touchrm10k/touchrm10k.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require('shelljs/global');
2+
for (var k=0; k<10000; k++) {
3+
'sometext\n'.to('testfile');
4+
rm('testfile');
5+
}

scripts/touchrm10k/touchrm10k.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
for k in `seq 10000`; do
3+
echo -en "sometext\n" > testfile
4+
rm testfile
5+
done

0 commit comments

Comments
 (0)
0