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 |
526 |
22 |
21 |
33.93 |
1.39 |
| bin-true |
no-host |
604 |
434 |
2,414 |
806 |
792 |
4.00 |
1.34 |
| configure.cpython |
no-host |
13,590 |
13,633 |
28,958 |
14,703 |
14,716 |
2.13 |
1.08 |
| configure.ocaml |
no-host |
3,698 |
3,569 |
4,632 |
3,726 |
3,716 |
1.25 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
219 |
48 |
49 |
4.75 |
1.04 |
| configure.util-linux |
no-host |
12,306 |
13,081 |
31,796 |
13,637 |
13,699 |
2.58 |
1.11 |
| configure.yash |
no-host |
1,679 |
1,611 |
2,416 |
1,724 |
1,728 |
1.44 |
1.03 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
50.37 |
2.47 |
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,407 |
1,150 |
24,935 |
3,447 |
3,364 |
10.36 |
1.43 |
| bin-true |
no-host |
99,911 |
49,356 |
832,759 |
137,249 |
135,232 |
8.34 |
1.37 |
| configure.cpython |
no-host |
1,626,916 |
1,648,932 |
6,003,509 |
1,808,244 |
1,802,143 |
3.69 |
1.11 |
| configure.ocaml |
no-host |
298,578 |
280,703 |
557,769 |
317,745 |
316,035 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,188 |
4,212 |
23,844 |
5,927 |
5,859 |
4.60 |
1.14 |
| configure.util-linux |
no-host |
1,535,337 |
1,689,185 |
5,006,013 |
1,718,404 |
1,712,846 |
3.26 |
1.12 |
| configure.yash |
no-host |
173,656 |
159,467 |
316,562 |
179,823 |
178,624 |
1.82 |
1.04 |
| hello-world |
no-host |
154 |
85 |
3,886 |
389 |
380 |
25.23 |
2.53 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
2.6 |
8.7 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,703 |
1 |
64 |
15.2 |
34.7 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,637 |
3 |
60 |
21.4 |
39.6 |
2,707,122 |
126,354 |
66,586 |
113,463 |
1,294,568 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,726 |
1 |
2 |
2.7 |
28.8 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,724 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,080 |
6,714 |
6,526 |
68,348 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,368 |
64,438 |
42,639 |
4,562 |
54,472 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
792 |
1 |
2 |
2.6 |
8.1 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,716 |
1 |
64 |
15.2 |
34.7 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,699 |
3 |
60 |
21.4 |
39.7 |
2,707,122 |
126,347 |
66,579 |
113,465 |
1,294,568 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,716 |
1 |
2 |
2.7 |
28.6 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,728 |
1 |
2 |
2.6 |
33.5 |
140,017 |
8,069 |
6,703 |
6,528 |
68,348 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,367 |
64,433 |
42,634 |
4,563 |
54,472 |
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 |
6 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
526 |
475 |
55 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
9 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
604 |
308 |
332 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
434 |
268 |
171 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,414 |
874 |
1,800 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
806 |
291 |
530 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
792 |
312 |
496 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,590 |
7,528 |
6,435 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,633 |
7,445 |
6,580 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
28,958 |
15,910 |
14,983 |
34.8 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,703 |
7,384 |
7,560 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,716 |
7,403 |
7,469 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,698 |
1,474 |
1,261 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,569 |
1,428 |
1,162 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,632 |
2,106 |
1,746 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,726 |
1,484 |
1,283 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,716 |
1,477 |
1,277 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
167 |
56 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
22 |
27 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,306 |
6,416 |
6,340 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,081 |
6,346 |
7,209 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
31,796 |
19,934 |
12,931 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,637 |
6,341 |
7,531 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,699 |
6,228 |
7,547 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,679 |
915 |
773 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,611 |
912 |
700 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,416 |
1,435 |
1,023 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,724 |
915 |
811 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,728 |
974 |
757 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
59 |
37 |
22 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
7.1 |
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,407 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,150 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,935 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,447 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,364 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,911 |
0 |
0 |
0 |
8 |
0 |
1,986 |
65 |
bash |
| 9 |
no-host |
bin-true |
49,356 |
0 |
0 |
0 |
8 |
0 |
2,973 |
51 |
dash |
| 17 |
no-host |
bin-true |
832,759 |
0 |
0 |
0 |
8 |
0 |
1,982 |
131 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,249 |
0 |
0 |
0 |
16 |
0 |
1,974 |
85 |
osh-native |
| 33 |
no-host |
bin-true |
135,232 |
0 |
0 |
0 |
16 |
0 |
1,981 |
105 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,626,916 |
0 |
0 |
0 |
25,272 |
0 |
14,027 |
1,036 |
bash |
| 10 |
no-host |
configure.cpython |
1,648,932 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,030 |
dash |
| 18 |
no-host |
configure.cpython |
6,003,509 |
0 |
0 |
0 |
25,272 |
0 |
12,873 |
881 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,808,244 |
0 |
0 |
0 |
25,280 |
0 |
12,849 |
1,049 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,802,143 |
2 |
0 |
0 |
25,280 |
0 |
12,848 |
995 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,578 |
0 |
0 |
0 |
4,432 |
0 |
2,011 |
178 |
bash |
| 12 |
no-host |
configure.ocaml |
280,703 |
0 |
0 |
0 |
4,432 |
0 |
2,098 |
204 |
dash |
| 20 |
no-host |
configure.ocaml |
557,769 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
199 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,745 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
213 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,035 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
215 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,188 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,844 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,927 |
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,535,337 |
0 |
0 |
0 |
35,944 |
0 |
18,938 |
1,055 |
bash |
| 11 |
no-host |
configure.util-linux |
1,689,185 |
1 |
0 |
0 |
35,936 |
0 |
17,062 |
1,164 |
dash |
| 19 |
no-host |
configure.util-linux |
5,006,013 |
1 |
0 |
0 |
35,952 |
0 |
17,517 |
964 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,718,404 |
1 |
0 |
0 |
35,944 |
0 |
17,533 |
1,009 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,846 |
0 |
0 |
0 |
35,944 |
0 |
17,483 |
1,160 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,656 |
0 |
0 |
0 |
3,616 |
0 |
879 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,467 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
111 |
dash |
| 22 |
no-host |
configure.yash |
316,562 |
0 |
0 |
0 |
3,616 |
0 |
860 |
110 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,823 |
0 |
0 |
0 |
3,624 |
0 |
853 |
108 |
osh-native |
| 38 |
no-host |
configure.yash |
178,624 |
0 |
0 |
0 |
3,624 |
0 |
856 |
101 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,886 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
389 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
380 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native-souffle |
Shell and Host