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 |
534 |
22 |
21 |
34.10 |
1.42 |
| bin-true |
no-host |
613 |
435 |
2,451 |
789 |
793 |
4.00 |
1.29 |
| configure.cpython |
no-host |
13,792 |
13,855 |
29,294 |
14,670 |
14,756 |
2.12 |
1.06 |
| configure.ocaml |
no-host |
3,664 |
3,617 |
4,645 |
3,718 |
3,728 |
1.27 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
221 |
49 |
49 |
4.79 |
1.06 |
| configure.util-linux |
no-host |
12,492 |
13,333 |
32,070 |
13,852 |
13,700 |
2.57 |
1.11 |
| configure.yash |
no-host |
1,700 |
1,639 |
2,431 |
1,746 |
1,751 |
1.43 |
1.03 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
51.07 |
2.62 |
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,396 |
1,161 |
24,636 |
3,439 |
3,372 |
10.28 |
1.44 |
| bin-true |
no-host |
100,961 |
49,386 |
831,602 |
134,361 |
135,259 |
8.24 |
1.33 |
| configure.cpython |
no-host |
1,626,289 |
1,642,558 |
5,992,037 |
1,822,079 |
1,786,775 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
299,173 |
280,731 |
556,906 |
316,948 |
314,856 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,221 |
4,213 |
23,874 |
5,953 |
5,885 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,534,331 |
1,694,612 |
4,990,981 |
1,723,883 |
1,712,289 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,534 |
159,532 |
316,758 |
179,561 |
178,970 |
1.83 |
1.03 |
| hello-world |
no-host |
151 |
85 |
3,901 |
387 |
384 |
25.83 |
2.56 |
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 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
789 |
1 |
2 |
2.6 |
8.7 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,670 |
1 |
66 |
15.2 |
34.6 |
1,782,989 |
46,101 |
25,356 |
91,621 |
885,111 |
806,257 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,852 |
3 |
61 |
21.4 |
39.6 |
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,718 |
1 |
2 |
2.7 |
28.5 |
149,873 |
12,476 |
6,519 |
7,818 |
70,839 |
71,216 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,746 |
1 |
2 |
2.6 |
33.5 |
140,017 |
8,080 |
6,714 |
6,525 |
68,347 |
65,145 |
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,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 |
793 |
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 |
14,756 |
1 |
68 |
15.2 |
34.5 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,700 |
3 |
61 |
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,728 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,751 |
1 |
2 |
2.6 |
33.1 |
140,017 |
8,069 |
6,703 |
6,527 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
7 |
2 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
534 |
477 |
60 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
613 |
313 |
337 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
269 |
170 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,451 |
860 |
1,859 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
789 |
319 |
486 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
793 |
303 |
510 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,792 |
7,454 |
6,712 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,855 |
7,504 |
6,744 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,294 |
16,167 |
15,102 |
34.8 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,670 |
7,426 |
7,542 |
34.6 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,756 |
7,282 |
7,569 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,664 |
1,477 |
1,226 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,617 |
1,396 |
1,243 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,645 |
2,128 |
1,741 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,718 |
1,454 |
1,307 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,728 |
1,488 |
1,276 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
221 |
158 |
67 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
25 |
25 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,492 |
6,506 |
6,441 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,333 |
6,491 |
7,322 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,070 |
20,093 |
13,067 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,852 |
6,287 |
7,786 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,700 |
6,258 |
7,517 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,700 |
951 |
757 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,639 |
935 |
706 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,431 |
1,422 |
1,053 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,746 |
963 |
785 |
33.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,751 |
975 |
778 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
37 |
24 |
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,396 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
24,636 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,439 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,372 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,961 |
0 |
0 |
0 |
8 |
0 |
1,995 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,386 |
0 |
0 |
0 |
8 |
0 |
2,974 |
49 |
dash |
| 17 |
no-host |
bin-true |
831,602 |
0 |
0 |
0 |
8 |
0 |
1,987 |
145 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,361 |
0 |
0 |
0 |
16 |
0 |
1,985 |
78 |
osh-native |
| 33 |
no-host |
bin-true |
135,259 |
0 |
0 |
0 |
16 |
0 |
1,984 |
79 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,626,289 |
0 |
0 |
0 |
25,272 |
0 |
14,022 |
1,075 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,558 |
0 |
0 |
0 |
25,272 |
0 |
14,084 |
1,052 |
dash |
| 18 |
no-host |
configure.cpython |
5,992,037 |
0 |
0 |
0 |
25,272 |
0 |
12,883 |
839 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,822,079 |
0 |
0 |
0 |
25,280 |
0 |
12,858 |
1,035 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,786,775 |
0 |
0 |
0 |
25,280 |
0 |
12,841 |
1,003 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,173 |
0 |
0 |
0 |
4,432 |
0 |
2,009 |
210 |
bash |
| 12 |
no-host |
configure.ocaml |
280,731 |
0 |
0 |
0 |
4,432 |
0 |
2,098 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
556,906 |
0 |
0 |
0 |
4,432 |
0 |
1,921 |
191 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,948 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
213 |
osh-native |
| 36 |
no-host |
configure.ocaml |
314,856 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
199 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,874 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,953 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,885 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,534,331 |
1 |
0 |
0 |
35,944 |
0 |
18,969 |
1,082 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,612 |
1 |
0 |
0 |
35,944 |
0 |
17,132 |
1,202 |
dash |
| 19 |
no-host |
configure.util-linux |
4,990,981 |
0 |
0 |
0 |
35,952 |
0 |
17,531 |
853 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,883 |
1 |
0 |
0 |
35,952 |
0 |
17,496 |
1,119 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,289 |
0 |
0 |
0 |
35,952 |
0 |
17,399 |
1,174 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,534 |
0 |
0 |
0 |
3,616 |
0 |
876 |
88 |
bash |
| 14 |
no-host |
configure.yash |
159,532 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
101 |
dash |
| 22 |
no-host |
configure.yash |
316,758 |
0 |
0 |
0 |
3,616 |
0 |
859 |
113 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,561 |
0 |
0 |
0 |
3,624 |
0 |
860 |
100 |
osh-native |
| 38 |
no-host |
configure.yash |
178,970 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,901 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
384 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host