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 |
453 |
23 |
23.70 |
1.18 |
bin-true |
no-host |
681 |
538 |
2,234 |
826 |
3.28 |
1.21 |
configure.cpython |
no-host |
15,071 |
15,101 |
28,760 |
15,400 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,863 |
3,744 |
4,655 |
3,823 |
1.21 |
0.99 |
configure.tcc |
no-host |
48 |
41 |
194 |
49 |
4.07 |
1.02 |
configure.util-linux |
no-host |
14,020 |
14,936 |
31,388 |
14,451 |
2.24 |
1.03 |
configure.yash |
no-host |
1,813 |
1,758 |
2,443 |
1,837 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
33.91 |
2.00 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,544 |
1,107 |
23,428 |
3,225 |
9.21 |
1.27 |
bin-true |
no-host |
104,366 |
65,401 |
750,643 |
127,154 |
7.19 |
1.22 |
configure.cpython |
no-host |
2,231,159 |
2,246,895 |
6,133,808 |
2,228,589 |
2.75 |
1.00 |
configure.ocaml |
no-host |
411,136 |
390,928 |
639,680 |
413,502 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,572 |
5,478 |
23,294 |
7,005 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,097,977 |
2,255,738 |
5,328,125 |
2,022,946 |
2.54 |
0.96 |
configure.yash |
no-host |
255,390 |
244,579 |
383,473 |
258,401 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,682 |
345 |
24.38 |
2.28 |
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 |
826 |
1 |
2 |
2.7 |
8.1 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,400 |
1 |
61 |
15.8 |
27.5 |
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,451 |
2 |
59 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,823 |
1 |
2 |
2.7 |
20.4 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,837 |
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 |
23 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
453 |
402 |
54 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
1 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
681 |
505 |
211 |
2.9 |
bash |
9 |
no-host |
bin-true |
538 |
412 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,234 |
1,466 |
1,028 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
597 |
242 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,071 |
9,148 |
6,323 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,101 |
9,047 |
6,476 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,760 |
17,707 |
12,914 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,400 |
9,191 |
6,480 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,863 |
1,642 |
1,219 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,744 |
1,564 |
1,200 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,655 |
2,242 |
1,620 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,823 |
1,569 |
1,290 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
22 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
129 |
68 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,020 |
8,714 |
5,788 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,936 |
9,105 |
6,327 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,388 |
20,853 |
11,644 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,451 |
8,798 |
5,824 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,813 |
990 |
831 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,758 |
1,028 |
733 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,443 |
1,501 |
985 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,837 |
1,116 |
718 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
36 |
12 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,544 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,428 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,225 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,366 |
0 |
0 |
0 |
8 |
0 |
1,989 |
52 |
bash |
9 |
no-host |
bin-true |
65,401 |
0 |
0 |
0 |
8 |
0 |
1,988 |
40 |
dash |
17 |
no-host |
bin-true |
750,643 |
0 |
0 |
0 |
8 |
0 |
1,993 |
217 |
osh-cpython |
25 |
no-host |
bin-true |
127,154 |
0 |
0 |
0 |
16 |
0 |
1,992 |
401 |
osh-native |
2 |
no-host |
configure.cpython |
2,231,159 |
0 |
0 |
0 |
32,928 |
0 |
14,534 |
1,160 |
bash |
10 |
no-host |
configure.cpython |
2,246,895 |
0 |
0 |
0 |
32,992 |
0 |
14,620 |
1,131 |
dash |
18 |
no-host |
configure.cpython |
6,133,808 |
0 |
0 |
0 |
27,512 |
0 |
13,287 |
1,302 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,589 |
0 |
0 |
0 |
27,520 |
0 |
13,318 |
1,303 |
osh-native |
4 |
no-host |
configure.ocaml |
411,136 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
189 |
bash |
12 |
no-host |
configure.ocaml |
390,928 |
0 |
0 |
0 |
5,112 |
0 |
1,908 |
156 |
dash |
20 |
no-host |
configure.ocaml |
639,680 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
160 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,502 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
183 |
osh-native |
5 |
no-host |
configure.tcc |
6,572 |
0 |
0 |
0 |
104 |
0 |
49 |
8 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,294 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,005 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,097,977 |
0 |
0 |
0 |
42,400 |
0 |
18,528 |
952 |
bash |
11 |
no-host |
configure.util-linux |
2,255,738 |
0 |
0 |
0 |
42,584 |
0 |
17,509 |
1,117 |
dash |
19 |
no-host |
configure.util-linux |
5,328,125 |
8 |
0 |
0 |
39,112 |
0 |
17,068 |
1,279 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,022,946 |
2 |
0 |
0 |
39,128 |
0 |
17,064 |
1,007 |
osh-native |
6 |
no-host |
configure.yash |
255,390 |
0 |
0 |
0 |
4,120 |
0 |
866 |
95 |
bash |
14 |
no-host |
configure.yash |
244,579 |
0 |
0 |
0 |
3,720 |
0 |
866 |
98 |
dash |
22 |
no-host |
configure.yash |
383,473 |
0 |
0 |
0 |
3,728 |
0 |
860 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
258,401 |
0 |
0 |
0 |
3,736 |
0 |
853 |
89 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,682 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host