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 |
455 |
22 |
24.04 |
1.17 |
bin-true |
no-host |
664 |
536 |
2,238 |
813 |
3.37 |
1.22 |
configure.cpython |
no-host |
14,847 |
14,886 |
28,112 |
15,047 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,780 |
3,704 |
4,563 |
3,785 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
191 |
49 |
4.03 |
1.03 |
configure.util-linux |
no-host |
13,742 |
14,676 |
30,635 |
14,251 |
2.23 |
1.04 |
configure.yash |
no-host |
1,796 |
1,752 |
2,407 |
1,806 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
28.91 |
1.73 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,543 |
1,118 |
23,498 |
3,229 |
9.24 |
1.27 |
bin-true |
no-host |
106,370 |
67,387 |
752,848 |
126,142 |
7.08 |
1.19 |
configure.cpython |
no-host |
2,225,218 |
2,239,704 |
6,149,468 |
2,233,466 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,996 |
390,785 |
639,960 |
413,626 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,534 |
5,492 |
23,284 |
6,982 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,099,278 |
2,267,112 |
5,329,513 |
2,019,394 |
2.54 |
0.96 |
configure.yash |
no-host |
256,449 |
244,591 |
384,218 |
258,993 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
84 |
3,694 |
351 |
24.63 |
2.34 |
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 |
813 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,047 |
1 |
59 |
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,251 |
3 |
57 |
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,785 |
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.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,806 |
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 |
22 |
1 |
2 |
2.8 |
8.8 |
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 |
10 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
405 |
53 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
664 |
504 |
189 |
3.0 |
bash |
9 |
no-host |
bin-true |
536 |
409 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,238 |
1,420 |
1,066 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
586 |
240 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,847 |
8,837 |
6,409 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,886 |
8,921 |
6,386 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,112 |
17,070 |
12,845 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,047 |
8,860 |
6,453 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,780 |
1,645 |
1,164 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,704 |
1,568 |
1,152 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,563 |
2,206 |
1,560 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,785 |
1,676 |
1,149 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
36 |
12 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
129 |
65 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,742 |
8,803 |
5,413 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,676 |
8,959 |
6,205 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,635 |
20,359 |
11,346 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,251 |
8,737 |
5,713 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,796 |
1,084 |
721 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,752 |
992 |
764 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,407 |
1,496 |
953 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,806 |
1,052 |
758 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.3 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,498 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,229 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,370 |
0 |
0 |
0 |
8 |
0 |
1,980 |
55 |
bash |
9 |
no-host |
bin-true |
67,387 |
0 |
0 |
0 |
8 |
0 |
1,990 |
43 |
dash |
17 |
no-host |
bin-true |
752,848 |
0 |
0 |
0 |
8 |
0 |
2,000 |
411 |
osh-cpython |
25 |
no-host |
bin-true |
126,142 |
0 |
0 |
0 |
16 |
0 |
1,993 |
254 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,218 |
1 |
0 |
0 |
32,928 |
0 |
14,476 |
1,188 |
bash |
10 |
no-host |
configure.cpython |
2,239,704 |
0 |
0 |
0 |
32,992 |
0 |
14,636 |
1,156 |
dash |
18 |
no-host |
configure.cpython |
6,149,468 |
0 |
0 |
0 |
27,512 |
0 |
13,278 |
1,180 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,466 |
0 |
0 |
0 |
27,520 |
0 |
13,345 |
1,028 |
osh-native |
4 |
no-host |
configure.ocaml |
410,996 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
177 |
bash |
12 |
no-host |
configure.ocaml |
390,785 |
0 |
0 |
0 |
5,112 |
0 |
1,907 |
159 |
dash |
20 |
no-host |
configure.ocaml |
639,960 |
1 |
0 |
0 |
5,112 |
0 |
1,861 |
197 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,626 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
177 |
osh-native |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,492 |
0 |
0 |
0 |
96 |
0 |
47 |
10 |
dash |
21 |
no-host |
configure.tcc |
23,284 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,982 |
0 |
0 |
0 |
104 |
0 |
46 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,278 |
1 |
0 |
0 |
42,400 |
0 |
18,589 |
993 |
bash |
11 |
no-host |
configure.util-linux |
2,267,112 |
1 |
0 |
0 |
42,584 |
0 |
17,410 |
1,095 |
dash |
19 |
no-host |
configure.util-linux |
5,329,513 |
13 |
0 |
0 |
39,112 |
0 |
17,059 |
1,314 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,394 |
1 |
0 |
0 |
39,120 |
0 |
17,075 |
963 |
osh-native |
6 |
no-host |
configure.yash |
256,449 |
0 |
0 |
0 |
4,120 |
0 |
868 |
78 |
bash |
14 |
no-host |
configure.yash |
244,591 |
0 |
0 |
0 |
3,720 |
0 |
872 |
86 |
dash |
22 |
no-host |
configure.yash |
384,218 |
0 |
0 |
0 |
3,728 |
0 |
857 |
81 |
osh-cpython |
30 |
no-host |
configure.yash |
258,993 |
0 |
0 |
0 |
3,736 |
0 |
854 |
90 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,694 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host