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 |
571 |
23 |
22 |
34.88 |
1.39 |
| bin-true |
no-host |
623 |
446 |
2,565 |
835 |
826 |
4.11 |
1.34 |
| configure.cpython |
no-host |
14,344 |
14,652 |
32,083 |
15,490 |
15,481 |
2.24 |
1.08 |
| configure.ocaml |
no-host |
3,833 |
3,747 |
4,887 |
3,899 |
3,888 |
1.27 |
1.02 |
| configure.tcc |
no-host |
53 |
43 |
233 |
51 |
51 |
4.40 |
0.95 |
| configure.util-linux |
no-host |
13,080 |
13,965 |
34,601 |
14,472 |
14,462 |
2.65 |
1.11 |
| configure.yash |
no-host |
1,806 |
1,750 |
2,597 |
1,812 |
1,825 |
1.44 |
1.00 |
| hello-world |
no-host |
1 |
1 |
66 |
3 |
3 |
51.85 |
2.40 |
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,156 |
24,536 |
3,497 |
3,352 |
10.11 |
1.44 |
| bin-true |
no-host |
100,909 |
49,359 |
825,587 |
139,282 |
138,268 |
8.18 |
1.38 |
| configure.cpython |
no-host |
1,624,843 |
1,640,642 |
5,978,898 |
1,818,628 |
1,775,054 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
298,803 |
280,845 |
556,025 |
317,182 |
315,481 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,243 |
4,183 |
23,799 |
5,972 |
5,908 |
4.54 |
1.14 |
| configure.util-linux |
no-host |
1,529,532 |
1,699,914 |
4,962,604 |
1,716,390 |
1,711,410 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,369 |
159,575 |
315,971 |
179,067 |
178,672 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
88 |
3,897 |
388 |
377 |
25.47 |
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 |
7.1 |
3,826 |
3,826 |
0 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
835 |
1 |
2 |
2.6 |
8.9 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,490 |
1 |
70 |
15.2 |
34.3 |
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,472 |
3 |
66 |
21.4 |
39.7 |
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,899 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,476 |
6,519 |
7,818 |
70,839 |
71,216 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
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,812 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,080 |
6,714 |
6,525 |
68,347 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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.6 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
826 |
1 |
2 |
2.6 |
8.4 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,481 |
1 |
69 |
15.2 |
34.7 |
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,462 |
3 |
65 |
21.4 |
39.5 |
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,888 |
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 |
51 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,825 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,069 |
6,703 |
6,527 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.4 |
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 |
8 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
571 |
510 |
64 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
11 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
623 |
323 |
338 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
446 |
271 |
180 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,565 |
923 |
1,925 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
835 |
292 |
559 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
826 |
302 |
542 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,344 |
7,662 |
7,066 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,652 |
7,864 |
7,193 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
32,083 |
17,612 |
16,624 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,490 |
7,700 |
8,097 |
34.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,481 |
7,650 |
7,939 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,833 |
1,575 |
1,295 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,747 |
1,509 |
1,260 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,887 |
2,182 |
1,939 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,899 |
1,546 |
1,396 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,888 |
1,534 |
1,392 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
53 |
25 |
29 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
21 |
23 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
233 |
171 |
66 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
26 |
25 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
51 |
27 |
25 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,080 |
6,776 |
6,765 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,965 |
6,646 |
7,812 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
34,601 |
21,529 |
14,219 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,472 |
6,663 |
8,051 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,462 |
6,524 |
8,011 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,806 |
972 |
841 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,750 |
985 |
765 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,597 |
1,517 |
1,124 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,812 |
964 |
850 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,825 |
1,015 |
810 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
66 |
51 |
16 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
7.1 |
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,426 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,536 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,497 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,352 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,909 |
0 |
0 |
0 |
8 |
0 |
1,989 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,359 |
0 |
0 |
0 |
8 |
0 |
2,974 |
55 |
dash |
| 17 |
no-host |
bin-true |
825,587 |
0 |
0 |
0 |
8 |
0 |
1,986 |
141 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,282 |
0 |
0 |
0 |
16 |
0 |
1,974 |
84 |
osh-native |
| 33 |
no-host |
bin-true |
138,268 |
0 |
0 |
0 |
16 |
0 |
1,978 |
104 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,843 |
0 |
0 |
0 |
25,272 |
0 |
14,036 |
1,115 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,642 |
0 |
0 |
0 |
25,272 |
0 |
14,093 |
1,039 |
dash |
| 18 |
no-host |
configure.cpython |
5,978,898 |
0 |
0 |
0 |
25,272 |
0 |
12,856 |
919 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,818,628 |
0 |
0 |
0 |
25,280 |
0 |
12,836 |
1,071 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,775,054 |
0 |
0 |
0 |
25,280 |
0 |
12,824 |
1,044 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,803 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,845 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
556,025 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
193 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,182 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
179 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,481 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
188 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,243 |
0 |
0 |
0 |
80 |
0 |
51 |
7 |
bash |
| 13 |
no-host |
configure.tcc |
4,183 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,799 |
0 |
0 |
0 |
88 |
0 |
53 |
3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,972 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,908 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,529,532 |
0 |
0 |
0 |
35,944 |
0 |
19,002 |
1,141 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,914 |
1 |
0 |
0 |
35,936 |
0 |
17,095 |
1,197 |
dash |
| 19 |
no-host |
configure.util-linux |
4,962,604 |
1 |
0 |
0 |
35,960 |
0 |
17,535 |
832 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,716,390 |
0 |
0 |
0 |
35,952 |
0 |
17,510 |
1,020 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,711,410 |
1 |
0 |
0 |
35,952 |
0 |
17,491 |
1,066 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,369 |
0 |
0 |
0 |
3,616 |
0 |
875 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,575 |
0 |
0 |
0 |
3,616 |
0 |
996 |
103 |
dash |
| 22 |
no-host |
configure.yash |
315,971 |
0 |
0 |
0 |
3,616 |
0 |
862 |
104 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,067 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
178,672 |
0 |
0 |
0 |
3,624 |
0 |
855 |
107 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,897 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host