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 |
450 |
22 |
23.01 |
1.15 |
bin-true |
no-host |
686 |
562 |
2,203 |
819 |
3.21 |
1.19 |
configure.cpython |
no-host |
15,359 |
15,459 |
28,684 |
15,553 |
1.87 |
1.01 |
configure.ocaml |
no-host |
3,876 |
3,742 |
4,656 |
3,914 |
1.20 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
191 |
50 |
3.97 |
1.03 |
configure.util-linux |
no-host |
14,345 |
15,272 |
31,437 |
14,581 |
2.19 |
1.02 |
configure.yash |
no-host |
1,864 |
1,786 |
2,515 |
1,837 |
1.35 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
30.14 |
1.72 |
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,110 |
22,799 |
3,225 |
9.03 |
1.28 |
bin-true |
no-host |
107,451 |
66,477 |
727,489 |
128,220 |
6.77 |
1.19 |
configure.cpython |
no-host |
2,222,386 |
2,237,144 |
6,044,598 |
2,235,465 |
2.72 |
1.01 |
configure.ocaml |
no-host |
410,592 |
391,139 |
631,352 |
413,401 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,524 |
5,489 |
22,897 |
6,969 |
3.51 |
1.07 |
configure.util-linux |
no-host |
2,097,205 |
2,262,440 |
5,270,481 |
2,022,139 |
2.51 |
0.96 |
configure.yash |
no-host |
256,010 |
244,652 |
382,960 |
258,877 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,647 |
341 |
23.68 |
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.2 |
6.2 |
3,710 |
3,710 |
0 |
681 |
1,865 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.7 |
8.1 |
154,656 |
12,889 |
2,791 |
11,730 |
78,317 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,553 |
1 |
61 |
15.9 |
27.3 |
1,769,350 |
44,560 |
28,499 |
101,923 |
904,763 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,581 |
3 |
61 |
22.2 |
30.1 |
2,698,087 |
29,091 |
65,783 |
126,121 |
1,315,368 |
1,256,598 |
49,081 |
41 |
131,566 |
1 |
configure.ocaml |
no-host |
3,914 |
1 |
2 |
2.7 |
20.4 |
149,273 |
11,026 |
5,129 |
8,602 |
71,056 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,424 |
30,424 |
0 |
1,599 |
14,700 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,837 |
1 |
2 |
2.6 |
24.4 |
139,384 |
7,140 |
6,531 |
7,554 |
69,998 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,050 |
64,417 |
42,656 |
4,601 |
54,332 |
57,117 |
478 |
3 |
85,312 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
406 |
47 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
686 |
505 |
215 |
2.9 |
bash |
9 |
no-host |
bin-true |
562 |
433 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,203 |
1,480 |
975 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
578 |
257 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,359 |
9,241 |
6,521 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,459 |
9,427 |
6,461 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,684 |
17,201 |
13,292 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,553 |
9,191 |
6,626 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,876 |
1,587 |
1,328 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,742 |
1,582 |
1,181 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,656 |
2,311 |
1,545 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,914 |
1,604 |
1,353 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
32 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
151 |
43 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
37 |
14 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,345 |
9,012 |
5,815 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,272 |
9,115 |
6,659 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,437 |
20,905 |
11,593 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,581 |
8,725 |
6,050 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,864 |
1,117 |
757 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,786 |
1,050 |
740 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,515 |
1,551 |
1,007 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,837 |
1,080 |
761 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
40 |
8 |
17.2 |
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,524 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,110 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,799 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,225 |
0 |
0 |
0 |
16 |
0 |
40 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,451 |
0 |
0 |
0 |
8 |
0 |
1,991 |
85 |
bash |
9 |
no-host |
bin-true |
66,477 |
0 |
0 |
0 |
8 |
0 |
1,987 |
126 |
dash |
17 |
no-host |
bin-true |
727,489 |
0 |
0 |
0 |
8 |
0 |
2,003 |
88 |
osh-cpython |
25 |
no-host |
bin-true |
128,220 |
0 |
0 |
0 |
16 |
0 |
1,990 |
92 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,386 |
0 |
0 |
0 |
32,928 |
0 |
14,445 |
1,270 |
bash |
10 |
no-host |
configure.cpython |
2,237,144 |
0 |
0 |
0 |
32,992 |
0 |
14,562 |
1,196 |
dash |
18 |
no-host |
configure.cpython |
6,044,598 |
0 |
0 |
0 |
27,512 |
0 |
13,283 |
1,212 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,465 |
0 |
0 |
0 |
27,520 |
0 |
13,304 |
1,087 |
osh-native |
4 |
no-host |
configure.ocaml |
410,592 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
274 |
bash |
12 |
no-host |
configure.ocaml |
391,139 |
0 |
0 |
0 |
5,112 |
0 |
1,881 |
140 |
dash |
20 |
no-host |
configure.ocaml |
631,352 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
225 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,401 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,524 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
22,897 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,969 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,097,205 |
4 |
0 |
0 |
42,400 |
0 |
18,612 |
1,163 |
bash |
11 |
no-host |
configure.util-linux |
2,262,440 |
1 |
0 |
0 |
42,592 |
0 |
17,473 |
1,095 |
dash |
19 |
no-host |
configure.util-linux |
5,270,481 |
11 |
0 |
0 |
39,112 |
0 |
17,044 |
1,267 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,022,139 |
1 |
0 |
0 |
39,128 |
0 |
17,014 |
1,078 |
osh-native |
6 |
no-host |
configure.yash |
256,010 |
0 |
0 |
0 |
4,120 |
0 |
869 |
83 |
bash |
14 |
no-host |
configure.yash |
244,652 |
0 |
0 |
0 |
3,720 |
0 |
869 |
94 |
dash |
22 |
no-host |
configure.yash |
382,960 |
0 |
0 |
0 |
3,728 |
0 |
856 |
108 |
osh-cpython |
30 |
no-host |
configure.yash |
258,877 |
0 |
0 |
0 |
3,736 |
0 |
854 |
90 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,647 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host