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 |
18 |
9 |
474 |
21 |
20 |
26.05 |
1.18 |
| bin-true |
no-host |
648 |
516 |
2,269 |
767 |
770 |
3.50 |
1.18 |
| configure.cpython |
no-host |
14,475 |
14,516 |
28,104 |
14,576 |
14,849 |
1.94 |
1.01 |
| configure.ocaml |
no-host |
3,703 |
3,635 |
4,581 |
3,736 |
3,717 |
1.24 |
1.01 |
| configure.tcc |
no-host |
46 |
40 |
202 |
48 |
46 |
4.40 |
1.04 |
| configure.util-linux |
no-host |
13,444 |
14,195 |
31,063 |
13,795 |
13,655 |
2.31 |
1.03 |
| configure.yash |
no-host |
1,774 |
1,713 |
2,417 |
1,772 |
1,761 |
1.36 |
1.00 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
41.69 |
2.06 |
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,560 |
1,126 |
24,426 |
3,173 |
3,073 |
9.54 |
1.24 |
| bin-true |
no-host |
105,356 |
66,433 |
794,329 |
128,174 |
127,187 |
7.54 |
1.22 |
| configure.cpython |
no-host |
1,997,426 |
2,018,550 |
6,129,638 |
2,011,979 |
2,006,953 |
3.07 |
1.01 |
| configure.ocaml |
no-host |
373,365 |
353,772 |
617,608 |
377,431 |
376,078 |
1.65 |
1.01 |
| configure.tcc |
no-host |
6,067 |
5,002 |
24,030 |
6,499 |
6,446 |
3.96 |
1.07 |
| configure.util-linux |
no-host |
1,912,575 |
2,067,826 |
5,341,883 |
1,826,644 |
1,816,233 |
2.79 |
0.96 |
| configure.yash |
no-host |
233,005 |
222,248 |
369,435 |
235,889 |
234,670 |
1.59 |
1.01 |
| hello-world |
no-host |
147 |
77 |
3,998 |
348 |
339 |
27.20 |
2.37 |
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.4 |
3,810 |
3,810 |
0 |
702 |
1,870 |
1,238 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
767 |
1 |
2 |
2.6 |
8.4 |
156,777 |
15,416 |
2,903 |
8,754 |
77,337 |
70,686 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,576 |
1 |
67 |
15.2 |
29.2 |
1,785,027 |
49,179 |
25,898 |
91,515 |
886,574 |
806,938 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,795 |
3 |
63 |
21.6 |
30.5 |
2,709,212 |
56,236 |
66,561 |
114,377 |
1,295,026 |
1,299,809 |
32,241 |
42 |
133,122 |
1 |
| configure.ocaml |
no-host |
3,736 |
1 |
2 |
2.6 |
22.6 |
149,879 |
12,467 |
6,510 |
7,749 |
70,874 |
71,256 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.6 |
30,580 |
30,580 |
0 |
1,544 |
14,636 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,772 |
1 |
2 |
2.6 |
26.4 |
139,886 |
8,047 |
6,702 |
6,399 |
68,339 |
65,148 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,340 |
64,422 |
42,627 |
4,546 |
54,461 |
57,333 |
277 |
3 |
85,254 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
5.9 |
3,809 |
3,809 |
0 |
703 |
1,870 |
1,236 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
770 |
1 |
2 |
2.6 |
7.7 |
156,776 |
15,411 |
2,898 |
8,755 |
77,337 |
70,684 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,849 |
1 |
69 |
15.2 |
29.2 |
1,785,026 |
49,166 |
25,885 |
91,516 |
886,574 |
806,936 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,655 |
3 |
66 |
21.6 |
30.3 |
2,709,212 |
56,211 |
66,554 |
114,379 |
1,295,026 |
1,299,807 |
32,241 |
42 |
133,108 |
1 |
| configure.ocaml |
no-host |
3,717 |
1 |
2 |
2.6 |
22.6 |
149,879 |
12,461 |
6,504 |
7,751 |
70,874 |
71,254 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.3 |
19.6 |
30,580 |
30,580 |
0 |
1,546 |
14,636 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,761 |
1 |
2 |
2.6 |
26.1 |
139,886 |
8,036 |
6,691 |
6,401 |
68,339 |
65,146 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
8.7 |
116,339 |
64,417 |
42,622 |
4,547 |
54,461 |
57,331 |
277 |
3 |
85,244 |
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 |
18 |
9 |
9 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
474 |
422 |
55 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
11 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
648 |
299 |
382 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
516 |
269 |
259 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,269 |
768 |
1,761 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
767 |
301 |
482 |
8.4 |
osh-native |
| 33 |
no-host |
bin-true |
770 |
308 |
478 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,475 |
6,664 |
8,215 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
14,516 |
6,692 |
8,246 |
29.2 |
dash |
| 18 |
no-host |
configure.cpython |
28,104 |
14,194 |
15,733 |
29.1 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,576 |
6,522 |
8,335 |
29.2 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,849 |
6,409 |
8,487 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,703 |
1,274 |
1,469 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,635 |
1,265 |
1,392 |
22.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,581 |
1,832 |
1,959 |
22.5 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,736 |
1,297 |
1,479 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,717 |
1,317 |
1,439 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
20 |
26 |
19.7 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
20 |
21 |
19.8 |
dash |
| 21 |
no-host |
configure.tcc |
202 |
138 |
68 |
19.6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
23 |
25 |
19.6 |
osh-native |
| 37 |
no-host |
configure.tcc |
46 |
21 |
26 |
19.6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,444 |
5,839 |
8,090 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
14,195 |
5,851 |
8,852 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
31,063 |
17,848 |
14,303 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,795 |
5,605 |
8,416 |
30.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,655 |
5,572 |
8,307 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,774 |
897 |
877 |
26.3 |
bash |
| 14 |
no-host |
configure.yash |
1,713 |
884 |
833 |
26.2 |
dash |
| 22 |
no-host |
configure.yash |
2,417 |
1,348 |
1,113 |
26.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,772 |
922 |
855 |
26.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,761 |
879 |
887 |
26.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
41 |
16 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
5.9 |
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,560 |
0 |
0 |
0 |
16 |
0 |
40 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,126 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,426 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,173 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,073 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,356 |
0 |
0 |
0 |
8 |
0 |
1,993 |
212 |
bash |
| 9 |
no-host |
bin-true |
66,433 |
0 |
0 |
0 |
8 |
0 |
1,976 |
121 |
dash |
| 17 |
no-host |
bin-true |
794,329 |
0 |
0 |
0 |
8 |
0 |
1,976 |
277 |
osh-cpython |
| 25 |
no-host |
bin-true |
128,174 |
0 |
0 |
0 |
16 |
0 |
1,979 |
145 |
osh-native |
| 33 |
no-host |
bin-true |
127,187 |
0 |
0 |
0 |
16 |
0 |
1,977 |
110 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,997,426 |
0 |
0 |
0 |
32,928 |
0 |
14,213 |
1,176 |
bash |
| 10 |
no-host |
configure.cpython |
2,018,550 |
0 |
0 |
0 |
32,992 |
0 |
14,395 |
1,197 |
dash |
| 18 |
no-host |
configure.cpython |
6,129,638 |
0 |
0 |
0 |
27,512 |
0 |
13,030 |
1,222 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,011,979 |
0 |
0 |
0 |
27,520 |
0 |
13,107 |
1,201 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,006,953 |
0 |
0 |
0 |
27,520 |
0 |
13,032 |
1,264 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,365 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
177 |
bash |
| 12 |
no-host |
configure.ocaml |
353,772 |
0 |
0 |
0 |
5,112 |
0 |
1,942 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
617,608 |
0 |
0 |
0 |
5,112 |
0 |
1,850 |
214 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
377,431 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
178 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,078 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
179 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,067 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,002 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
24,030 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,499 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,446 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,912,575 |
2 |
0 |
0 |
42,400 |
0 |
18,438 |
1,199 |
bash |
| 11 |
no-host |
configure.util-linux |
2,067,826 |
0 |
0 |
0 |
42,592 |
0 |
17,359 |
1,452 |
dash |
| 19 |
no-host |
configure.util-linux |
5,341,883 |
5 |
0 |
0 |
39,112 |
0 |
17,021 |
1,259 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,826,644 |
0 |
0 |
0 |
39,120 |
0 |
16,996 |
1,265 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,816,233 |
0 |
0 |
0 |
39,136 |
0 |
17,110 |
1,146 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,005 |
0 |
0 |
0 |
4,120 |
0 |
888 |
92 |
bash |
| 14 |
no-host |
configure.yash |
222,248 |
0 |
0 |
0 |
3,720 |
0 |
872 |
82 |
dash |
| 22 |
no-host |
configure.yash |
369,435 |
0 |
0 |
0 |
3,728 |
0 |
848 |
82 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,889 |
0 |
0 |
0 |
3,736 |
0 |
849 |
69 |
osh-native |
| 38 |
no-host |
configure.yash |
234,670 |
0 |
0 |
0 |
3,736 |
0 |
846 |
100 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
147 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
77 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,998 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host