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 |
540 |
22 |
21 |
34.64 |
1.40 |
| bin-true |
no-host |
607 |
438 |
2,450 |
796 |
797 |
4.04 |
1.31 |
| configure.cpython |
no-host |
14,168 |
14,159 |
29,945 |
14,699 |
15,166 |
2.11 |
1.04 |
| configure.ocaml |
no-host |
3,743 |
3,668 |
4,679 |
3,809 |
3,845 |
1.25 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
221 |
50 |
50 |
4.82 |
1.08 |
| configure.util-linux |
no-host |
12,868 |
13,505 |
32,717 |
13,965 |
14,102 |
2.54 |
1.09 |
| configure.yash |
no-host |
1,718 |
1,667 |
2,432 |
1,745 |
1,780 |
1.42 |
1.02 |
| hello-world |
no-host |
1 |
1 |
63 |
3 |
3 |
51.34 |
2.38 |
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,401 |
1,176 |
24,910 |
3,480 |
3,365 |
10.37 |
1.45 |
| bin-true |
no-host |
100,889 |
49,382 |
829,706 |
136,239 |
135,228 |
8.22 |
1.35 |
| configure.cpython |
no-host |
1,629,644 |
1,639,084 |
6,009,664 |
1,807,799 |
1,797,145 |
3.69 |
1.11 |
| configure.ocaml |
no-host |
298,539 |
280,530 |
558,264 |
316,322 |
316,062 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,192 |
4,224 |
23,857 |
5,984 |
5,870 |
4.59 |
1.15 |
| configure.util-linux |
no-host |
1,536,595 |
1,687,575 |
4,988,948 |
1,723,708 |
1,701,893 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,933 |
159,521 |
315,959 |
179,184 |
179,066 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
83 |
3,875 |
386 |
379 |
25.49 |
2.54 |
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.9 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
2.6 |
8.5 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,699 |
1 |
66 |
15.2 |
34.6 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,965 |
3 |
65 |
21.4 |
39.5 |
2,707,122 |
126,354 |
66,586 |
113,463 |
1,294,568 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,809 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,745 |
1 |
2 |
2.6 |
33.6 |
140,017 |
8,080 |
6,714 |
6,526 |
68,348 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
10.0 |
116,368 |
64,438 |
42,639 |
4,562 |
54,472 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
2.6 |
8.5 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,166 |
3 |
70 |
15.2 |
34.8 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,102 |
3 |
62 |
21.4 |
39.5 |
2,707,122 |
126,347 |
66,579 |
113,465 |
1,294,568 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,845 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,780 |
1 |
2 |
2.6 |
33.5 |
140,017 |
8,069 |
6,703 |
6,528 |
68,348 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,367 |
64,433 |
42,634 |
4,563 |
54,472 |
57,332 |
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 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
540 |
478 |
66 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
607 |
299 |
347 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
268 |
176 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,450 |
889 |
1,832 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
796 |
298 |
516 |
8.5 |
osh-native |
| 33 |
no-host |
bin-true |
797 |
308 |
505 |
8.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,168 |
7,598 |
6,928 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,159 |
7,682 |
6,844 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,945 |
16,258 |
15,694 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,699 |
7,458 |
7,537 |
34.6 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,166 |
7,578 |
7,711 |
34.8 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,743 |
1,533 |
1,248 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,668 |
1,479 |
1,212 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,679 |
2,102 |
1,802 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,809 |
1,519 |
1,329 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,845 |
1,511 |
1,338 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
25 |
21 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
221 |
144 |
81 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
24 |
26 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
25 |
25 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,868 |
6,708 |
6,627 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,505 |
6,524 |
7,469 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,717 |
20,649 |
13,164 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,965 |
6,474 |
7,726 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,102 |
6,369 |
7,812 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,718 |
964 |
762 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,667 |
962 |
706 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,432 |
1,444 |
1,030 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,745 |
962 |
786 |
33.6 |
osh-native |
| 38 |
no-host |
configure.yash |
1,780 |
983 |
799 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
63 |
43 |
21 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
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,401 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,910 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,480 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,365 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,889 |
0 |
0 |
0 |
8 |
0 |
1,989 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,382 |
0 |
0 |
0 |
8 |
0 |
2,976 |
48 |
dash |
| 17 |
no-host |
bin-true |
829,706 |
0 |
0 |
0 |
8 |
0 |
1,983 |
126 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,239 |
0 |
0 |
0 |
16 |
0 |
1,967 |
95 |
osh-native |
| 33 |
no-host |
bin-true |
135,228 |
0 |
0 |
0 |
16 |
0 |
1,980 |
89 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,629,644 |
0 |
0 |
0 |
25,272 |
0 |
14,036 |
1,081 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,084 |
0 |
0 |
0 |
25,272 |
0 |
14,063 |
1,087 |
dash |
| 18 |
no-host |
configure.cpython |
6,009,664 |
0 |
0 |
0 |
25,272 |
0 |
12,865 |
891 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,807,799 |
0 |
0 |
0 |
25,280 |
0 |
12,824 |
1,029 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,797,145 |
0 |
0 |
0 |
25,280 |
0 |
12,836 |
1,069 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,539 |
0 |
0 |
0 |
4,432 |
0 |
2,007 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,530 |
0 |
0 |
0 |
4,432 |
0 |
2,097 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
558,264 |
0 |
0 |
0 |
4,432 |
0 |
1,919 |
187 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,322 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
204 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,062 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
167 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,192 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,224 |
0 |
0 |
0 |
88 |
0 |
52 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
23,857 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,984 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,870 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,595 |
0 |
0 |
0 |
35,944 |
0 |
18,989 |
1,121 |
bash |
| 11 |
no-host |
configure.util-linux |
1,687,575 |
0 |
0 |
0 |
35,936 |
0 |
16,984 |
1,306 |
dash |
| 19 |
no-host |
configure.util-linux |
4,988,948 |
2 |
0 |
0 |
35,952 |
0 |
17,544 |
922 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,708 |
2 |
0 |
0 |
35,952 |
0 |
17,518 |
1,035 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,701,893 |
0 |
0 |
0 |
35,952 |
0 |
17,493 |
1,072 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,933 |
0 |
0 |
0 |
3,616 |
0 |
875 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,521 |
0 |
0 |
0 |
3,616 |
0 |
999 |
108 |
dash |
| 22 |
no-host |
configure.yash |
315,959 |
0 |
0 |
0 |
3,616 |
0 |
859 |
108 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,184 |
0 |
0 |
0 |
3,624 |
0 |
855 |
100 |
osh-native |
| 38 |
no-host |
configure.yash |
179,066 |
0 |
0 |
0 |
3,624 |
0 |
850 |
103 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
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,875 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
379 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host