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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
461 |
23 |
21 |
24.02 |
1.18 |
bin-true |
no-host |
671 |
549 |
2,244 |
819 |
832 |
3.34 |
1.22 |
configure.cpython |
no-host |
15,167 |
15,264 |
28,845 |
15,435 |
15,642 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,821 |
3,774 |
4,681 |
3,874 |
3,861 |
1.23 |
1.01 |
configure.tcc |
no-host |
49 |
43 |
195 |
49 |
49 |
3.96 |
0.99 |
configure.util-linux |
no-host |
14,132 |
14,990 |
31,274 |
14,541 |
14,474 |
2.21 |
1.03 |
configure.yash |
no-host |
1,833 |
1,792 |
2,471 |
1,851 |
1,832 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
32.80 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,531 |
1,115 |
23,226 |
3,176 |
3,111 |
9.18 |
1.25 |
bin-true |
no-host |
106,374 |
66,364 |
756,269 |
128,095 |
125,870 |
7.11 |
1.20 |
configure.cpython |
no-host |
2,214,717 |
2,246,219 |
6,213,691 |
2,223,251 |
2,215,849 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,583 |
391,289 |
645,540 |
414,066 |
412,670 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,532 |
5,473 |
23,559 |
7,005 |
6,911 |
3.61 |
1.07 |
configure.util-linux |
no-host |
2,104,780 |
2,258,794 |
5,328,640 |
2,005,948 |
1,994,811 |
2.53 |
0.95 |
configure.yash |
no-host |
256,570 |
245,159 |
386,729 |
258,840 |
258,205 |
1.51 |
1.01 |
hello-world |
no-host |
156 |
80 |
3,729 |
354 |
343 |
23.90 |
2.27 |
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.4 |
3,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
8.3 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,435 |
1 |
62 |
15.0 |
27.3 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,541 |
3 |
61 |
21.3 |
30.1 |
2,703,490 |
29,146 |
65,890 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,874 |
1 |
2 |
2.6 |
20.3 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,520 |
14,776 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,851 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,324 |
64,530 |
42,740 |
4,571 |
54,521 |
57,232 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
832 |
1 |
2 |
2.6 |
7.9 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,642 |
1 |
63 |
14.9 |
27.4 |
1,772,721 |
49,105 |
28,525 |
86,398 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,474 |
3 |
61 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,861 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,832 |
1 |
2 |
2.6 |
24.1 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,323 |
64,468 |
42,678 |
4,572 |
54,521 |
57,230 |
270 |
3 |
85,356 |
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 |
13 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
461 |
413 |
51 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
11 |
12 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
671 |
513 |
189 |
2.9 |
bash |
9 |
no-host |
bin-true |
549 |
433 |
126 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,244 |
1,550 |
947 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
560 |
272 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
832 |
575 |
272 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,167 |
9,255 |
6,311 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,264 |
9,119 |
6,561 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,845 |
17,884 |
12,833 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,435 |
9,089 |
6,612 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,642 |
9,124 |
6,572 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,821 |
1,625 |
1,236 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,774 |
1,626 |
1,164 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,681 |
2,267 |
1,624 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,874 |
1,576 |
1,337 |
20.3 |
osh-native |
36 |
no-host |
configure.ocaml |
3,861 |
1,581 |
1,316 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
24 |
19 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
195 |
142 |
56 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
17 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
23 |
26 |
19.1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,132 |
8,913 |
5,693 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,990 |
9,176 |
6,293 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,274 |
20,779 |
11,563 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,541 |
8,730 |
6,007 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,474 |
8,673 |
5,996 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,833 |
1,041 |
801 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,792 |
978 |
817 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,471 |
1,499 |
1,015 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,851 |
1,070 |
785 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,832 |
1,043 |
793 |
24.1 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
28 |
21 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.4 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
osh-native-souffle |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,115 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,226 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,176 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,111 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,374 |
0 |
0 |
0 |
8 |
0 |
1,992 |
52 |
bash |
9 |
no-host |
bin-true |
66,364 |
0 |
0 |
0 |
8 |
0 |
1,988 |
123 |
dash |
17 |
no-host |
bin-true |
756,269 |
0 |
0 |
0 |
8 |
0 |
1,989 |
134 |
osh-cpython |
25 |
no-host |
bin-true |
128,095 |
0 |
0 |
0 |
16 |
0 |
1,985 |
64 |
osh-native |
33 |
no-host |
bin-true |
125,870 |
0 |
0 |
0 |
16 |
0 |
1,981 |
77 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,214,717 |
0 |
0 |
0 |
32,928 |
0 |
14,417 |
1,154 |
bash |
10 |
no-host |
configure.cpython |
2,246,219 |
0 |
0 |
0 |
32,992 |
0 |
14,667 |
1,183 |
dash |
18 |
no-host |
configure.cpython |
6,213,691 |
0 |
0 |
0 |
27,512 |
0 |
13,284 |
1,151 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,251 |
0 |
0 |
0 |
27,520 |
0 |
13,202 |
1,034 |
osh-native |
34 |
no-host |
configure.cpython |
2,215,849 |
0 |
0 |
0 |
27,520 |
0 |
13,235 |
978 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,583 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
151 |
bash |
12 |
no-host |
configure.ocaml |
391,289 |
0 |
0 |
0 |
5,112 |
0 |
1,918 |
170 |
dash |
20 |
no-host |
configure.ocaml |
645,540 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
177 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,066 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
173 |
osh-native |
36 |
no-host |
configure.ocaml |
412,670 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
157 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,532 |
0 |
0 |
0 |
104 |
0 |
49 |
9 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,559 |
0 |
0 |
0 |
96 |
0 |
53 |
15 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,005 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,911 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,780 |
2 |
0 |
0 |
42,400 |
0 |
18,576 |
1,028 |
bash |
11 |
no-host |
configure.util-linux |
2,258,794 |
0 |
0 |
0 |
42,584 |
0 |
17,477 |
1,062 |
dash |
19 |
no-host |
configure.util-linux |
5,328,640 |
10 |
0 |
0 |
39,112 |
0 |
16,985 |
1,245 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,948 |
0 |
0 |
0 |
39,120 |
0 |
17,108 |
1,194 |
osh-native |
35 |
no-host |
configure.util-linux |
1,994,811 |
0 |
0 |
0 |
39,136 |
0 |
17,128 |
976 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,570 |
0 |
0 |
0 |
4,120 |
0 |
866 |
83 |
bash |
14 |
no-host |
configure.yash |
245,159 |
0 |
0 |
0 |
3,720 |
0 |
869 |
77 |
dash |
22 |
no-host |
configure.yash |
386,729 |
0 |
0 |
0 |
3,728 |
0 |
851 |
78 |
osh-cpython |
30 |
no-host |
configure.yash |
258,840 |
0 |
0 |
0 |
3,736 |
0 |
851 |
89 |
osh-native |
38 |
no-host |
configure.yash |
258,205 |
0 |
0 |
0 |
3,736 |
0 |
851 |
71 |
osh-native-souffle |
0 |
no-host |
hello-world |
156 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,729 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host