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 |
458 |
22 |
24.30 |
1.15 |
bin-true |
no-host |
677 |
546 |
2,253 |
814 |
3.33 |
1.20 |
configure.cpython |
no-host |
15,207 |
15,096 |
28,669 |
15,340 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,828 |
3,750 |
4,640 |
3,808 |
1.21 |
0.99 |
configure.tcc |
no-host |
47 |
41 |
194 |
49 |
4.08 |
1.04 |
configure.util-linux |
no-host |
14,025 |
14,946 |
31,251 |
14,512 |
2.23 |
1.03 |
configure.yash |
no-host |
1,818 |
1,772 |
2,454 |
1,831 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.95 |
2.10 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,531 |
1,090 |
22,961 |
3,146 |
9.07 |
1.24 |
bin-true |
no-host |
108,318 |
66,473 |
761,827 |
126,160 |
7.03 |
1.16 |
configure.cpython |
no-host |
2,222,908 |
2,241,145 |
6,190,864 |
2,222,978 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,659 |
390,924 |
640,972 |
413,278 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,600 |
5,490 |
23,284 |
6,991 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,104,318 |
2,266,188 |
5,330,261 |
1,997,674 |
2.53 |
0.95 |
configure.yash |
no-host |
255,971 |
244,959 |
385,714 |
258,015 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,694 |
349 |
24.46 |
2.31 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,340 |
1 |
61 |
15.0 |
27.4 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,512 |
3 |
62 |
21.3 |
30.3 |
2,703,426 |
42,745 |
65,812 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,808 |
1 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,831 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
403 |
59 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
677 |
514 |
196 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
416 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,456 |
1,056 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
574 |
256 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,207 |
9,156 |
6,456 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,096 |
9,227 |
6,284 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,669 |
17,511 |
13,022 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,340 |
9,001 |
6,606 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,828 |
1,642 |
1,217 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,750 |
1,596 |
1,172 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,640 |
2,239 |
1,607 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,808 |
1,690 |
1,153 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
25 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
136 |
61 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
21 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,025 |
8,694 |
5,807 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,946 |
9,178 |
6,259 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,251 |
20,951 |
11,388 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,512 |
8,640 |
6,068 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,818 |
1,026 |
799 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,772 |
1,008 |
766 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,454 |
1,485 |
1,012 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,831 |
1,059 |
776 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
27 |
23 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,090 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,961 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,146 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
108,318 |
0 |
0 |
0 |
8 |
0 |
1,989 |
49 |
bash |
9 |
no-host |
bin-true |
66,473 |
0 |
0 |
0 |
8 |
0 |
1,986 |
96 |
dash |
17 |
no-host |
bin-true |
761,827 |
0 |
0 |
0 |
8 |
0 |
2,002 |
190 |
osh-cpython |
25 |
no-host |
bin-true |
126,160 |
0 |
0 |
0 |
16 |
0 |
1,992 |
76 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,908 |
1 |
0 |
0 |
32,928 |
0 |
14,458 |
1,187 |
bash |
10 |
no-host |
configure.cpython |
2,241,145 |
0 |
0 |
0 |
32,992 |
0 |
14,604 |
1,055 |
dash |
18 |
no-host |
configure.cpython |
6,190,864 |
0 |
0 |
0 |
27,512 |
0 |
13,263 |
1,070 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,978 |
1 |
0 |
0 |
27,520 |
0 |
13,282 |
939 |
osh-native |
4 |
no-host |
configure.ocaml |
410,659 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
153 |
bash |
12 |
no-host |
configure.ocaml |
390,924 |
0 |
0 |
0 |
5,112 |
0 |
1,906 |
157 |
dash |
20 |
no-host |
configure.ocaml |
640,972 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
218 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,278 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
165 |
osh-native |
5 |
no-host |
configure.tcc |
6,600 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,284 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,318 |
1 |
0 |
0 |
42,408 |
0 |
18,619 |
994 |
bash |
11 |
no-host |
configure.util-linux |
2,266,188 |
0 |
0 |
0 |
42,592 |
0 |
17,456 |
1,214 |
dash |
19 |
no-host |
configure.util-linux |
5,330,261 |
13 |
0 |
0 |
39,112 |
0 |
16,971 |
1,299 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,674 |
1 |
0 |
0 |
39,120 |
0 |
16,974 |
1,008 |
osh-native |
6 |
no-host |
configure.yash |
255,971 |
0 |
0 |
0 |
4,120 |
0 |
873 |
69 |
bash |
14 |
no-host |
configure.yash |
244,959 |
0 |
0 |
0 |
3,720 |
0 |
863 |
94 |
dash |
22 |
no-host |
configure.yash |
385,714 |
0 |
0 |
0 |
3,728 |
0 |
858 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,015 |
0 |
0 |
0 |
3,736 |
0 |
846 |
79 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,694 |
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