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.16 |
1.38 |
| bin-true |
no-host |
632 |
455 |
2,490 |
822 |
825 |
3.94 |
1.30 |
| configure.cpython |
no-host |
13,850 |
14,002 |
29,376 |
14,701 |
14,782 |
2.12 |
1.06 |
| configure.ocaml |
no-host |
3,689 |
3,629 |
4,653 |
3,738 |
3,743 |
1.26 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
221 |
49 |
50 |
4.84 |
1.08 |
| configure.util-linux |
no-host |
12,631 |
13,435 |
32,186 |
13,718 |
13,774 |
2.55 |
1.09 |
| configure.yash |
no-host |
1,706 |
1,679 |
2,431 |
1,728 |
1,752 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
48.00 |
2.29 |
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,178 |
24,700 |
3,469 |
3,329 |
10.33 |
1.45 |
| bin-true |
no-host |
99,910 |
49,356 |
830,570 |
133,320 |
135,284 |
8.31 |
1.33 |
| configure.cpython |
no-host |
1,618,364 |
1,641,091 |
5,937,063 |
1,812,449 |
1,788,780 |
3.67 |
1.12 |
| configure.ocaml |
no-host |
299,139 |
280,676 |
554,477 |
317,420 |
316,100 |
1.85 |
1.06 |
| configure.tcc |
no-host |
5,206 |
4,218 |
23,731 |
5,911 |
5,858 |
4.56 |
1.14 |
| configure.util-linux |
no-host |
1,537,556 |
1,696,742 |
4,957,583 |
1,725,554 |
1,711,425 |
3.22 |
1.12 |
| configure.yash |
no-host |
173,565 |
159,502 |
315,027 |
178,990 |
179,425 |
1.82 |
1.03 |
| hello-world |
no-host |
151 |
81 |
3,873 |
384 |
380 |
25.65 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
822 |
1 |
2 |
2.6 |
8.8 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,701 |
2 |
67 |
15.2 |
34.5 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,718 |
3 |
61 |
21.4 |
39.7 |
2,707,121 |
126,354 |
66,586 |
113,463 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,738 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.1 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,728 |
1 |
2 |
2.6 |
33.5 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.7 |
116,367 |
64,438 |
42,639 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.6 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
825 |
1 |
2 |
2.6 |
8.3 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,782 |
1 |
63 |
15.2 |
34.7 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,774 |
3 |
58 |
21.4 |
39.4 |
2,707,121 |
126,347 |
66,579 |
113,465 |
1,294,567 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,743 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,752 |
1 |
2 |
2.6 |
33.4 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.0 |
116,366 |
64,433 |
42,634 |
4,563 |
54,471 |
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 |
7 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
529 |
472 |
60 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
632 |
304 |
366 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
455 |
283 |
178 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,490 |
888 |
1,866 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
822 |
310 |
531 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
825 |
302 |
543 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,850 |
7,408 |
6,823 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,002 |
7,564 |
6,842 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,376 |
16,089 |
15,231 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,701 |
7,372 |
7,620 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,782 |
7,272 |
7,642 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,689 |
1,416 |
1,313 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,629 |
1,431 |
1,222 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,653 |
2,077 |
1,798 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,738 |
1,478 |
1,303 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,743 |
1,434 |
1,350 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
18 |
28 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
22 |
20 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
221 |
157 |
68 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
23 |
27 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,631 |
6,472 |
6,624 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,435 |
6,371 |
7,558 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
32,186 |
20,145 |
13,102 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,718 |
6,287 |
7,679 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,774 |
6,264 |
7,596 |
39.4 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,706 |
931 |
783 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,679 |
965 |
715 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,431 |
1,451 |
1,022 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,728 |
974 |
757 |
33.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,752 |
959 |
796 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
44 |
17 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,391 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
24,700 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,469 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,329 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,910 |
0 |
0 |
0 |
8 |
0 |
1,969 |
103 |
bash |
| 9 |
no-host |
bin-true |
49,356 |
0 |
0 |
0 |
8 |
0 |
2,962 |
68 |
dash |
| 17 |
no-host |
bin-true |
830,570 |
0 |
0 |
0 |
8 |
0 |
1,978 |
343 |
osh-cpython |
| 25 |
no-host |
bin-true |
133,320 |
0 |
0 |
0 |
16 |
0 |
1,960 |
143 |
osh-native |
| 33 |
no-host |
bin-true |
135,284 |
0 |
0 |
0 |
16 |
0 |
1,973 |
139 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,618,364 |
0 |
0 |
0 |
25,272 |
0 |
14,021 |
1,149 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,091 |
0 |
0 |
0 |
25,272 |
0 |
14,064 |
1,257 |
dash |
| 18 |
no-host |
configure.cpython |
5,937,063 |
0 |
0 |
0 |
25,272 |
0 |
12,877 |
1,216 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,812,449 |
0 |
0 |
0 |
25,280 |
0 |
12,927 |
1,128 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,788,780 |
1 |
0 |
0 |
25,280 |
0 |
12,859 |
1,074 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,139 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
235 |
bash |
| 12 |
no-host |
configure.ocaml |
280,676 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
554,477 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
190 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,420 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
199 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,100 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
217 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,206 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,218 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,731 |
0 |
0 |
0 |
88 |
0 |
53 |
15 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,911 |
0 |
0 |
0 |
96 |
0 |
48 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,858 |
0 |
0 |
0 |
96 |
0 |
47 |
13 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,537,556 |
0 |
0 |
0 |
35,944 |
0 |
18,978 |
1,242 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,742 |
0 |
0 |
0 |
35,936 |
0 |
16,970 |
1,318 |
dash |
| 19 |
no-host |
configure.util-linux |
4,957,583 |
2 |
0 |
0 |
35,944 |
0 |
17,516 |
1,164 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,725,554 |
3 |
0 |
0 |
35,944 |
0 |
17,535 |
1,028 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,711,425 |
1 |
0 |
0 |
35,944 |
0 |
17,434 |
1,008 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,565 |
0 |
0 |
0 |
3,616 |
0 |
875 |
132 |
bash |
| 14 |
no-host |
configure.yash |
159,502 |
0 |
0 |
0 |
3,616 |
0 |
998 |
111 |
dash |
| 22 |
no-host |
configure.yash |
315,027 |
0 |
0 |
0 |
3,616 |
0 |
863 |
138 |
osh-cpython |
| 30 |
no-host |
configure.yash |
178,990 |
0 |
0 |
0 |
3,624 |
0 |
855 |
138 |
osh-native |
| 38 |
no-host |
configure.yash |
179,425 |
0 |
0 |
0 |
3,624 |
0 |
859 |
128 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,873 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
384 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
380 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host