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 |
529 |
22 |
21 |
33.49 |
1.38 |
| bin-true |
no-host |
640 |
456 |
2,482 |
828 |
828 |
3.87 |
1.29 |
| configure.cpython |
no-host |
13,728 |
13,804 |
29,615 |
14,539 |
14,880 |
2.16 |
1.06 |
| configure.ocaml |
no-host |
3,665 |
3,652 |
4,733 |
3,804 |
3,726 |
1.29 |
1.04 |
| configure.tcc |
no-host |
47 |
42 |
222 |
50 |
50 |
4.76 |
1.08 |
| configure.util-linux |
no-host |
12,584 |
13,321 |
32,283 |
13,769 |
13,929 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,716 |
1,656 |
2,423 |
1,776 |
1,738 |
1.41 |
1.04 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.41 |
2.32 |
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,395 |
1,161 |
24,865 |
3,493 |
3,347 |
10.38 |
1.46 |
| bin-true |
no-host |
102,967 |
49,388 |
836,074 |
140,260 |
136,205 |
8.12 |
1.36 |
| configure.cpython |
no-host |
1,620,704 |
1,648,281 |
5,959,915 |
1,798,431 |
1,799,548 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
298,756 |
280,702 |
556,272 |
316,740 |
315,669 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,199 |
4,205 |
23,748 |
5,922 |
5,890 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,537,601 |
1,694,564 |
4,961,614 |
1,720,896 |
1,710,356 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,609 |
159,594 |
315,536 |
179,762 |
179,254 |
1.82 |
1.04 |
| hello-world |
no-host |
153 |
84 |
3,877 |
382 |
381 |
25.34 |
2.50 |
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 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
828 |
1 |
2 |
2.6 |
8.9 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,539 |
1 |
63 |
15.2 |
34.3 |
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,769 |
3 |
60 |
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,804 |
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,776 |
1 |
2 |
2.6 |
33.3 |
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 |
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.7 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
828 |
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,880 |
1 |
66 |
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,929 |
3 |
61 |
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,726 |
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.0 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,738 |
1 |
2 |
2.6 |
33.1 |
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 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
529 |
463 |
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 |
11 |
11 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
640 |
325 |
353 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
456 |
282 |
179 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,482 |
901 |
1,845 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
828 |
301 |
544 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
828 |
302 |
547 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,728 |
7,371 |
6,737 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,804 |
7,448 |
6,763 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,615 |
16,191 |
15,414 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,539 |
7,206 |
7,640 |
34.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,880 |
7,349 |
7,720 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,665 |
1,449 |
1,255 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,652 |
1,460 |
1,215 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,733 |
2,151 |
1,812 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,804 |
1,463 |
1,382 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,726 |
1,439 |
1,327 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
29 |
18 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
164 |
61 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
20 |
30 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,584 |
6,349 |
6,714 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,321 |
6,357 |
7,466 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,283 |
20,122 |
13,236 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,769 |
6,194 |
7,821 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,929 |
6,224 |
7,791 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,716 |
933 |
785 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,656 |
905 |
753 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,423 |
1,431 |
1,033 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,776 |
990 |
790 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,738 |
942 |
800 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
45 |
16 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,395 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,865 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,493 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,347 |
0 |
0 |
0 |
16 |
0 |
38 |
3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
102,967 |
0 |
0 |
0 |
8 |
0 |
1,971 |
134 |
bash |
| 9 |
no-host |
bin-true |
49,388 |
0 |
0 |
0 |
8 |
0 |
2,966 |
70 |
dash |
| 17 |
no-host |
bin-true |
836,074 |
0 |
0 |
0 |
8 |
0 |
1,979 |
232 |
osh-cpython |
| 25 |
no-host |
bin-true |
140,260 |
0 |
0 |
0 |
16 |
0 |
1,967 |
98 |
osh-native |
| 33 |
no-host |
bin-true |
136,205 |
0 |
0 |
0 |
16 |
0 |
1,978 |
142 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,620,704 |
0 |
0 |
0 |
25,272 |
0 |
14,030 |
1,196 |
bash |
| 10 |
no-host |
configure.cpython |
1,648,281 |
1 |
0 |
0 |
25,272 |
0 |
14,086 |
1,217 |
dash |
| 18 |
no-host |
configure.cpython |
5,959,915 |
0 |
0 |
0 |
25,272 |
0 |
12,868 |
1,243 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,798,431 |
0 |
0 |
0 |
25,280 |
0 |
12,849 |
1,212 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,799,548 |
0 |
0 |
0 |
25,280 |
0 |
12,877 |
1,113 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,756 |
0 |
0 |
0 |
4,432 |
0 |
2,005 |
234 |
bash |
| 12 |
no-host |
configure.ocaml |
280,702 |
0 |
0 |
0 |
4,432 |
0 |
2,090 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
556,272 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
206 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,740 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
199 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,669 |
0 |
0 |
0 |
4,440 |
0 |
1,989 |
199 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,199 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,748 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,922 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,890 |
0 |
0 |
0 |
96 |
0 |
47 |
12 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,537,601 |
0 |
0 |
0 |
35,944 |
0 |
18,908 |
1,255 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,564 |
0 |
0 |
0 |
35,936 |
0 |
17,072 |
1,323 |
dash |
| 19 |
no-host |
configure.util-linux |
4,961,614 |
7 |
0 |
0 |
35,952 |
0 |
17,523 |
1,115 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,720,896 |
4 |
0 |
0 |
35,952 |
0 |
17,523 |
1,112 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,710,356 |
0 |
0 |
0 |
35,952 |
0 |
17,514 |
1,092 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,609 |
0 |
0 |
0 |
3,616 |
0 |
887 |
125 |
bash |
| 14 |
no-host |
configure.yash |
159,594 |
0 |
0 |
0 |
3,616 |
0 |
997 |
134 |
dash |
| 22 |
no-host |
configure.yash |
315,536 |
0 |
0 |
0 |
3,616 |
0 |
861 |
122 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,762 |
0 |
0 |
0 |
3,624 |
0 |
856 |
156 |
osh-native |
| 38 |
no-host |
configure.yash |
179,254 |
0 |
0 |
0 |
3,624 |
0 |
854 |
121 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,877 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
382 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
381 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host