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 |
15 |
9 |
528 |
22 |
21 |
34.48 |
1.42 |
| bin-true |
no-host |
618 |
435 |
2,450 |
794 |
786 |
3.96 |
1.29 |
| configure.cpython |
no-host |
13,812 |
13,989 |
29,449 |
14,576 |
14,857 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,657 |
3,609 |
4,633 |
3,752 |
3,704 |
1.27 |
1.03 |
| configure.tcc |
no-host |
46 |
41 |
221 |
48 |
48 |
4.79 |
1.05 |
| configure.util-linux |
no-host |
12,561 |
13,466 |
32,082 |
13,589 |
13,735 |
2.55 |
1.08 |
| configure.yash |
no-host |
1,704 |
1,650 |
2,433 |
1,734 |
1,721 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
64 |
3 |
3 |
52.99 |
2.39 |
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,391 |
1,177 |
24,877 |
3,413 |
3,380 |
10.40 |
1.43 |
| bin-true |
no-host |
101,914 |
49,380 |
830,325 |
134,307 |
132,260 |
8.15 |
1.32 |
| configure.cpython |
no-host |
1,625,259 |
1,645,305 |
5,973,112 |
1,800,357 |
1,784,568 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
298,993 |
280,655 |
554,993 |
317,544 |
315,214 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,209 |
4,220 |
23,740 |
5,938 |
5,848 |
4.56 |
1.14 |
| configure.util-linux |
no-host |
1,539,239 |
1,690,567 |
4,965,018 |
1,723,527 |
1,707,533 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,517 |
159,553 |
315,550 |
179,730 |
179,069 |
1.82 |
1.04 |
| hello-world |
no-host |
151 |
86 |
3,872 |
386 |
375 |
25.64 |
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 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
794 |
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,576 |
1 |
67 |
15.2 |
34.4 |
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,589 |
3 |
61 |
21.4 |
39.6 |
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,752 |
1 |
2 |
2.7 |
28.5 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,734 |
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.7 |
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.4 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
786 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,857 |
1 |
68 |
15.2 |
34.8 |
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,735 |
3 |
62 |
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,704 |
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,721 |
1 |
2 |
2.6 |
33.3 |
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.3 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
528 |
469 |
62 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
618 |
307 |
346 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
271 |
166 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,450 |
897 |
1,828 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
794 |
307 |
505 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
786 |
315 |
487 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,812 |
7,449 |
6,726 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,989 |
7,491 |
6,798 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
29,449 |
16,148 |
15,276 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,576 |
7,380 |
7,495 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,857 |
7,471 |
7,438 |
34.8 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,657 |
1,491 |
1,207 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,609 |
1,455 |
1,177 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,633 |
2,084 |
1,775 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,752 |
1,484 |
1,310 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,704 |
1,444 |
1,299 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
29 |
12 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
221 |
156 |
70 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
19 |
30 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
31 |
17 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,561 |
6,526 |
6,492 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,466 |
6,520 |
7,392 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,082 |
19,974 |
13,185 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,589 |
6,307 |
7,511 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,735 |
6,317 |
7,495 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,704 |
992 |
719 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,650 |
937 |
715 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,433 |
1,463 |
1,013 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,734 |
970 |
766 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,721 |
988 |
737 |
33.3 |
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 |
64 |
40 |
24 |
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.4 |
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,391 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,877 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,413 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,380 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,914 |
0 |
0 |
0 |
8 |
0 |
1,969 |
72 |
bash |
| 9 |
no-host |
bin-true |
49,380 |
0 |
0 |
0 |
8 |
0 |
2,957 |
77 |
dash |
| 17 |
no-host |
bin-true |
830,325 |
0 |
0 |
0 |
8 |
0 |
1,986 |
135 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,307 |
0 |
0 |
0 |
16 |
0 |
1,972 |
76 |
osh-native |
| 33 |
no-host |
bin-true |
132,260 |
0 |
0 |
0 |
16 |
0 |
1,971 |
81 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,625,259 |
0 |
0 |
0 |
25,272 |
0 |
14,021 |
1,025 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,305 |
0 |
0 |
0 |
25,272 |
0 |
14,053 |
1,025 |
dash |
| 18 |
no-host |
configure.cpython |
5,973,112 |
0 |
0 |
0 |
25,272 |
0 |
12,856 |
997 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,800,357 |
0 |
0 |
0 |
25,280 |
0 |
12,842 |
1,132 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,784,568 |
0 |
0 |
0 |
25,280 |
0 |
12,831 |
1,056 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,993 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
177 |
bash |
| 12 |
no-host |
configure.ocaml |
280,655 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
554,993 |
0 |
0 |
0 |
4,432 |
0 |
1,916 |
206 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,544 |
0 |
0 |
0 |
4,440 |
0 |
1,993 |
222 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,214 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
202 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,209 |
0 |
0 |
0 |
80 |
0 |
48 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,220 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,740 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,938 |
0 |
0 |
0 |
96 |
0 |
46 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,848 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,539,239 |
0 |
0 |
0 |
35,944 |
0 |
18,884 |
1,115 |
bash |
| 11 |
no-host |
configure.util-linux |
1,690,567 |
0 |
0 |
0 |
35,936 |
0 |
17,113 |
1,254 |
dash |
| 19 |
no-host |
configure.util-linux |
4,965,018 |
0 |
0 |
0 |
35,960 |
0 |
17,508 |
904 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,527 |
0 |
0 |
0 |
35,944 |
0 |
17,526 |
1,076 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,533 |
3 |
0 |
0 |
35,944 |
0 |
17,275 |
1,131 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,517 |
0 |
0 |
0 |
3,616 |
0 |
876 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,553 |
0 |
0 |
0 |
3,616 |
0 |
996 |
98 |
dash |
| 22 |
no-host |
configure.yash |
315,550 |
0 |
0 |
0 |
3,616 |
0 |
859 |
104 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,730 |
0 |
0 |
0 |
3,624 |
0 |
852 |
100 |
osh-native |
| 38 |
no-host |
configure.yash |
179,069 |
0 |
0 |
0 |
3,624 |
0 |
854 |
100 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,872 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host