oilshell.org
OSH Runtime Performance
Source code: benchmarks/osh-runtime.sh
Raw files
Elapsed Time by Shell (milliseconds)
Some benchmarks call many external tools, while some exercise the shell
interpreter itself.
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
9 |
455 |
22 |
23.90 |
1.17 |
bin-true |
no-host |
678 |
545 |
2,245 |
815 |
3.31 |
1.20 |
configure.cpython |
no-host |
15,035 |
15,329 |
28,622 |
15,409 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,842 |
3,758 |
4,655 |
3,857 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
191 |
50 |
4.02 |
1.05 |
configure.util-linux |
no-host |
14,152 |
14,988 |
31,429 |
14,540 |
2.22 |
1.03 |
configure.yash |
no-host |
1,817 |
1,780 |
2,459 |
1,845 |
1.35 |
1.02 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.50 |
1.87 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,513 |
1,093 |
23,434 |
3,206 |
9.33 |
1.28 |
bin-true |
no-host |
105,380 |
66,502 |
749,613 |
126,203 |
7.11 |
1.20 |
configure.cpython |
no-host |
2,222,122 |
2,240,558 |
6,127,216 |
2,236,718 |
2.76 |
1.01 |
configure.ocaml |
no-host |
411,054 |
390,855 |
640,618 |
413,614 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,477 |
23,274 |
7,003 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,098,919 |
2,253,241 |
5,327,307 |
2,017,503 |
2.54 |
0.96 |
configure.yash |
no-host |
256,883 |
244,513 |
384,549 |
258,421 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,678 |
349 |
24.20 |
2.30 |
Memory Usage (Max Resident Set Size in MB)
Memory usage is measured in MB (powers of 10), not MiB (powers of 2).
GC Stats
workload |
host name |
elapsed ms |
max gc millis |
total gc millis |
allocated MB |
max rss MB |
num allocated |
num live |
max survived |
num in heap |
num in pool 1 |
num in pool 2 |
num gc points |
num gc done |
gc threshold |
num growths |
hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.2 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,409 |
1 |
62 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,540 |
3 |
60 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,857 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,845 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
1 |
rusage Details
task id |
host name |
workload |
elapsed ms |
user ms |
sys ms |
max rss MB |
shell label |
7 |
no-host |
abuild-print-help |
19 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
455 |
409 |
49 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
678 |
494 |
214 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
415 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,245 |
1,399 |
1,100 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
562 |
268 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,035 |
9,054 |
6,380 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,329 |
9,152 |
6,390 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,622 |
17,451 |
13,006 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,409 |
9,180 |
6,473 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,842 |
1,608 |
1,255 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,758 |
1,605 |
1,171 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,655 |
2,272 |
1,590 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,857 |
1,591 |
1,307 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
32 |
16 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
17 |
25 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
136 |
58 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
29 |
21 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,152 |
8,817 |
5,801 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,988 |
9,145 |
6,329 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,429 |
20,933 |
11,583 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,540 |
8,828 |
5,913 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,817 |
1,074 |
749 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,780 |
1,072 |
712 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,459 |
1,504 |
999 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,845 |
1,081 |
769 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
23 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
More Details
task id |
host name |
workload |
minor faults |
major faults |
swaps |
in block |
out block |
signals |
voluntary ctx |
involuntary ctx |
shell label |
7 |
no-host |
abuild-print-help |
2,513 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,434 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,206 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,380 |
0 |
0 |
0 |
8 |
0 |
1,991 |
63 |
bash |
9 |
no-host |
bin-true |
66,502 |
0 |
0 |
0 |
8 |
0 |
1,990 |
82 |
dash |
17 |
no-host |
bin-true |
749,613 |
0 |
0 |
0 |
8 |
0 |
2,003 |
407 |
osh-cpython |
25 |
no-host |
bin-true |
126,203 |
0 |
0 |
0 |
16 |
0 |
1,994 |
202 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,122 |
0 |
0 |
0 |
32,928 |
0 |
14,559 |
1,019 |
bash |
10 |
no-host |
configure.cpython |
2,240,558 |
0 |
0 |
0 |
32,992 |
0 |
14,745 |
1,205 |
dash |
18 |
no-host |
configure.cpython |
6,127,216 |
0 |
0 |
0 |
27,512 |
0 |
13,236 |
1,281 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,718 |
0 |
0 |
0 |
27,520 |
0 |
13,370 |
1,156 |
osh-native |
4 |
no-host |
configure.ocaml |
411,054 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
183 |
bash |
12 |
no-host |
configure.ocaml |
390,855 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
154 |
dash |
20 |
no-host |
configure.ocaml |
640,618 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
189 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,614 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,274 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,003 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,919 |
0 |
0 |
0 |
42,400 |
0 |
18,516 |
1,231 |
bash |
11 |
no-host |
configure.util-linux |
2,253,241 |
0 |
0 |
0 |
42,584 |
0 |
17,460 |
1,154 |
dash |
19 |
no-host |
configure.util-linux |
5,327,307 |
8 |
0 |
0 |
39,112 |
0 |
16,987 |
1,221 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,503 |
2 |
0 |
0 |
39,120 |
0 |
17,128 |
909 |
osh-native |
6 |
no-host |
configure.yash |
256,883 |
0 |
0 |
0 |
4,120 |
0 |
872 |
84 |
bash |
14 |
no-host |
configure.yash |
244,513 |
0 |
0 |
0 |
3,720 |
0 |
872 |
83 |
dash |
22 |
no-host |
configure.yash |
384,549 |
0 |
0 |
0 |
3,728 |
0 |
857 |
83 |
osh-cpython |
30 |
no-host |
configure.yash |
258,421 |
0 |
0 |
0 |
3,736 |
0 |
851 |
62 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,678 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host