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 |
454 |
22 |
23.85 |
1.17 |
bin-true |
no-host |
671 |
547 |
2,242 |
818 |
3.34 |
1.22 |
configure.cpython |
no-host |
14,898 |
14,941 |
28,306 |
15,242 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,781 |
3,720 |
4,608 |
3,829 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
192 |
49 |
4.03 |
1.04 |
configure.util-linux |
no-host |
13,906 |
14,763 |
30,818 |
14,332 |
2.22 |
1.03 |
configure.yash |
no-host |
1,828 |
1,757 |
2,417 |
1,813 |
1.32 |
0.99 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.04 |
1.91 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,542 |
1,097 |
23,443 |
3,174 |
9.22 |
1.25 |
bin-true |
no-host |
102,352 |
66,488 |
749,641 |
128,217 |
7.32 |
1.25 |
configure.cpython |
no-host |
2,226,477 |
2,244,680 |
6,131,413 |
2,240,912 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,310 |
391,278 |
640,043 |
413,377 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,586 |
5,501 |
23,283 |
6,984 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,095,635 |
2,253,056 |
5,321,219 |
2,020,551 |
2.54 |
0.96 |
configure.yash |
no-host |
256,102 |
244,510 |
384,844 |
258,504 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
81 |
3,680 |
349 |
24.53 |
2.33 |
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.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
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,242 |
1 |
61 |
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,332 |
2 |
60 |
22.2 |
30.0 |
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,829 |
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 |
49 |
0 |
0 |
1.3 |
19.5 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,813 |
1 |
2 |
2.6 |
24.4 |
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 |
8.9 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
412 |
46 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
671 |
477 |
224 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
418 |
140 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,242 |
1,460 |
1,044 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
580 |
254 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,898 |
9,056 |
6,239 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,941 |
9,022 |
6,339 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,306 |
17,284 |
12,855 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,242 |
8,954 |
6,562 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,781 |
1,649 |
1,170 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,720 |
1,639 |
1,101 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,608 |
2,302 |
1,512 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,829 |
1,568 |
1,297 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
32 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
132 |
62 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
23 |
27 |
19.5 |
osh-native |
3 |
no-host |
configure.util-linux |
13,906 |
8,768 |
5,611 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,763 |
9,088 |
6,172 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,818 |
20,677 |
11,217 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,332 |
8,528 |
6,002 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,828 |
1,027 |
797 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,757 |
995 |
765 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,417 |
1,451 |
1,010 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,813 |
1,019 |
797 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
25 |
24 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,443 |
0 |
0 |
0 |
8 |
0 |
47 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,174 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
102,352 |
0 |
0 |
0 |
8 |
0 |
1,987 |
46 |
bash |
9 |
no-host |
bin-true |
66,488 |
0 |
0 |
0 |
8 |
0 |
1,992 |
85 |
dash |
17 |
no-host |
bin-true |
749,641 |
0 |
0 |
0 |
8 |
0 |
1,994 |
275 |
osh-cpython |
25 |
no-host |
bin-true |
128,217 |
0 |
0 |
0 |
16 |
0 |
1,992 |
107 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,477 |
0 |
0 |
0 |
32,928 |
0 |
14,582 |
1,214 |
bash |
10 |
no-host |
configure.cpython |
2,244,680 |
0 |
0 |
0 |
32,992 |
0 |
14,654 |
1,023 |
dash |
18 |
no-host |
configure.cpython |
6,131,413 |
1 |
0 |
0 |
27,512 |
0 |
13,304 |
1,227 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,240,912 |
0 |
0 |
0 |
27,520 |
0 |
13,415 |
1,224 |
osh-native |
4 |
no-host |
configure.ocaml |
410,310 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
225 |
bash |
12 |
no-host |
configure.ocaml |
391,278 |
0 |
0 |
0 |
5,112 |
0 |
1,900 |
145 |
dash |
20 |
no-host |
configure.ocaml |
640,043 |
1 |
0 |
0 |
5,112 |
0 |
1,865 |
187 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,377 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
173 |
osh-native |
5 |
no-host |
configure.tcc |
6,586 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,501 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,283 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,635 |
1 |
0 |
0 |
42,400 |
0 |
18,699 |
952 |
bash |
11 |
no-host |
configure.util-linux |
2,253,056 |
0 |
0 |
0 |
42,592 |
0 |
17,459 |
1,170 |
dash |
19 |
no-host |
configure.util-linux |
5,321,219 |
8 |
0 |
0 |
39,112 |
0 |
17,204 |
1,276 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,020,551 |
0 |
0 |
0 |
39,120 |
0 |
17,029 |
1,075 |
osh-native |
6 |
no-host |
configure.yash |
256,102 |
0 |
0 |
0 |
4,120 |
0 |
878 |
120 |
bash |
14 |
no-host |
configure.yash |
244,510 |
0 |
0 |
0 |
3,720 |
0 |
872 |
83 |
dash |
22 |
no-host |
configure.yash |
384,844 |
0 |
0 |
0 |
3,728 |
0 |
859 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,504 |
0 |
0 |
0 |
3,736 |
0 |
852 |
87 |
osh-native |
0 |
no-host |
hello-world |
150 |
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,680 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host