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 |
544 |
22 |
21 |
34.75 |
1.38 |
| bin-true |
no-host |
609 |
434 |
2,468 |
797 |
781 |
4.05 |
1.31 |
| configure.cpython |
no-host |
13,947 |
13,855 |
31,081 |
15,067 |
14,856 |
2.23 |
1.08 |
| configure.ocaml |
no-host |
3,658 |
3,721 |
4,870 |
3,784 |
3,752 |
1.33 |
1.03 |
| configure.tcc |
no-host |
46 |
42 |
230 |
62 |
49 |
5.05 |
1.36 |
| configure.util-linux |
no-host |
12,591 |
13,474 |
36,001 |
13,669 |
13,883 |
2.86 |
1.09 |
| configure.yash |
no-host |
1,697 |
1,686 |
2,507 |
1,708 |
1,727 |
1.48 |
1.01 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
51.81 |
2.55 |
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,390 |
1,161 |
24,705 |
3,490 |
3,326 |
10.34 |
1.46 |
| bin-true |
no-host |
100,923 |
49,342 |
838,686 |
133,274 |
132,254 |
8.31 |
1.32 |
| configure.cpython |
no-host |
1,618,433 |
1,636,262 |
5,994,141 |
1,815,494 |
1,797,081 |
3.70 |
1.12 |
| configure.ocaml |
no-host |
298,626 |
280,796 |
556,876 |
316,727 |
317,007 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,211 |
4,187 |
23,955 |
5,914 |
5,859 |
4.60 |
1.13 |
| configure.util-linux |
no-host |
1,532,915 |
1,698,041 |
4,978,800 |
1,712,776 |
1,713,211 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,291 |
159,516 |
315,722 |
179,680 |
179,212 |
1.82 |
1.04 |
| hello-world |
no-host |
150 |
86 |
3,872 |
387 |
376 |
25.81 |
2.58 |
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.8 |
3,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
2.6 |
8.8 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,067 |
1 |
68 |
15.2 |
34.5 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,669 |
3 |
59 |
21.4 |
39.5 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,784 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
62 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,708 |
1 |
2 |
2.6 |
33.4 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
781 |
1 |
2 |
2.6 |
8.4 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,856 |
1 |
64 |
15.2 |
34.6 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,883 |
3 |
61 |
21.4 |
39.5 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,752 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,727 |
1 |
2 |
2.6 |
33.5 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
544 |
487 |
62 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
609 |
317 |
331 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
434 |
276 |
162 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,468 |
898 |
1,844 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
797 |
312 |
501 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
781 |
311 |
486 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,947 |
7,627 |
6,679 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,855 |
7,593 |
6,641 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
31,081 |
16,762 |
16,394 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,067 |
7,445 |
7,916 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,856 |
7,377 |
7,570 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,658 |
1,451 |
1,246 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,721 |
1,502 |
1,242 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,870 |
2,154 |
1,947 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,784 |
1,494 |
1,332 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,752 |
1,485 |
1,306 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
19 |
24 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
230 |
164 |
69 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
62 |
35 |
27 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
24 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,591 |
6,593 |
6,428 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,474 |
6,419 |
7,539 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
36,001 |
22,392 |
14,790 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,669 |
6,373 |
7,527 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,883 |
6,305 |
7,647 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,697 |
904 |
802 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,686 |
946 |
740 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
2,507 |
1,498 |
1,050 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,708 |
939 |
773 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,727 |
974 |
755 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
43 |
19 |
17.9 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.8 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,705 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,490 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,326 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,923 |
0 |
0 |
0 |
8 |
0 |
1,984 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,342 |
0 |
0 |
0 |
8 |
0 |
2,979 |
62 |
dash |
| 17 |
no-host |
bin-true |
838,686 |
0 |
0 |
0 |
8 |
0 |
1,999 |
145 |
osh-cpython |
| 25 |
no-host |
bin-true |
133,274 |
0 |
0 |
0 |
16 |
0 |
1,970 |
94 |
osh-native |
| 33 |
no-host |
bin-true |
132,254 |
0 |
0 |
0 |
16 |
0 |
1,981 |
70 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,618,433 |
0 |
0 |
0 |
25,272 |
0 |
14,057 |
1,029 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,262 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,044 |
dash |
| 18 |
no-host |
configure.cpython |
5,994,141 |
0 |
0 |
0 |
25,272 |
0 |
12,871 |
967 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,815,494 |
0 |
0 |
0 |
25,280 |
0 |
12,851 |
1,222 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,797,081 |
0 |
0 |
0 |
25,280 |
0 |
12,847 |
1,081 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,626 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
215 |
bash |
| 12 |
no-host |
configure.ocaml |
280,796 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
556,876 |
0 |
0 |
0 |
4,432 |
0 |
1,915 |
173 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,727 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
207 |
osh-native |
| 36 |
no-host |
configure.ocaml |
317,007 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
206 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,187 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,955 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,914 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,859 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,915 |
1 |
0 |
0 |
35,944 |
0 |
18,848 |
1,110 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,041 |
1 |
0 |
0 |
35,944 |
0 |
17,299 |
1,183 |
dash |
| 19 |
no-host |
configure.util-linux |
4,978,800 |
2 |
0 |
0 |
35,960 |
0 |
17,507 |
883 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,712,776 |
1 |
0 |
0 |
35,952 |
0 |
17,537 |
1,076 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,713,211 |
1 |
0 |
0 |
35,952 |
0 |
17,496 |
1,295 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,291 |
0 |
0 |
0 |
3,616 |
0 |
876 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,516 |
0 |
0 |
0 |
3,616 |
0 |
992 |
95 |
dash |
| 22 |
no-host |
configure.yash |
315,722 |
2 |
0 |
0 |
3,616 |
0 |
860 |
109 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,680 |
0 |
0 |
0 |
3,624 |
0 |
855 |
92 |
osh-native |
| 38 |
no-host |
configure.yash |
179,212 |
0 |
0 |
0 |
3,624 |
0 |
856 |
99 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
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 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
376 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host