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 |
17 |
9 |
547 |
22 |
21 |
32.97 |
1.32 |
| bin-true |
no-host |
614 |
453 |
2,485 |
802 |
797 |
4.05 |
1.31 |
| configure.cpython |
no-host |
14,280 |
14,189 |
30,575 |
14,921 |
14,554 |
2.14 |
1.04 |
| configure.ocaml |
no-host |
3,822 |
3,784 |
4,873 |
3,753 |
3,850 |
1.27 |
0.98 |
| configure.tcc |
no-host |
51 |
42 |
227 |
49 |
50 |
4.44 |
0.95 |
| configure.util-linux |
no-host |
13,047 |
15,109 |
33,146 |
13,528 |
13,878 |
2.54 |
1.04 |
| configure.yash |
no-host |
1,847 |
1,710 |
2,590 |
1,707 |
1,758 |
1.40 |
0.92 |
| hello-world |
no-host |
1 |
1 |
63 |
3 |
3 |
48.79 |
2.24 |
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,414 |
1,176 |
24,723 |
3,495 |
3,331 |
10.24 |
1.45 |
| bin-true |
no-host |
101,959 |
49,368 |
840,489 |
136,270 |
136,237 |
8.24 |
1.34 |
| configure.cpython |
no-host |
1,628,228 |
1,639,176 |
5,981,545 |
1,792,710 |
1,784,976 |
3.67 |
1.10 |
| configure.ocaml |
no-host |
299,155 |
280,798 |
557,699 |
316,284 |
315,298 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,231 |
4,191 |
23,967 |
5,956 |
5,894 |
4.58 |
1.14 |
| configure.util-linux |
no-host |
1,533,246 |
1,702,372 |
4,989,514 |
1,718,472 |
1,707,018 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,587 |
159,516 |
316,018 |
179,383 |
179,100 |
1.82 |
1.03 |
| hello-world |
no-host |
149 |
86 |
3,872 |
383 |
378 |
25.99 |
2.57 |
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 |
802 |
1 |
2 |
2.6 |
8.7 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,921 |
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,528 |
3 |
62 |
21.4 |
39.6 |
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,753 |
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 |
49 |
0 |
0 |
1.3 |
26.1 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,707 |
1 |
2 |
2.6 |
33.2 |
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.6 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
797 |
1 |
2 |
2.6 |
8.3 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,554 |
1 |
63 |
15.2 |
34.7 |
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,878 |
3 |
62 |
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,850 |
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 |
50 |
0 |
0 |
1.3 |
26.0 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,758 |
1 |
2 |
2.6 |
33.4 |
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 |
17 |
7 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
547 |
485 |
66 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
614 |
299 |
353 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
453 |
279 |
175 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,485 |
880 |
1,879 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
802 |
301 |
518 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
797 |
307 |
505 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,280 |
7,694 |
6,936 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,189 |
7,641 |
6,929 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
30,575 |
16,858 |
15,719 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,921 |
7,404 |
7,812 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,554 |
7,263 |
7,452 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,822 |
1,558 |
1,298 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,784 |
1,509 |
1,286 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,873 |
2,280 |
1,825 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,753 |
1,495 |
1,299 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,850 |
1,526 |
1,363 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
51 |
20 |
32 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
227 |
164 |
66 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
27 |
24 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,047 |
6,678 |
6,820 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
15,109 |
6,973 |
8,523 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
33,146 |
20,824 |
13,401 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,528 |
6,234 |
7,519 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,878 |
6,324 |
7,627 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,847 |
1,004 |
840 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,710 |
978 |
733 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,590 |
1,501 |
1,133 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,707 |
936 |
774 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,758 |
941 |
818 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
63 |
46 |
17 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
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,414 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,723 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,495 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,331 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,959 |
0 |
0 |
0 |
8 |
0 |
1,985 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,368 |
0 |
0 |
0 |
8 |
0 |
2,960 |
53 |
dash |
| 17 |
no-host |
bin-true |
840,489 |
0 |
0 |
0 |
8 |
0 |
1,985 |
120 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,270 |
0 |
0 |
0 |
16 |
0 |
1,983 |
82 |
osh-native |
| 33 |
no-host |
bin-true |
136,237 |
0 |
0 |
0 |
16 |
0 |
1,981 |
118 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,628,228 |
0 |
0 |
0 |
25,272 |
0 |
14,046 |
1,041 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,176 |
0 |
0 |
0 |
25,272 |
0 |
14,097 |
1,181 |
dash |
| 18 |
no-host |
configure.cpython |
5,981,545 |
0 |
0 |
0 |
25,272 |
0 |
12,872 |
872 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,792,710 |
0 |
0 |
0 |
25,280 |
0 |
12,813 |
1,081 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,784,976 |
0 |
0 |
0 |
25,280 |
0 |
12,837 |
1,053 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,155 |
0 |
0 |
0 |
4,432 |
0 |
2,009 |
208 |
bash |
| 12 |
no-host |
configure.ocaml |
280,798 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
557,699 |
0 |
0 |
0 |
4,432 |
0 |
1,915 |
201 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,284 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
204 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,298 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
193 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,231 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,191 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,967 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,956 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,894 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,246 |
0 |
0 |
0 |
35,944 |
0 |
18,972 |
1,127 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,372 |
0 |
0 |
0 |
35,936 |
0 |
16,840 |
1,242 |
dash |
| 19 |
no-host |
configure.util-linux |
4,989,514 |
2 |
0 |
0 |
35,960 |
0 |
17,529 |
940 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,718,472 |
1 |
0 |
0 |
35,952 |
0 |
17,428 |
1,228 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,018 |
2 |
0 |
0 |
35,952 |
0 |
17,428 |
1,109 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,587 |
0 |
0 |
0 |
3,616 |
0 |
879 |
106 |
bash |
| 14 |
no-host |
configure.yash |
159,516 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
97 |
dash |
| 22 |
no-host |
configure.yash |
316,018 |
0 |
0 |
0 |
3,616 |
0 |
860 |
119 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,383 |
0 |
0 |
0 |
3,624 |
0 |
856 |
107 |
osh-native |
| 38 |
no-host |
configure.yash |
179,100 |
0 |
0 |
0 |
3,624 |
0 |
857 |
88 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
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 |
383 |
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