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 |
524 |
22 |
21 |
32.29 |
1.38 |
| bin-true |
no-host |
648 |
458 |
2,492 |
828 |
836 |
3.85 |
1.28 |
| configure.cpython |
no-host |
13,936 |
14,004 |
29,687 |
14,811 |
15,243 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,698 |
3,640 |
4,670 |
3,825 |
3,896 |
1.26 |
1.03 |
| configure.tcc |
no-host |
46 |
42 |
220 |
50 |
49 |
4.74 |
1.08 |
| configure.util-linux |
no-host |
12,893 |
13,505 |
32,402 |
13,967 |
14,208 |
2.51 |
1.08 |
| configure.yash |
no-host |
1,731 |
1,669 |
2,458 |
1,785 |
1,749 |
1.42 |
1.03 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.14 |
2.34 |
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,423 |
1,183 |
24,733 |
3,443 |
3,331 |
10.21 |
1.42 |
| bin-true |
no-host |
101,970 |
49,364 |
830,556 |
134,223 |
137,240 |
8.15 |
1.32 |
| configure.cpython |
no-host |
1,619,968 |
1,645,132 |
5,949,062 |
1,805,563 |
1,795,551 |
3.67 |
1.11 |
| configure.ocaml |
no-host |
299,169 |
280,961 |
554,978 |
316,248 |
315,954 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,239 |
4,207 |
23,740 |
5,986 |
5,851 |
4.53 |
1.14 |
| configure.util-linux |
no-host |
1,531,501 |
1,692,535 |
4,953,218 |
1,720,510 |
1,709,673 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,206 |
159,594 |
314,702 |
179,099 |
178,640 |
1.82 |
1.03 |
| hello-world |
no-host |
150 |
86 |
3,876 |
386 |
375 |
25.84 |
2.57 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
828 |
1 |
2 |
2.6 |
8.7 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,811 |
1 |
71 |
15.2 |
34.5 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,967 |
3 |
66 |
21.4 |
39.7 |
2,707,121 |
126,354 |
66,586 |
113,463 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,825 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.3 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,785 |
1 |
2 |
2.6 |
33.1 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.7 |
116,367 |
64,438 |
42,639 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
836 |
1 |
2 |
2.6 |
8.4 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,243 |
1 |
71 |
15.2 |
34.4 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,208 |
5 |
67 |
21.4 |
39.6 |
2,707,121 |
126,347 |
66,579 |
113,465 |
1,294,567 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,896 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,749 |
1 |
2 |
2.6 |
33.4 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,366 |
64,433 |
42,634 |
4,563 |
54,471 |
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.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
524 |
473 |
55 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
14 |
7 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
648 |
318 |
368 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
458 |
282 |
183 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,492 |
904 |
1,856 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
828 |
291 |
555 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
836 |
311 |
542 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,936 |
7,496 |
6,816 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,004 |
7,516 |
6,900 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,687 |
16,248 |
15,421 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,811 |
7,309 |
7,813 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,243 |
7,558 |
7,884 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,698 |
1,491 |
1,246 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,640 |
1,473 |
1,191 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,670 |
2,071 |
1,824 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,825 |
1,475 |
1,392 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,896 |
1,543 |
1,396 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
146 |
79 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
24 |
26 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
25 |
24 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,893 |
6,567 |
6,792 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,505 |
6,472 |
7,539 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,402 |
20,197 |
13,284 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,967 |
6,267 |
7,948 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,208 |
6,476 |
7,826 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,731 |
973 |
761 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,669 |
903 |
762 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,458 |
1,440 |
1,062 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,785 |
941 |
847 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,749 |
997 |
755 |
33.4 |
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 |
60 |
40 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
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,423 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,183 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,733 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,443 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,331 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,970 |
0 |
0 |
0 |
8 |
0 |
1,983 |
117 |
bash |
| 9 |
no-host |
bin-true |
49,364 |
0 |
0 |
0 |
8 |
0 |
2,969 |
63 |
dash |
| 17 |
no-host |
bin-true |
830,556 |
0 |
0 |
0 |
8 |
0 |
1,979 |
301 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,223 |
0 |
0 |
0 |
16 |
0 |
1,972 |
111 |
osh-native |
| 33 |
no-host |
bin-true |
137,240 |
0 |
0 |
0 |
16 |
0 |
1,971 |
149 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,619,968 |
0 |
0 |
0 |
25,272 |
0 |
14,039 |
1,287 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,132 |
1 |
0 |
0 |
25,272 |
0 |
14,083 |
1,258 |
dash |
| 18 |
no-host |
configure.cpython |
5,949,062 |
0 |
0 |
0 |
25,272 |
0 |
12,881 |
1,201 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,805,563 |
0 |
0 |
0 |
25,280 |
0 |
12,870 |
1,280 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,795,551 |
0 |
0 |
0 |
25,280 |
0 |
12,837 |
1,141 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,169 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
215 |
bash |
| 12 |
no-host |
configure.ocaml |
280,961 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
210 |
dash |
| 20 |
no-host |
configure.ocaml |
554,978 |
0 |
0 |
0 |
4,432 |
0 |
1,920 |
215 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,248 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
210 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,954 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
197 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,239 |
0 |
0 |
0 |
80 |
0 |
49 |
6 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
23,740 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,986 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,851 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,531,501 |
0 |
0 |
0 |
35,944 |
0 |
18,814 |
1,226 |
bash |
| 11 |
no-host |
configure.util-linux |
1,692,535 |
0 |
0 |
0 |
35,936 |
0 |
16,941 |
1,353 |
dash |
| 19 |
no-host |
configure.util-linux |
4,953,218 |
1 |
0 |
0 |
35,944 |
0 |
17,576 |
1,132 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,720,510 |
0 |
0 |
0 |
35,952 |
0 |
17,512 |
1,097 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,709,673 |
1 |
0 |
0 |
35,952 |
0 |
17,462 |
1,059 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,206 |
0 |
0 |
0 |
3,616 |
0 |
888 |
145 |
bash |
| 14 |
no-host |
configure.yash |
159,594 |
0 |
0 |
0 |
3,616 |
0 |
999 |
128 |
dash |
| 22 |
no-host |
configure.yash |
314,702 |
0 |
0 |
0 |
3,616 |
0 |
858 |
122 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,099 |
0 |
0 |
0 |
3,624 |
0 |
857 |
157 |
osh-native |
| 38 |
no-host |
configure.yash |
178,640 |
0 |
0 |
0 |
3,624 |
0 |
857 |
161 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,876 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host