oils.pub
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 |
16 |
9 |
556 |
22 |
21 |
35.25 |
1.41 |
| bin-true |
no-host |
622 |
441 |
2,466 |
813 |
831 |
3.96 |
1.31 |
| configure.cpython |
no-host |
14,353 |
14,247 |
30,831 |
15,048 |
15,427 |
2.15 |
1.05 |
| configure.ocaml |
no-host |
3,807 |
3,732 |
4,839 |
3,915 |
3,856 |
1.27 |
1.03 |
| configure.tcc |
no-host |
57 |
43 |
228 |
49 |
49 |
4.00 |
0.86 |
| configure.util-linux |
no-host |
13,049 |
13,826 |
33,970 |
14,279 |
14,108 |
2.60 |
1.09 |
| configure.yash |
no-host |
1,769 |
1,700 |
2,548 |
1,783 |
1,747 |
1.44 |
1.01 |
| hello-world |
no-host |
1 |
1 |
70 |
3 |
3 |
56.27 |
2.33 |
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,377 |
1,198 |
24,516 |
3,472 |
3,364 |
10.31 |
1.46 |
| bin-true |
no-host |
98,933 |
49,409 |
829,220 |
138,280 |
133,270 |
8.38 |
1.40 |
| configure.cpython |
no-host |
1,626,201 |
1,634,534 |
5,973,291 |
1,809,254 |
1,791,619 |
3.67 |
1.11 |
| configure.ocaml |
no-host |
298,337 |
280,786 |
555,760 |
317,560 |
316,569 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,218 |
4,236 |
23,815 |
5,963 |
5,857 |
4.56 |
1.14 |
| configure.util-linux |
no-host |
1,529,219 |
1,697,311 |
4,968,471 |
1,714,845 |
1,711,242 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,766 |
159,508 |
315,866 |
179,253 |
178,586 |
1.82 |
1.03 |
| hello-world |
no-host |
151 |
85 |
3,890 |
385 |
380 |
25.76 |
2.55 |
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.8 |
3,826 |
3,826 |
0 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.5 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,048 |
1 |
68 |
15.2 |
34.4 |
1,782,989 |
46,101 |
25,356 |
91,621 |
885,111 |
806,257 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,279 |
3 |
62 |
21.4 |
39.9 |
2,707,122 |
126,354 |
66,586 |
113,462 |
1,294,567 |
1,299,093 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,915 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,818 |
70,839 |
71,216 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,783 |
1 |
2 |
2.6 |
33.1 |
140,017 |
8,080 |
6,714 |
6,525 |
68,347 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,368 |
64,438 |
42,639 |
4,561 |
54,471 |
57,336 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.7 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
831 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,427 |
1 |
69 |
15.2 |
34.5 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,108 |
3 |
64 |
21.4 |
40.0 |
2,707,122 |
126,347 |
66,579 |
113,464 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,856 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,747 |
1 |
2 |
2.6 |
33.3 |
140,017 |
8,069 |
6,703 |
6,527 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,367 |
64,433 |
42,634 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,268 |
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 |
16 |
7 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
556 |
491 |
69 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
9 |
13 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
622 |
309 |
350 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
441 |
270 |
177 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,466 |
895 |
1,842 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
813 |
298 |
531 |
8.5 |
osh-native |
| 33 |
no-host |
bin-true |
831 |
313 |
534 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,353 |
7,692 |
7,045 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,247 |
7,713 |
6,928 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
30,831 |
16,933 |
16,009 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,048 |
7,505 |
7,805 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,427 |
7,674 |
7,888 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,807 |
1,501 |
1,346 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,732 |
1,504 |
1,252 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,839 |
2,195 |
1,879 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,915 |
1,538 |
1,411 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,856 |
1,502 |
1,393 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
57 |
35 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
26 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
228 |
164 |
69 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
26 |
23 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,049 |
6,623 |
6,879 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,826 |
6,674 |
7,644 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
33,970 |
21,293 |
13,826 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,279 |
6,594 |
7,891 |
39.9 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,108 |
6,433 |
7,755 |
40.0 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,769 |
960 |
816 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,700 |
942 |
759 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,548 |
1,494 |
1,098 |
33.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,783 |
961 |
824 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,747 |
953 |
796 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
70 |
49 |
21 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
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,377 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,198 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,516 |
0 |
0 |
0 |
8 |
0 |
44 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,472 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,364 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
98,933 |
0 |
0 |
0 |
8 |
0 |
1,984 |
72 |
bash |
| 9 |
no-host |
bin-true |
49,409 |
0 |
0 |
0 |
8 |
0 |
2,989 |
40 |
dash |
| 17 |
no-host |
bin-true |
829,220 |
0 |
0 |
0 |
8 |
0 |
1,992 |
127 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,280 |
0 |
0 |
0 |
16 |
0 |
1,984 |
69 |
osh-native |
| 33 |
no-host |
bin-true |
133,270 |
0 |
0 |
0 |
16 |
0 |
1,982 |
98 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,626,201 |
0 |
0 |
0 |
25,272 |
0 |
14,060 |
1,037 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,534 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
1,024 |
dash |
| 18 |
no-host |
configure.cpython |
5,973,291 |
0 |
0 |
0 |
25,272 |
0 |
12,875 |
871 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,809,254 |
0 |
0 |
0 |
25,280 |
0 |
12,844 |
993 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,791,619 |
1 |
0 |
0 |
25,280 |
0 |
12,851 |
997 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,337 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
209 |
bash |
| 12 |
no-host |
configure.ocaml |
280,786 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
555,760 |
0 |
0 |
0 |
4,432 |
0 |
1,909 |
236 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,560 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
179 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,569 |
0 |
0 |
0 |
4,440 |
0 |
1,990 |
187 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,218 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,236 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,815 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,963 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,857 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,529,219 |
0 |
0 |
0 |
35,944 |
0 |
18,979 |
1,192 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,311 |
0 |
0 |
0 |
35,936 |
0 |
17,036 |
1,274 |
dash |
| 19 |
no-host |
configure.util-linux |
4,968,471 |
1 |
0 |
0 |
35,952 |
0 |
17,544 |
846 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,845 |
0 |
0 |
0 |
35,952 |
0 |
17,459 |
1,071 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,711,242 |
0 |
0 |
0 |
35,952 |
0 |
17,492 |
1,154 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,766 |
0 |
0 |
0 |
3,616 |
0 |
875 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,508 |
0 |
0 |
0 |
3,616 |
0 |
996 |
97 |
dash |
| 22 |
no-host |
configure.yash |
315,866 |
1 |
0 |
0 |
3,616 |
0 |
858 |
93 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,253 |
0 |
0 |
0 |
3,624 |
0 |
855 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
178,586 |
0 |
0 |
0 |
3,624 |
0 |
859 |
113 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,890 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
380 |
0 |
0 |
0 |
16 |
0 |
0 |
0 |
osh-native-souffle |
Shell and Host