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 |
545 |
22 |
21 |
33.65 |
1.36 |
| bin-true |
no-host |
642 |
466 |
2,497 |
824 |
829 |
3.89 |
1.28 |
| configure.cpython |
no-host |
14,063 |
14,141 |
29,497 |
15,010 |
14,933 |
2.10 |
1.07 |
| configure.ocaml |
no-host |
3,775 |
3,680 |
4,792 |
3,767 |
3,751 |
1.27 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
227 |
50 |
49 |
4.81 |
1.06 |
| configure.util-linux |
no-host |
12,926 |
13,580 |
32,582 |
13,943 |
13,890 |
2.52 |
1.08 |
| configure.yash |
no-host |
1,738 |
1,676 |
2,511 |
1,758 |
1,746 |
1.44 |
1.01 |
| hello-world |
no-host |
1 |
1 |
66 |
3 |
3 |
52.23 |
2.38 |
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,418 |
1,156 |
24,685 |
3,458 |
3,323 |
10.21 |
1.43 |
| bin-true |
no-host |
100,922 |
49,361 |
827,598 |
134,319 |
134,209 |
8.20 |
1.33 |
| configure.cpython |
no-host |
1,626,994 |
1,641,640 |
5,957,836 |
1,811,509 |
1,800,408 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
299,322 |
280,711 |
554,459 |
316,586 |
316,580 |
1.85 |
1.06 |
| configure.tcc |
no-host |
5,183 |
4,195 |
23,700 |
5,997 |
5,897 |
4.57 |
1.16 |
| configure.util-linux |
no-host |
1,535,635 |
1,694,580 |
4,954,889 |
1,727,959 |
1,712,820 |
3.23 |
1.13 |
| configure.yash |
no-host |
173,473 |
159,536 |
314,793 |
179,387 |
179,278 |
1.81 |
1.03 |
| hello-world |
no-host |
155 |
82 |
3,880 |
385 |
375 |
25.03 |
2.48 |
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 |
824 |
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 |
15,010 |
1 |
69 |
15.2 |
34.7 |
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,943 |
3 |
63 |
21.4 |
39.5 |
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,767 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.3 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,758 |
1 |
2 |
2.6 |
33.1 |
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.6 |
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.4 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
829 |
1 |
2 |
2.6 |
8.1 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,933 |
1 |
65 |
15.2 |
34.5 |
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,890 |
3 |
59 |
21.4 |
39.6 |
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,751 |
1 |
2 |
2.7 |
28.8 |
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.0 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,746 |
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.2 |
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 |
8 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
545 |
489 |
60 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.6 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
642 |
308 |
374 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
466 |
284 |
185 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,497 |
879 |
1,885 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
824 |
297 |
546 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
829 |
299 |
545 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,063 |
7,525 |
6,926 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,141 |
7,607 |
6,911 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
29,497 |
15,862 |
15,591 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,010 |
7,388 |
7,940 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,933 |
7,386 |
7,740 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,775 |
1,520 |
1,282 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,680 |
1,438 |
1,266 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,792 |
2,135 |
1,883 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,767 |
1,505 |
1,303 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,751 |
1,502 |
1,290 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
22 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
227 |
160 |
72 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
29 |
21 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,926 |
6,601 |
6,789 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,580 |
6,416 |
7,658 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
32,582 |
20,212 |
13,465 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,943 |
6,262 |
7,927 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,890 |
6,185 |
7,792 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,738 |
936 |
810 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,676 |
936 |
742 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,511 |
1,494 |
1,061 |
33.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,758 |
950 |
810 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,746 |
964 |
786 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
66 |
42 |
24 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,418 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,685 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,458 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,323 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,922 |
0 |
0 |
0 |
8 |
0 |
1,980 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,361 |
0 |
0 |
0 |
8 |
0 |
2,965 |
68 |
dash |
| 17 |
no-host |
bin-true |
827,598 |
0 |
0 |
0 |
8 |
0 |
1,974 |
350 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,319 |
0 |
0 |
0 |
16 |
0 |
1,978 |
113 |
osh-native |
| 33 |
no-host |
bin-true |
134,209 |
0 |
0 |
0 |
16 |
0 |
1,966 |
138 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,626,994 |
0 |
0 |
0 |
25,272 |
0 |
14,023 |
1,209 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,640 |
0 |
0 |
0 |
25,272 |
0 |
14,088 |
1,313 |
dash |
| 18 |
no-host |
configure.cpython |
5,957,836 |
0 |
0 |
0 |
25,272 |
0 |
12,876 |
1,186 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,811,509 |
0 |
0 |
0 |
25,280 |
0 |
12,860 |
1,160 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,800,408 |
0 |
0 |
0 |
25,280 |
0 |
12,894 |
1,088 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,322 |
0 |
0 |
0 |
4,432 |
0 |
2,026 |
199 |
bash |
| 12 |
no-host |
configure.ocaml |
280,711 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
554,459 |
0 |
0 |
0 |
4,432 |
0 |
1,918 |
181 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,586 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
223 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,580 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
216 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,183 |
0 |
0 |
0 |
80 |
0 |
48 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,195 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,700 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,997 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,897 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,535,635 |
0 |
0 |
0 |
35,944 |
0 |
18,940 |
1,284 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,580 |
1 |
0 |
0 |
35,936 |
0 |
17,046 |
1,390 |
dash |
| 19 |
no-host |
configure.util-linux |
4,954,889 |
6 |
0 |
0 |
35,944 |
0 |
17,554 |
1,139 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,727,959 |
4 |
0 |
0 |
35,944 |
0 |
17,563 |
1,022 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,820 |
2 |
0 |
0 |
35,952 |
0 |
17,558 |
1,073 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,473 |
0 |
0 |
0 |
3,616 |
0 |
874 |
141 |
bash |
| 14 |
no-host |
configure.yash |
159,536 |
0 |
0 |
0 |
3,616 |
0 |
999 |
127 |
dash |
| 22 |
no-host |
configure.yash |
314,793 |
1 |
0 |
0 |
3,616 |
0 |
864 |
128 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,387 |
0 |
0 |
0 |
3,624 |
0 |
858 |
125 |
osh-native |
| 38 |
no-host |
configure.yash |
179,278 |
0 |
0 |
0 |
3,624 |
0 |
860 |
125 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,880 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host