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 |
9 |
461 |
23 |
21 |
23.80 |
1.18 |
bin-true |
no-host |
692 |
569 |
2,304 |
834 |
817 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,532 |
15,627 |
30,163 |
15,892 |
15,812 |
1.94 |
1.02 |
configure.ocaml |
no-host |
3,900 |
3,850 |
4,811 |
3,947 |
3,929 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
204 |
52 |
50 |
4.22 |
1.08 |
configure.util-linux |
no-host |
14,572 |
15,431 |
32,242 |
15,061 |
14,935 |
2.21 |
1.03 |
configure.yash |
no-host |
1,874 |
1,818 |
2,556 |
1,898 |
1,914 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
3 |
30.97 |
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,525 |
1,095 |
23,385 |
3,216 |
3,081 |
9.26 |
1.27 |
bin-true |
no-host |
106,355 |
65,458 |
767,315 |
127,103 |
124,795 |
7.21 |
1.20 |
configure.cpython |
no-host |
2,224,971 |
2,242,648 |
6,203,843 |
2,224,857 |
2,219,549 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,240 |
391,253 |
645,582 |
413,484 |
412,491 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,573 |
5,482 |
23,605 |
7,025 |
6,909 |
3.59 |
1.07 |
configure.util-linux |
no-host |
2,103,480 |
2,262,865 |
5,356,548 |
1,998,796 |
1,993,010 |
2.55 |
0.95 |
configure.yash |
no-host |
256,358 |
243,032 |
387,372 |
258,602 |
258,059 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,739 |
351 |
343 |
24.76 |
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.3 |
3,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
834 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,892 |
1 |
68 |
15.0 |
27.5 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,061 |
3 |
66 |
21.3 |
30.0 |
2,703,490 |
29,745 |
65,870 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,740 |
1 |
configure.ocaml |
no-host |
3,947 |
1 |
2 |
2.6 |
20.4 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
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,898 |
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 |
9.0 |
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 |
817 |
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,812 |
1 |
66 |
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,935 |
3 |
67 |
21.3 |
30.0 |
2,703,490 |
42,741 |
65,808 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,616 |
1 |
configure.ocaml |
no-host |
3,929 |
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 |
50 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,914 |
1 |
2 |
2.6 |
24.5 |
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.5 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
461 |
401 |
64 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
1 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
692 |
511 |
212 |
3.0 |
bash |
9 |
no-host |
bin-true |
569 |
439 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,304 |
1,491 |
1,084 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
834 |
594 |
254 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
817 |
557 |
272 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,532 |
9,259 |
6,664 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,627 |
9,473 |
6,574 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
30,163 |
18,272 |
13,881 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,892 |
9,369 |
6,784 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,812 |
9,120 |
6,880 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,900 |
1,686 |
1,256 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,850 |
1,685 |
1,185 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,811 |
2,306 |
1,725 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,947 |
1,675 |
1,311 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,929 |
1,630 |
1,337 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
20 |
29 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
13 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
204 |
160 |
47 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
30 |
22 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
28 |
23 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,572 |
9,117 |
5,942 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,431 |
9,526 |
6,400 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,242 |
21,237 |
12,143 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,061 |
8,964 |
6,291 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,935 |
9,151 |
5,975 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,874 |
1,070 |
812 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,818 |
1,048 |
772 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,556 |
1,580 |
1,022 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,898 |
1,048 |
854 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,914 |
1,041 |
877 |
24.5 |
osh-native-souffle |
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 |
52 |
32 |
20 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
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,525 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,385 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,216 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,081 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,355 |
0 |
0 |
0 |
8 |
0 |
1,992 |
218 |
bash |
9 |
no-host |
bin-true |
65,458 |
0 |
0 |
0 |
8 |
0 |
1,984 |
231 |
dash |
17 |
no-host |
bin-true |
767,315 |
0 |
0 |
0 |
8 |
0 |
1,987 |
185 |
osh-cpython |
25 |
no-host |
bin-true |
127,103 |
0 |
0 |
0 |
16 |
0 |
1,982 |
83 |
osh-native |
33 |
no-host |
bin-true |
124,795 |
0 |
0 |
0 |
16 |
0 |
1,992 |
78 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,971 |
0 |
0 |
0 |
32,928 |
0 |
14,554 |
1,133 |
bash |
10 |
no-host |
configure.cpython |
2,242,648 |
0 |
0 |
0 |
32,992 |
0 |
14,713 |
1,051 |
dash |
18 |
no-host |
configure.cpython |
6,203,843 |
1 |
0 |
0 |
27,512 |
0 |
13,259 |
1,178 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,857 |
0 |
0 |
0 |
27,520 |
0 |
13,220 |
1,090 |
osh-native |
34 |
no-host |
configure.cpython |
2,219,549 |
0 |
0 |
0 |
27,520 |
0 |
13,319 |
1,171 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,240 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
164 |
bash |
12 |
no-host |
configure.ocaml |
391,253 |
0 |
0 |
0 |
5,112 |
0 |
1,943 |
158 |
dash |
20 |
no-host |
configure.ocaml |
645,582 |
0 |
0 |
0 |
5,112 |
0 |
1,848 |
218 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,484 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
242 |
osh-native |
36 |
no-host |
configure.ocaml |
412,491 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
147 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,573 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,605 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,025 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,909 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,480 |
2 |
0 |
0 |
42,400 |
0 |
18,600 |
1,104 |
bash |
11 |
no-host |
configure.util-linux |
2,262,865 |
0 |
0 |
0 |
42,592 |
0 |
17,525 |
1,192 |
dash |
19 |
no-host |
configure.util-linux |
5,356,548 |
13 |
0 |
0 |
39,136 |
0 |
16,969 |
1,284 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,796 |
0 |
0 |
0 |
39,128 |
0 |
16,926 |
1,143 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,010 |
0 |
0 |
0 |
39,136 |
0 |
16,947 |
1,033 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,358 |
0 |
0 |
0 |
4,120 |
0 |
870 |
89 |
bash |
14 |
no-host |
configure.yash |
243,032 |
0 |
0 |
0 |
3,720 |
0 |
866 |
84 |
dash |
22 |
no-host |
configure.yash |
387,372 |
0 |
0 |
0 |
3,728 |
0 |
853 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,602 |
0 |
0 |
0 |
3,736 |
0 |
848 |
78 |
osh-native |
38 |
no-host |
configure.yash |
258,059 |
0 |
0 |
0 |
3,736 |
0 |
850 |
90 |
osh-native-souffle |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,739 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
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