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 |
445 |
23 |
22.83 |
1.17 |
bin-true |
no-host |
678 |
547 |
2,251 |
826 |
3.32 |
1.22 |
configure.cpython |
no-host |
15,173 |
15,290 |
28,768 |
15,553 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,846 |
3,767 |
4,764 |
3,940 |
1.24 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
201 |
50 |
4.19 |
1.04 |
configure.util-linux |
no-host |
14,171 |
15,089 |
31,717 |
14,699 |
2.24 |
1.04 |
configure.yash |
no-host |
1,839 |
1,804 |
2,550 |
1,884 |
1.39 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.30 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,521 |
1,088 |
23,298 |
3,190 |
9.24 |
1.27 |
bin-true |
no-host |
107,276 |
67,395 |
752,948 |
127,178 |
7.02 |
1.19 |
configure.cpython |
no-host |
2,222,047 |
2,245,171 |
6,139,507 |
2,229,938 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,446 |
391,011 |
636,640 |
414,176 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,475 |
23,162 |
6,984 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,100,834 |
2,257,103 |
5,331,378 |
2,009,679 |
2.54 |
0.96 |
configure.yash |
no-host |
256,345 |
243,949 |
384,548 |
258,918 |
1.50 |
1.01 |
hello-world |
no-host |
149 |
83 |
3,652 |
345 |
24.51 |
2.32 |
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 |
826 |
1 |
2 |
2.7 |
7.9 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,553 |
1 |
63 |
15.8 |
27.3 |
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,699 |
3 |
62 |
22.2 |
30.3 |
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,940 |
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.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,884 |
1 |
2 |
2.6 |
24.5 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
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 |
12 |
8 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
445 |
398 |
50 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
4 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
501 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
411 |
146 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,251 |
1,466 |
1,039 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
572 |
268 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,173 |
9,276 |
6,286 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,290 |
9,213 |
6,489 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,768 |
17,725 |
12,895 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,553 |
9,218 |
6,587 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,846 |
1,602 |
1,280 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,767 |
1,579 |
1,206 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,764 |
2,326 |
1,641 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,940 |
1,723 |
1,254 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
201 |
137 |
67 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
30 |
20 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,171 |
9,002 |
5,648 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,089 |
9,205 |
6,368 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,717 |
21,041 |
11,785 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,699 |
8,898 |
5,977 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,839 |
1,088 |
758 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,804 |
1,054 |
749 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,550 |
1,617 |
976 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,884 |
1,076 |
809 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
41 |
8 |
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,521 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,088 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,298 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,190 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,276 |
0 |
0 |
0 |
8 |
0 |
1,984 |
52 |
bash |
9 |
no-host |
bin-true |
67,395 |
0 |
0 |
0 |
8 |
0 |
1,985 |
71 |
dash |
17 |
no-host |
bin-true |
752,948 |
0 |
0 |
0 |
8 |
0 |
1,990 |
255 |
osh-cpython |
25 |
no-host |
bin-true |
127,178 |
0 |
0 |
0 |
16 |
0 |
1,988 |
77 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,047 |
0 |
0 |
0 |
32,928 |
0 |
14,501 |
1,098 |
bash |
10 |
no-host |
configure.cpython |
2,245,171 |
0 |
0 |
0 |
32,992 |
0 |
14,642 |
1,210 |
dash |
18 |
no-host |
configure.cpython |
6,139,507 |
1 |
0 |
0 |
27,512 |
0 |
13,332 |
1,314 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,229,938 |
0 |
0 |
0 |
27,520 |
0 |
13,250 |
1,171 |
osh-native |
4 |
no-host |
configure.ocaml |
410,446 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
152 |
bash |
12 |
no-host |
configure.ocaml |
391,011 |
0 |
0 |
0 |
5,112 |
0 |
1,895 |
138 |
dash |
20 |
no-host |
configure.ocaml |
636,640 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
169 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,176 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
184 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
48 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,162 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,834 |
1 |
0 |
0 |
42,408 |
0 |
18,602 |
1,016 |
bash |
11 |
no-host |
configure.util-linux |
2,257,103 |
0 |
0 |
0 |
42,592 |
0 |
17,428 |
1,229 |
dash |
19 |
no-host |
configure.util-linux |
5,331,378 |
11 |
0 |
0 |
39,112 |
0 |
17,056 |
1,219 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,679 |
0 |
0 |
0 |
39,128 |
0 |
17,010 |
1,072 |
osh-native |
6 |
no-host |
configure.yash |
256,345 |
0 |
0 |
0 |
4,120 |
0 |
870 |
88 |
bash |
14 |
no-host |
configure.yash |
243,949 |
0 |
0 |
0 |
3,720 |
0 |
868 |
118 |
dash |
22 |
no-host |
configure.yash |
384,548 |
0 |
0 |
0 |
3,728 |
0 |
859 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,918 |
0 |
0 |
0 |
3,736 |
0 |
851 |
100 |
osh-native |
0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,652 |
0 |
0 |
0 |
8 |
0 |
9 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host