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 |
20 |
10 |
466 |
22 |
22.86 |
1.10 |
bin-true |
no-host |
678 |
546 |
2,279 |
824 |
3.36 |
1.22 |
configure.cpython |
no-host |
15,531 |
15,730 |
29,435 |
15,691 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,908 |
3,813 |
4,745 |
3,894 |
1.21 |
1.00 |
configure.tcc |
no-host |
50 |
42 |
199 |
50 |
3.99 |
1.00 |
configure.util-linux |
no-host |
14,476 |
15,384 |
32,134 |
14,847 |
2.22 |
1.03 |
configure.yash |
no-host |
1,887 |
1,818 |
2,515 |
1,874 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.63 |
2.07 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,118 |
23,244 |
3,208 |
9.18 |
1.27 |
bin-true |
no-host |
106,358 |
66,482 |
749,013 |
127,231 |
7.04 |
1.20 |
configure.cpython |
no-host |
2,218,086 |
2,248,931 |
6,098,252 |
2,234,852 |
2.75 |
1.01 |
configure.ocaml |
no-host |
410,410 |
390,668 |
635,906 |
413,635 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,582 |
5,471 |
23,121 |
6,981 |
3.51 |
1.06 |
configure.util-linux |
no-host |
2,096,186 |
2,264,762 |
5,312,145 |
2,016,105 |
2.53 |
0.96 |
configure.yash |
no-host |
255,821 |
244,747 |
385,146 |
258,982 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
81 |
3,657 |
338 |
24.38 |
2.25 |
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.2 |
6.0 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.7 |
7.9 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,691 |
1 |
65 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,847 |
3 |
64 |
22.2 |
30.0 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,894 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,874 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
478 |
3 |
85,314 |
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 |
20 |
14 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
466 |
405 |
64 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
512 |
198 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
415 |
138 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,279 |
1,467 |
1,077 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
559 |
279 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,531 |
9,299 |
6,630 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,730 |
9,358 |
6,797 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,435 |
17,693 |
13,667 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,691 |
9,241 |
6,711 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,908 |
1,750 |
1,191 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,813 |
1,635 |
1,196 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,745 |
2,269 |
1,684 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,894 |
1,678 |
1,255 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
31 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
151 |
52 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,476 |
9,164 |
5,787 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,384 |
9,444 |
6,429 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,134 |
21,688 |
11,553 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,847 |
8,915 |
6,134 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,887 |
1,027 |
869 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,818 |
1,095 |
726 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,515 |
1,516 |
1,044 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,874 |
1,127 |
751 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
21 |
28 |
17.2 |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,244 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,208 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,358 |
0 |
0 |
0 |
8 |
0 |
1,992 |
74 |
bash |
9 |
no-host |
bin-true |
66,482 |
0 |
0 |
0 |
8 |
0 |
1,990 |
46 |
dash |
17 |
no-host |
bin-true |
749,013 |
0 |
0 |
0 |
8 |
0 |
2,004 |
449 |
osh-cpython |
25 |
no-host |
bin-true |
127,231 |
0 |
0 |
0 |
16 |
0 |
1,993 |
66 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,086 |
0 |
0 |
0 |
32,928 |
0 |
14,513 |
1,158 |
bash |
10 |
no-host |
configure.cpython |
2,248,931 |
0 |
0 |
0 |
32,992 |
0 |
14,567 |
1,127 |
dash |
18 |
no-host |
configure.cpython |
6,098,252 |
0 |
0 |
0 |
27,512 |
0 |
13,283 |
1,301 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,852 |
0 |
0 |
0 |
27,520 |
0 |
13,300 |
1,237 |
osh-native |
4 |
no-host |
configure.ocaml |
410,410 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
184 |
bash |
12 |
no-host |
configure.ocaml |
390,668 |
0 |
0 |
0 |
5,112 |
0 |
1,903 |
147 |
dash |
20 |
no-host |
configure.ocaml |
635,906 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
180 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,635 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,582 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,121 |
0 |
0 |
0 |
96 |
0 |
50 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,186 |
1 |
0 |
0 |
42,400 |
0 |
18,595 |
1,081 |
bash |
11 |
no-host |
configure.util-linux |
2,264,762 |
3 |
0 |
0 |
42,584 |
0 |
17,444 |
1,114 |
dash |
19 |
no-host |
configure.util-linux |
5,312,145 |
11 |
0 |
0 |
39,120 |
0 |
17,094 |
1,382 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,105 |
0 |
0 |
0 |
39,128 |
0 |
17,121 |
1,074 |
osh-native |
6 |
no-host |
configure.yash |
255,821 |
0 |
0 |
0 |
4,120 |
0 |
871 |
80 |
bash |
14 |
no-host |
configure.yash |
244,747 |
0 |
0 |
0 |
3,720 |
0 |
869 |
91 |
dash |
22 |
no-host |
configure.yash |
385,146 |
0 |
0 |
0 |
3,728 |
0 |
858 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,982 |
0 |
0 |
0 |
3,736 |
0 |
850 |
76 |
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,657 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host