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 |
537 |
22 |
21 |
34.52 |
1.41 |
| bin-true |
no-host |
610 |
436 |
2,451 |
796 |
795 |
4.02 |
1.31 |
| configure.cpython |
no-host |
13,942 |
14,006 |
29,568 |
14,697 |
14,543 |
2.12 |
1.05 |
| configure.ocaml |
no-host |
3,681 |
3,652 |
4,595 |
3,712 |
3,701 |
1.25 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
220 |
49 |
48 |
4.75 |
1.06 |
| configure.util-linux |
no-host |
12,633 |
13,419 |
31,699 |
13,594 |
13,544 |
2.51 |
1.08 |
| configure.yash |
no-host |
1,722 |
1,687 |
2,388 |
1,736 |
1,705 |
1.39 |
1.01 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
53.05 |
2.48 |
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,369 |
1,155 |
24,650 |
3,495 |
3,374 |
10.41 |
1.48 |
| bin-true |
no-host |
99,906 |
49,414 |
831,073 |
135,285 |
136,303 |
8.32 |
1.35 |
| configure.cpython |
no-host |
1,623,612 |
1,643,678 |
5,995,018 |
1,812,757 |
1,775,199 |
3.69 |
1.12 |
| configure.ocaml |
no-host |
299,361 |
280,980 |
555,728 |
316,609 |
315,828 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,191 |
4,205 |
23,811 |
5,986 |
5,883 |
4.59 |
1.15 |
| configure.util-linux |
no-host |
1,535,288 |
1,699,815 |
4,968,143 |
1,714,817 |
1,719,226 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,423 |
159,580 |
316,195 |
179,247 |
178,555 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
84 |
3,889 |
386 |
380 |
25.59 |
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 |
6.9 |
3,826 |
3,826 |
0 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,697 |
1 |
66 |
15.2 |
34.5 |
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,594 |
3 |
63 |
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,712 |
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 |
49 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,736 |
1 |
2 |
2.6 |
33.2 |
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 |
10.0 |
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 |
795 |
1 |
2 |
2.6 |
8.5 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,543 |
1 |
64 |
15.2 |
34.4 |
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,544 |
3 |
58 |
21.4 |
39.7 |
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,701 |
1 |
2 |
2.7 |
28.5 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,705 |
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 |
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 |
9 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
537 |
479 |
62 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
610 |
308 |
340 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
436 |
263 |
178 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,451 |
900 |
1,824 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
796 |
309 |
505 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
795 |
309 |
501 |
8.5 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,942 |
7,561 |
6,757 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,006 |
7,642 |
6,763 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,568 |
16,180 |
15,383 |
34.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,697 |
7,439 |
7,555 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,543 |
7,380 |
7,272 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,681 |
1,481 |
1,241 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,652 |
1,455 |
1,219 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,595 |
2,062 |
1,754 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,712 |
1,456 |
1,296 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,701 |
1,483 |
1,254 |
28.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
26 |
21 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
156 |
68 |
26.0 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
31 |
18 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
21 |
28 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,633 |
6,482 |
6,609 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,419 |
6,424 |
7,483 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
31,699 |
19,929 |
12,836 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,594 |
6,196 |
7,628 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,544 |
6,153 |
7,461 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,722 |
911 |
820 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,687 |
933 |
755 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,388 |
1,413 |
1,017 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,736 |
955 |
783 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,705 |
908 |
800 |
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 |
62 |
49 |
13 |
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.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,369 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,650 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,495 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,374 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,906 |
0 |
0 |
0 |
8 |
0 |
1,992 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,414 |
0 |
0 |
0 |
8 |
0 |
2,988 |
47 |
dash |
| 17 |
no-host |
bin-true |
831,073 |
0 |
0 |
0 |
8 |
0 |
1,998 |
136 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,285 |
0 |
0 |
0 |
16 |
0 |
1,976 |
87 |
osh-native |
| 33 |
no-host |
bin-true |
136,303 |
0 |
0 |
0 |
16 |
0 |
1,972 |
106 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,623,612 |
0 |
0 |
0 |
25,272 |
0 |
14,068 |
1,051 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,678 |
0 |
0 |
0 |
25,272 |
0 |
14,098 |
1,027 |
dash |
| 18 |
no-host |
configure.cpython |
5,995,018 |
0 |
0 |
0 |
25,272 |
0 |
12,888 |
884 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,812,757 |
0 |
0 |
0 |
25,280 |
0 |
12,858 |
1,238 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,775,199 |
0 |
0 |
0 |
25,280 |
0 |
12,853 |
1,074 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,361 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
208 |
bash |
| 12 |
no-host |
configure.ocaml |
280,980 |
0 |
0 |
0 |
4,432 |
0 |
2,098 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
555,728 |
0 |
0 |
0 |
4,432 |
0 |
1,922 |
186 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,609 |
1 |
0 |
0 |
4,440 |
0 |
2,000 |
191 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,828 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
303 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,191 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,811 |
0 |
0 |
0 |
88 |
0 |
53 |
3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,986 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,883 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,535,288 |
0 |
0 |
0 |
35,944 |
0 |
18,966 |
1,178 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,815 |
2 |
0 |
0 |
35,936 |
0 |
17,125 |
1,246 |
dash |
| 19 |
no-host |
configure.util-linux |
4,968,143 |
1 |
0 |
0 |
35,944 |
0 |
17,564 |
837 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,817 |
1 |
0 |
0 |
35,952 |
0 |
17,474 |
1,111 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,719,226 |
1 |
0 |
0 |
35,952 |
0 |
17,491 |
1,109 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,423 |
0 |
0 |
0 |
3,616 |
0 |
874 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,580 |
0 |
0 |
0 |
3,616 |
0 |
995 |
99 |
dash |
| 22 |
no-host |
configure.yash |
316,195 |
0 |
0 |
0 |
3,616 |
0 |
863 |
92 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,247 |
0 |
0 |
0 |
3,624 |
0 |
852 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
178,555 |
0 |
0 |
0 |
3,624 |
0 |
861 |
94 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
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,889 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
380 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host