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 |
21 |
21 |
33.20 |
1.36 |
| bin-true |
no-host |
611 |
445 |
2,461 |
807 |
810 |
4.03 |
1.32 |
| configure.cpython |
no-host |
13,590 |
13,768 |
29,368 |
14,422 |
14,855 |
2.16 |
1.06 |
| configure.ocaml |
no-host |
3,617 |
3,576 |
4,590 |
3,684 |
3,681 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
218 |
49 |
48 |
4.79 |
1.07 |
| configure.util-linux |
no-host |
12,384 |
13,430 |
31,820 |
13,430 |
13,497 |
2.57 |
1.08 |
| configure.yash |
no-host |
1,690 |
1,622 |
2,399 |
1,695 |
1,691 |
1.42 |
1.00 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
50.77 |
2.42 |
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,426 |
1,160 |
24,909 |
3,466 |
3,380 |
10.27 |
1.43 |
| bin-true |
no-host |
102,943 |
49,379 |
835,992 |
138,254 |
136,301 |
8.12 |
1.34 |
| configure.cpython |
no-host |
1,622,220 |
1,645,857 |
5,964,692 |
1,810,635 |
1,806,367 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
298,914 |
280,700 |
556,813 |
317,309 |
315,513 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,218 |
4,217 |
23,743 |
6,000 |
5,912 |
4.55 |
1.15 |
| configure.util-linux |
no-host |
1,535,382 |
1,697,320 |
4,960,607 |
1,717,843 |
1,707,407 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,557 |
159,517 |
315,606 |
179,371 |
178,516 |
1.82 |
1.03 |
| hello-world |
no-host |
149 |
87 |
3,868 |
385 |
378 |
25.96 |
2.58 |
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 |
807 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,422 |
2 |
65 |
15.2 |
34.5 |
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,430 |
3 |
58 |
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,684 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,695 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,080 |
6,714 |
6,526 |
68,348 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.8 |
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 |
810 |
1 |
2 |
2.6 |
8.4 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,855 |
1 |
63 |
15.2 |
34.4 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,497 |
3 |
58 |
21.4 |
39.7 |
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,681 |
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 |
48 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,691 |
1 |
2 |
2.6 |
33.4 |
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.0 |
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 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
524 |
465 |
62 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
611 |
310 |
340 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
273 |
178 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,461 |
880 |
1,846 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
807 |
310 |
512 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
810 |
289 |
537 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,590 |
7,307 |
6,657 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,768 |
7,492 |
6,659 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,368 |
16,036 |
15,298 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,422 |
7,185 |
7,538 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,855 |
7,385 |
7,460 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,617 |
1,450 |
1,207 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,576 |
1,435 |
1,164 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,590 |
2,074 |
1,736 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,684 |
1,457 |
1,269 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,681 |
1,426 |
1,295 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
218 |
158 |
63 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
21 |
27 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,384 |
6,611 |
6,228 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,430 |
6,395 |
7,526 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
31,820 |
20,003 |
12,883 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,430 |
6,321 |
7,342 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,497 |
6,177 |
7,394 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,690 |
925 |
774 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,622 |
933 |
691 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,399 |
1,430 |
1,010 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,695 |
928 |
770 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,691 |
945 |
750 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
38 |
22 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
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,426 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,909 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,466 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,380 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
102,943 |
0 |
0 |
0 |
8 |
0 |
1,992 |
53 |
bash |
| 9 |
no-host |
bin-true |
49,379 |
0 |
0 |
0 |
8 |
0 |
2,975 |
48 |
dash |
| 17 |
no-host |
bin-true |
835,992 |
0 |
0 |
0 |
8 |
0 |
1,991 |
126 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,254 |
0 |
0 |
0 |
16 |
0 |
1,975 |
94 |
osh-native |
| 33 |
no-host |
bin-true |
136,301 |
0 |
0 |
0 |
16 |
0 |
1,977 |
128 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,622,220 |
0 |
0 |
0 |
25,272 |
0 |
14,038 |
1,012 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,857 |
0 |
0 |
0 |
25,272 |
0 |
14,151 |
1,027 |
dash |
| 18 |
no-host |
configure.cpython |
5,964,692 |
0 |
0 |
0 |
25,272 |
0 |
12,870 |
850 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,810,635 |
0 |
0 |
0 |
25,280 |
0 |
12,857 |
1,090 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,806,367 |
0 |
0 |
0 |
25,280 |
0 |
12,856 |
1,003 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,914 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
280,700 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
232 |
dash |
| 20 |
no-host |
configure.ocaml |
556,813 |
1 |
0 |
0 |
4,432 |
0 |
1,920 |
203 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,309 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
216 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,513 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
196 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,218 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,743 |
0 |
0 |
0 |
88 |
0 |
52 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,000 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,912 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,535,382 |
1 |
0 |
0 |
35,944 |
0 |
18,926 |
1,063 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,320 |
1 |
0 |
0 |
35,936 |
0 |
17,063 |
1,252 |
dash |
| 19 |
no-host |
configure.util-linux |
4,960,607 |
2 |
0 |
0 |
35,952 |
0 |
17,524 |
912 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,717,843 |
2 |
0 |
0 |
35,944 |
0 |
17,507 |
1,064 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,407 |
0 |
0 |
0 |
35,944 |
0 |
17,519 |
1,118 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,557 |
0 |
0 |
0 |
3,616 |
0 |
875 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,517 |
0 |
0 |
0 |
3,616 |
0 |
999 |
99 |
dash |
| 22 |
no-host |
configure.yash |
315,606 |
0 |
0 |
0 |
3,616 |
0 |
860 |
99 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,371 |
0 |
0 |
0 |
3,624 |
0 |
857 |
95 |
osh-native |
| 38 |
no-host |
configure.yash |
178,516 |
0 |
0 |
0 |
3,624 |
0 |
857 |
103 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,868 |
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 |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host