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 |
535 |
22 |
21 |
33.12 |
1.35 |
| bin-true |
no-host |
636 |
457 |
2,485 |
837 |
825 |
3.91 |
1.32 |
| configure.cpython |
no-host |
13,988 |
14,057 |
30,022 |
14,862 |
14,927 |
2.15 |
1.06 |
| configure.ocaml |
no-host |
3,701 |
3,724 |
4,688 |
3,738 |
3,737 |
1.27 |
1.01 |
| configure.tcc |
no-host |
47 |
43 |
219 |
49 |
49 |
4.65 |
1.03 |
| configure.util-linux |
no-host |
12,641 |
13,522 |
32,591 |
13,881 |
13,961 |
2.58 |
1.10 |
| configure.yash |
no-host |
1,761 |
1,682 |
2,488 |
1,739 |
1,738 |
1.41 |
0.99 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
49.83 |
2.35 |
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,403 |
1,178 |
24,738 |
3,462 |
3,349 |
10.29 |
1.44 |
| bin-true |
no-host |
99,955 |
49,401 |
829,625 |
137,222 |
134,286 |
8.30 |
1.37 |
| configure.cpython |
no-host |
1,617,014 |
1,637,533 |
5,945,621 |
1,812,730 |
1,793,940 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
298,609 |
280,937 |
555,509 |
316,590 |
315,888 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,174 |
4,211 |
23,727 |
5,960 |
5,921 |
4.59 |
1.15 |
| configure.util-linux |
no-host |
1,531,557 |
1,699,643 |
4,964,016 |
1,714,965 |
1,712,471 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,627 |
159,531 |
314,657 |
179,573 |
178,872 |
1.81 |
1.03 |
| hello-world |
no-host |
153 |
85 |
3,877 |
386 |
378 |
25.34 |
2.52 |
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 |
7.1 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
837 |
1 |
2 |
2.6 |
8.7 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,862 |
1 |
68 |
15.2 |
34.4 |
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,881 |
3 |
61 |
21.4 |
39.9 |
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.5 |
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,739 |
1 |
2 |
2.6 |
33.6 |
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.8 |
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.7 |
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.4 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,927 |
1 |
64 |
15.2 |
34.6 |
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,961 |
3 |
61 |
21.4 |
39.9 |
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,737 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,738 |
1 |
2 |
2.6 |
33.5 |
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 |
9 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
535 |
474 |
65 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
636 |
309 |
367 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
457 |
283 |
180 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,485 |
898 |
1,859 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
837 |
296 |
560 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
825 |
309 |
532 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,988 |
7,449 |
6,916 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,057 |
7,498 |
6,920 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
30,022 |
16,444 |
15,582 |
34.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,862 |
7,400 |
7,764 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,927 |
7,334 |
7,761 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,701 |
1,429 |
1,312 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,724 |
1,473 |
1,275 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,688 |
2,081 |
1,830 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,738 |
1,454 |
1,325 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,737 |
1,460 |
1,318 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
21 |
22 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
163 |
59 |
26.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
22 |
27 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,641 |
6,346 |
6,758 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,522 |
6,486 |
7,531 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
32,591 |
20,306 |
13,362 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,881 |
6,305 |
7,824 |
39.9 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,961 |
6,366 |
7,682 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,761 |
953 |
816 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,682 |
973 |
709 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,488 |
1,469 |
1,062 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,739 |
948 |
795 |
33.6 |
osh-native |
| 38 |
no-host |
configure.yash |
1,738 |
938 |
802 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
62 |
37 |
25 |
18.0 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
1 |
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,403 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,738 |
0 |
0 |
0 |
8 |
0 |
44 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,462 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,349 |
0 |
0 |
0 |
16 |
0 |
39 |
4 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,955 |
0 |
0 |
0 |
8 |
0 |
1,984 |
84 |
bash |
| 9 |
no-host |
bin-true |
49,401 |
0 |
0 |
0 |
8 |
0 |
2,975 |
62 |
dash |
| 17 |
no-host |
bin-true |
829,625 |
0 |
0 |
0 |
8 |
0 |
1,975 |
142 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,222 |
0 |
0 |
0 |
16 |
0 |
1,980 |
202 |
osh-native |
| 33 |
no-host |
bin-true |
134,286 |
0 |
0 |
0 |
16 |
0 |
1,975 |
203 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,617,014 |
0 |
0 |
0 |
25,272 |
0 |
14,034 |
1,284 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,533 |
0 |
0 |
0 |
25,272 |
0 |
14,074 |
1,263 |
dash |
| 18 |
no-host |
configure.cpython |
5,945,621 |
0 |
0 |
0 |
25,272 |
0 |
12,869 |
1,092 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,812,730 |
0 |
0 |
0 |
25,280 |
0 |
12,913 |
1,287 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,793,940 |
0 |
0 |
0 |
25,280 |
0 |
12,855 |
1,123 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,609 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
208 |
bash |
| 12 |
no-host |
configure.ocaml |
280,937 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
555,509 |
0 |
0 |
0 |
4,432 |
0 |
1,915 |
197 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,590 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
219 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,888 |
0 |
0 |
0 |
4,440 |
0 |
1,986 |
200 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,174 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,211 |
0 |
0 |
0 |
88 |
0 |
52 |
5 |
dash |
| 21 |
no-host |
configure.tcc |
23,727 |
0 |
0 |
0 |
88 |
0 |
53 |
10 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,960 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,921 |
0 |
0 |
0 |
96 |
0 |
46 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,531,557 |
0 |
0 |
0 |
35,944 |
0 |
18,890 |
1,233 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,643 |
0 |
0 |
0 |
35,936 |
0 |
17,022 |
1,381 |
dash |
| 19 |
no-host |
configure.util-linux |
4,964,016 |
5 |
0 |
0 |
35,952 |
0 |
17,551 |
1,201 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,714,965 |
0 |
0 |
0 |
35,952 |
0 |
17,384 |
1,106 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,471 |
0 |
0 |
0 |
35,952 |
0 |
17,448 |
1,106 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,627 |
0 |
0 |
0 |
3,616 |
0 |
877 |
144 |
bash |
| 14 |
no-host |
configure.yash |
159,531 |
0 |
0 |
0 |
3,616 |
0 |
997 |
128 |
dash |
| 22 |
no-host |
configure.yash |
314,657 |
0 |
0 |
0 |
3,616 |
0 |
862 |
159 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,573 |
0 |
0 |
0 |
3,624 |
0 |
860 |
154 |
osh-native |
| 38 |
no-host |
configure.yash |
178,872 |
0 |
0 |
0 |
3,624 |
0 |
853 |
152 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
3,877 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host