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 |
20 |
9 |
449 |
22 |
21 |
22.73 |
1.12 |
bin-true |
no-host |
673 |
544 |
2,254 |
814 |
809 |
3.35 |
1.21 |
configure.cpython |
no-host |
14,858 |
14,878 |
28,518 |
15,066 |
15,139 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,754 |
3,706 |
4,578 |
3,804 |
3,789 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
194 |
49 |
48 |
4.08 |
1.03 |
configure.util-linux |
no-host |
13,907 |
14,756 |
30,802 |
14,254 |
14,157 |
2.21 |
1.02 |
configure.yash |
no-host |
1,820 |
1,746 |
2,421 |
1,805 |
1,795 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
31.99 |
1.88 |
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,518 |
1,100 |
23,356 |
3,165 |
3,098 |
9.28 |
1.26 |
bin-true |
no-host |
107,362 |
66,464 |
775,971 |
125,850 |
125,813 |
7.23 |
1.17 |
configure.cpython |
no-host |
2,225,391 |
2,238,306 |
6,238,846 |
2,224,801 |
2,203,509 |
2.80 |
1.00 |
configure.ocaml |
no-host |
409,923 |
390,873 |
644,402 |
412,305 |
413,034 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,469 |
23,713 |
6,985 |
6,904 |
3.62 |
1.07 |
configure.util-linux |
no-host |
2,102,273 |
2,258,396 |
5,360,801 |
2,006,614 |
1,996,338 |
2.55 |
0.95 |
configure.yash |
no-host |
256,828 |
244,480 |
386,643 |
258,327 |
257,365 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,750 |
351 |
342 |
24.83 |
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,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.6 |
8.1 |
154,745 |
13,282 |
2,884 |
9,745 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,066 |
1 |
60 |
15.0 |
27.4 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,077 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,254 |
3 |
59 |
21.3 |
30.1 |
2,703,495 |
29,153 |
65,897 |
109,676 |
1,320,583 |
1,273,236 |
27,391 |
41 |
131,794 |
1 |
configure.ocaml |
no-host |
3,804 |
1 |
2 |
2.6 |
20.6 |
150,101 |
11,058 |
5,228 |
7,532 |
71,610 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,521 |
14,780 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,805 |
1 |
2 |
2.6 |
24.5 |
139,754 |
8,027 |
6,686 |
6,337 |
70,285 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,329 |
64,537 |
42,747 |
4,572 |
54,525 |
57,232 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
809 |
1 |
2 |
2.6 |
7.6 |
154,744 |
13,070 |
2,822 |
9,746 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,139 |
1 |
59 |
14.9 |
27.4 |
1,772,726 |
49,112 |
28,532 |
86,399 |
908,077 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,157 |
3 |
58 |
21.3 |
30.0 |
2,703,495 |
42,748 |
65,835 |
109,678 |
1,320,583 |
1,273,234 |
27,391 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,789 |
1 |
2 |
2.6 |
20.6 |
150,101 |
10,996 |
5,166 |
7,534 |
71,610 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,523 |
14,780 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,795 |
1 |
2 |
2.6 |
24.2 |
139,754 |
7,965 |
6,624 |
6,339 |
70,285 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,328 |
64,475 |
42,685 |
4,573 |
54,525 |
57,230 |
270 |
3 |
85,370 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
449 |
407 |
45 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
503 |
201 |
3.0 |
bash |
9 |
no-host |
bin-true |
544 |
418 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,254 |
1,446 |
1,067 |
17.8 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
575 |
252 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
809 |
586 |
238 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,858 |
9,153 |
6,098 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,878 |
8,959 |
6,337 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,518 |
17,077 |
13,297 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,066 |
8,807 |
6,524 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,139 |
8,931 |
6,391 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,754 |
1,592 |
1,201 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,706 |
1,486 |
1,238 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,578 |
2,248 |
1,538 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,804 |
1,562 |
1,283 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,789 |
1,576 |
1,249 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
22 |
26 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
36 |
5 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
151 |
46 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,907 |
8,678 |
5,704 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,756 |
9,170 |
6,071 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,802 |
20,748 |
11,111 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,254 |
8,617 |
5,832 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,157 |
8,543 |
5,800 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,820 |
1,043 |
785 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,746 |
1,029 |
720 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,421 |
1,519 |
944 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,805 |
1,002 |
807 |
24.5 |
osh-native |
38 |
no-host |
configure.yash |
1,795 |
1,021 |
777 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
45 |
4 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,356 |
0 |
0 |
0 |
8 |
0 |
45 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,165 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,098 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,362 |
0 |
0 |
0 |
8 |
0 |
1,989 |
52 |
bash |
9 |
no-host |
bin-true |
66,464 |
0 |
0 |
0 |
8 |
0 |
1,991 |
38 |
dash |
17 |
no-host |
bin-true |
775,971 |
0 |
0 |
0 |
8 |
0 |
1,991 |
146 |
osh-cpython |
25 |
no-host |
bin-true |
125,850 |
0 |
0 |
0 |
16 |
0 |
1,989 |
166 |
osh-native |
33 |
no-host |
bin-true |
125,813 |
0 |
0 |
0 |
16 |
0 |
1,987 |
108 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,225,391 |
0 |
0 |
0 |
32,928 |
0 |
14,519 |
1,070 |
bash |
10 |
no-host |
configure.cpython |
2,238,306 |
0 |
0 |
0 |
32,992 |
0 |
14,658 |
1,007 |
dash |
18 |
no-host |
configure.cpython |
6,238,846 |
0 |
0 |
0 |
27,512 |
0 |
13,246 |
1,218 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,801 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
1,030 |
osh-native |
34 |
no-host |
configure.cpython |
2,203,509 |
0 |
0 |
0 |
27,520 |
0 |
13,215 |
1,114 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
409,923 |
0 |
0 |
0 |
5,120 |
0 |
1,940 |
147 |
bash |
12 |
no-host |
configure.ocaml |
390,873 |
0 |
0 |
0 |
5,112 |
0 |
1,874 |
178 |
dash |
20 |
no-host |
configure.ocaml |
644,402 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
275 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,305 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
176 |
osh-native |
36 |
no-host |
configure.ocaml |
413,034 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
182 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,469 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,713 |
0 |
0 |
0 |
96 |
0 |
53 |
18 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,904 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,273 |
0 |
0 |
0 |
42,400 |
0 |
18,613 |
1,155 |
bash |
11 |
no-host |
configure.util-linux |
2,258,396 |
0 |
0 |
0 |
42,592 |
0 |
17,470 |
1,013 |
dash |
19 |
no-host |
configure.util-linux |
5,360,801 |
9 |
0 |
0 |
39,112 |
0 |
16,981 |
1,133 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,006,614 |
0 |
0 |
0 |
39,128 |
0 |
16,950 |
900 |
osh-native |
35 |
no-host |
configure.util-linux |
1,996,338 |
0 |
0 |
0 |
39,136 |
0 |
16,997 |
1,085 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,828 |
0 |
0 |
0 |
4,120 |
0 |
876 |
84 |
bash |
14 |
no-host |
configure.yash |
244,480 |
0 |
0 |
0 |
3,720 |
0 |
872 |
89 |
dash |
22 |
no-host |
configure.yash |
386,643 |
0 |
0 |
0 |
3,728 |
0 |
852 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
258,327 |
0 |
0 |
0 |
3,736 |
0 |
845 |
98 |
osh-native |
38 |
no-host |
configure.yash |
257,365 |
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 |
0 |
1 |
dash |
16 |
no-host |
hello-world |
3,750 |
0 |
0 |
0 |
8 |
0 |
6 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host