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 |
463 |
22 |
23.93 |
1.15 |
bin-true |
no-host |
673 |
545 |
2,201 |
815 |
3.27 |
1.21 |
configure.cpython |
no-host |
14,978 |
15,070 |
28,484 |
15,411 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,803 |
3,724 |
4,621 |
3,807 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
192 |
49 |
4.04 |
1.02 |
configure.util-linux |
no-host |
13,997 |
14,801 |
31,031 |
14,412 |
2.22 |
1.03 |
configure.yash |
no-host |
1,809 |
1,770 |
2,466 |
1,838 |
1.36 |
1.02 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
31.25 |
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,524 |
1,113 |
23,853 |
3,240 |
9.45 |
1.28 |
bin-true |
no-host |
106,321 |
65,435 |
742,953 |
127,133 |
6.99 |
1.20 |
configure.cpython |
no-host |
2,223,191 |
2,246,959 |
6,134,326 |
2,234,250 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,807 |
391,138 |
639,279 |
413,388 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,566 |
5,473 |
23,242 |
6,976 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,098,560 |
2,264,979 |
5,295,651 |
2,011,846 |
2.52 |
0.96 |
configure.yash |
no-host |
256,098 |
244,481 |
385,354 |
258,856 |
1.50 |
1.01 |
hello-world |
no-host |
156 |
84 |
3,674 |
345 |
23.55 |
2.21 |
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,722 |
3,722 |
0 |
684 |
1,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
7.9 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,411 |
1 |
62 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,412 |
3 |
60 |
22.2 |
30.3 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,807 |
1 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,838 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
57,113 |
478 |
3 |
85,324 |
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 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
416 |
49 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
673 |
499 |
204 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
426 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,201 |
1,481 |
972 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
594 |
235 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,978 |
9,084 |
6,275 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,070 |
8,951 |
6,538 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,484 |
17,098 |
13,205 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,411 |
9,229 |
6,426 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,803 |
1,629 |
1,208 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,724 |
1,612 |
1,131 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,621 |
2,168 |
1,660 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,807 |
1,643 |
1,204 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
32 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
30 |
12 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
148 |
48 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,997 |
8,842 |
5,618 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,801 |
9,141 |
6,151 |
29.9 |
dash |
19 |
no-host |
configure.util-linux |
31,031 |
20,684 |
11,427 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,412 |
8,589 |
6,012 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,809 |
1,073 |
742 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,770 |
994 |
778 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,466 |
1,547 |
962 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,838 |
1,072 |
771 |
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 |
47 |
28 |
19 |
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,524 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,113 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,853 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,240 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,321 |
0 |
0 |
0 |
8 |
0 |
1,997 |
48 |
bash |
9 |
no-host |
bin-true |
65,435 |
0 |
0 |
0 |
8 |
0 |
1,987 |
55 |
dash |
17 |
no-host |
bin-true |
742,953 |
0 |
0 |
0 |
8 |
0 |
2,000 |
152 |
osh-cpython |
25 |
no-host |
bin-true |
127,133 |
0 |
0 |
0 |
16 |
0 |
1,987 |
62 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,191 |
1 |
0 |
0 |
32,928 |
0 |
14,513 |
1,227 |
bash |
10 |
no-host |
configure.cpython |
2,246,959 |
0 |
0 |
0 |
32,992 |
0 |
14,557 |
1,032 |
dash |
18 |
no-host |
configure.cpython |
6,134,326 |
2 |
0 |
0 |
27,512 |
0 |
13,128 |
1,206 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,250 |
0 |
0 |
0 |
27,520 |
0 |
13,326 |
1,102 |
osh-native |
4 |
no-host |
configure.ocaml |
410,807 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
204 |
bash |
12 |
no-host |
configure.ocaml |
391,138 |
0 |
0 |
0 |
5,112 |
0 |
1,903 |
137 |
dash |
20 |
no-host |
configure.ocaml |
639,279 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
162 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,388 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
158 |
osh-native |
5 |
no-host |
configure.tcc |
6,566 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,242 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,976 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,560 |
0 |
0 |
0 |
42,408 |
0 |
18,689 |
987 |
bash |
11 |
no-host |
configure.util-linux |
2,264,979 |
2 |
0 |
0 |
42,592 |
0 |
17,315 |
1,021 |
dash |
19 |
no-host |
configure.util-linux |
5,295,651 |
14 |
0 |
0 |
39,112 |
0 |
17,038 |
1,306 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,846 |
1 |
0 |
0 |
39,120 |
0 |
17,088 |
1,056 |
osh-native |
6 |
no-host |
configure.yash |
256,098 |
0 |
0 |
0 |
4,120 |
0 |
871 |
88 |
bash |
14 |
no-host |
configure.yash |
244,481 |
0 |
0 |
0 |
3,720 |
0 |
870 |
181 |
dash |
22 |
no-host |
configure.yash |
385,354 |
0 |
0 |
0 |
3,728 |
0 |
859 |
74 |
osh-cpython |
30 |
no-host |
configure.yash |
258,856 |
0 |
0 |
0 |
3,736 |
0 |
853 |
84 |
osh-native |
0 |
no-host |
hello-world |
156 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,674 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host