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 |
453 |
22 |
23.46 |
1.14 |
bin-true |
no-host |
670 |
541 |
2,252 |
811 |
3.36 |
1.21 |
configure.cpython |
no-host |
15,057 |
15,067 |
28,397 |
15,494 |
1.89 |
1.03 |
configure.ocaml |
no-host |
3,801 |
3,704 |
4,651 |
3,808 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
193 |
49 |
4.01 |
1.02 |
configure.util-linux |
no-host |
13,892 |
14,756 |
30,848 |
14,328 |
2.22 |
1.03 |
configure.yash |
no-host |
1,887 |
1,747 |
2,497 |
1,816 |
1.32 |
0.96 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.71 |
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,552 |
1,098 |
22,849 |
3,185 |
8.95 |
1.25 |
bin-true |
no-host |
106,339 |
66,426 |
754,699 |
128,408 |
7.10 |
1.21 |
configure.cpython |
no-host |
2,218,132 |
2,247,028 |
6,132,795 |
2,222,239 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,513 |
391,281 |
639,023 |
413,516 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,463 |
23,282 |
7,012 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,104,262 |
2,262,830 |
5,306,421 |
1,998,300 |
2.52 |
0.95 |
configure.yash |
no-host |
256,117 |
244,037 |
384,299 |
258,058 |
1.50 |
1.01 |
hello-world |
no-host |
149 |
82 |
3,696 |
347 |
24.81 |
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.3 |
3,748 |
3,748 |
0 |
681 |
1,890 |
1,177 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.6 |
8.0 |
154,713 |
13,066 |
2,819 |
9,731 |
78,359 |
66,623 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,494 |
1 |
63 |
15.0 |
27.4 |
1,772,689 |
49,459 |
28,528 |
86,378 |
908,111 |
778,200 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,328 |
2 |
63 |
21.3 |
30.3 |
2,703,425 |
44,787 |
65,813 |
109,640 |
1,320,609 |
1,273,176 |
49,081 |
41 |
131,626 |
1 |
configure.ocaml |
no-host |
3,808 |
1 |
2 |
2.6 |
20.6 |
150,059 |
11,066 |
5,159 |
7,510 |
71,647 |
70,902 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,548 |
30,548 |
0 |
1,501 |
14,814 |
14,233 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,816 |
1 |
2 |
2.6 |
24.2 |
139,716 |
7,984 |
6,620 |
6,317 |
70,319 |
63,080 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,291 |
64,475 |
42,683 |
4,552 |
54,559 |
57,180 |
478 |
3 |
85,366 |
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 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
453 |
427 |
29 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
670 |
501 |
203 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
421 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,252 |
1,437 |
1,081 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
569 |
257 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,057 |
9,153 |
6,302 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,067 |
8,999 |
6,501 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,397 |
17,181 |
13,087 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,494 |
9,081 |
6,687 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,801 |
1,609 |
1,234 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,704 |
1,520 |
1,199 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,651 |
2,252 |
1,607 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,808 |
1,582 |
1,262 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
35 |
14 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
132 |
64 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,892 |
8,789 |
5,576 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,756 |
9,049 |
6,203 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,848 |
20,858 |
11,052 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,328 |
8,849 |
5,683 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,887 |
1,103 |
789 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,747 |
1,070 |
680 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,497 |
1,539 |
1,001 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,816 |
1,010 |
810 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
36 |
12 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,552 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,849 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,185 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,339 |
0 |
0 |
0 |
8 |
0 |
1,993 |
88 |
bash |
9 |
no-host |
bin-true |
66,426 |
0 |
0 |
0 |
8 |
0 |
1,987 |
67 |
dash |
17 |
no-host |
bin-true |
754,699 |
0 |
0 |
0 |
8 |
0 |
1,991 |
200 |
osh-cpython |
25 |
no-host |
bin-true |
128,408 |
0 |
0 |
0 |
16 |
0 |
1,985 |
50 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,132 |
0 |
0 |
0 |
32,928 |
0 |
14,542 |
1,205 |
bash |
10 |
no-host |
configure.cpython |
2,247,028 |
0 |
0 |
0 |
32,992 |
0 |
14,591 |
978 |
dash |
18 |
no-host |
configure.cpython |
6,132,795 |
0 |
0 |
0 |
27,512 |
0 |
13,287 |
1,339 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,239 |
0 |
0 |
0 |
27,520 |
0 |
13,368 |
996 |
osh-native |
4 |
no-host |
configure.ocaml |
410,513 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
317 |
bash |
12 |
no-host |
configure.ocaml |
391,281 |
0 |
0 |
0 |
5,112 |
0 |
1,878 |
160 |
dash |
20 |
no-host |
configure.ocaml |
639,023 |
1 |
0 |
0 |
5,112 |
0 |
1,854 |
210 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,516 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
161 |
osh-native |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,463 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,282 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,012 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,262 |
2 |
0 |
0 |
42,400 |
0 |
18,587 |
1,054 |
bash |
11 |
no-host |
configure.util-linux |
2,262,830 |
0 |
0 |
0 |
42,592 |
0 |
17,447 |
1,050 |
dash |
19 |
no-host |
configure.util-linux |
5,306,421 |
12 |
0 |
0 |
39,112 |
0 |
16,950 |
1,220 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,300 |
6 |
0 |
0 |
39,120 |
0 |
16,970 |
982 |
osh-native |
6 |
no-host |
configure.yash |
256,117 |
0 |
0 |
0 |
4,120 |
0 |
874 |
85 |
bash |
14 |
no-host |
configure.yash |
244,037 |
0 |
0 |
0 |
3,720 |
0 |
868 |
74 |
dash |
22 |
no-host |
configure.yash |
384,299 |
0 |
0 |
0 |
3,728 |
0 |
855 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,058 |
0 |
0 |
0 |
3,736 |
0 |
845 |
97 |
osh-native |
0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,696 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host