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 |
21 |
9 |
459 |
22 |
21.39 |
1.04 |
bin-true |
no-host |
676 |
547 |
2,271 |
814 |
3.36 |
1.21 |
configure.cpython |
no-host |
15,013 |
15,211 |
28,808 |
15,299 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,820 |
3,739 |
4,662 |
3,888 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
193 |
49 |
4.04 |
1.03 |
configure.util-linux |
no-host |
14,052 |
14,951 |
31,278 |
14,492 |
2.23 |
1.03 |
configure.yash |
no-host |
1,832 |
1,775 |
2,452 |
1,827 |
1.34 |
1.00 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
32.67 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,509 |
1,093 |
22,907 |
3,163 |
9.13 |
1.26 |
bin-true |
no-host |
105,328 |
66,492 |
750,514 |
128,192 |
7.13 |
1.22 |
configure.cpython |
no-host |
2,225,441 |
2,244,945 |
6,152,084 |
2,224,005 |
2.76 |
1.00 |
configure.ocaml |
no-host |
411,374 |
391,177 |
639,484 |
414,159 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,551 |
5,494 |
23,312 |
6,958 |
3.56 |
1.06 |
configure.util-linux |
no-host |
2,110,842 |
2,259,979 |
5,286,089 |
2,000,519 |
2.50 |
0.95 |
configure.yash |
no-host |
256,595 |
244,565 |
383,345 |
258,616 |
1.49 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,724 |
349 |
24.50 |
2.30 |
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,727 |
3,727 |
0 |
681 |
1,877 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.1 |
154,692 |
12,992 |
2,799 |
9,731 |
78,346 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,299 |
1 |
64 |
15.0 |
27.4 |
1,772,668 |
49,197 |
28,508 |
86,378 |
908,098 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,492 |
3 |
61 |
21.3 |
30.1 |
2,703,404 |
44,766 |
65,812 |
109,640 |
1,320,596 |
1,273,168 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,888 |
1 |
2 |
2.6 |
20.6 |
150,038 |
11,045 |
5,138 |
7,510 |
71,634 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,501 |
14,801 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,827 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
6,317 |
70,306 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,270 |
64,455 |
42,663 |
4,552 |
54,546 |
57,172 |
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 |
21 |
18 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
459 |
413 |
50 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
676 |
496 |
210 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
420 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,271 |
1,461 |
1,076 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
572 |
258 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,013 |
9,156 |
6,266 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,211 |
9,201 |
6,443 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,808 |
17,562 |
13,106 |
27.0 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,299 |
9,122 |
6,446 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,820 |
1,632 |
1,225 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,739 |
1,599 |
1,156 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,662 |
2,241 |
1,629 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,888 |
1,670 |
1,258 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
26 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
140 |
55 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,052 |
8,901 |
5,632 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,951 |
9,138 |
6,309 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,278 |
20,858 |
11,498 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,492 |
8,766 |
5,931 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,832 |
1,091 |
750 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,775 |
1,045 |
734 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,452 |
1,449 |
1,045 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,827 |
1,084 |
748 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
23 |
26 |
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,509 |
0 |
0 |
0 |
16 |
0 |
42 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,093 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,907 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,163 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,328 |
0 |
0 |
0 |
8 |
0 |
1,996 |
99 |
bash |
9 |
no-host |
bin-true |
66,492 |
0 |
0 |
0 |
8 |
0 |
1,992 |
99 |
dash |
17 |
no-host |
bin-true |
750,514 |
0 |
0 |
0 |
8 |
0 |
1,995 |
90 |
osh-cpython |
25 |
no-host |
bin-true |
128,192 |
0 |
0 |
0 |
16 |
0 |
1,992 |
59 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,441 |
0 |
0 |
0 |
32,928 |
0 |
14,587 |
1,221 |
bash |
10 |
no-host |
configure.cpython |
2,244,945 |
5 |
0 |
0 |
32,992 |
0 |
14,676 |
1,179 |
dash |
18 |
no-host |
configure.cpython |
6,152,084 |
0 |
0 |
0 |
27,512 |
0 |
13,255 |
1,144 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,005 |
0 |
0 |
0 |
27,520 |
0 |
13,255 |
1,034 |
osh-native |
4 |
no-host |
configure.ocaml |
411,374 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
170 |
bash |
12 |
no-host |
configure.ocaml |
391,177 |
0 |
0 |
0 |
5,112 |
0 |
1,932 |
159 |
dash |
20 |
no-host |
configure.ocaml |
639,484 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,159 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
293 |
osh-native |
5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,494 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,312 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,958 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,110,842 |
0 |
0 |
0 |
42,400 |
0 |
18,566 |
1,101 |
bash |
11 |
no-host |
configure.util-linux |
2,259,979 |
0 |
0 |
0 |
42,584 |
0 |
17,487 |
1,091 |
dash |
19 |
no-host |
configure.util-linux |
5,286,089 |
15 |
0 |
0 |
39,128 |
0 |
16,980 |
1,372 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,519 |
0 |
0 |
0 |
39,120 |
0 |
16,971 |
1,070 |
osh-native |
6 |
no-host |
configure.yash |
256,595 |
0 |
0 |
0 |
4,120 |
0 |
870 |
88 |
bash |
14 |
no-host |
configure.yash |
244,565 |
0 |
0 |
0 |
3,720 |
0 |
870 |
75 |
dash |
22 |
no-host |
configure.yash |
383,345 |
0 |
0 |
0 |
3,728 |
0 |
854 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
258,616 |
0 |
0 |
0 |
3,736 |
0 |
847 |
69 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,724 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host