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 |
531 |
22 |
21 |
34.14 |
1.40 |
| bin-true |
no-host |
617 |
436 |
2,447 |
805 |
797 |
3.97 |
1.31 |
| configure.cpython |
no-host |
14,032 |
14,042 |
29,305 |
14,802 |
14,820 |
2.09 |
1.05 |
| configure.ocaml |
no-host |
3,671 |
3,621 |
4,738 |
3,770 |
3,730 |
1.29 |
1.03 |
| configure.tcc |
no-host |
46 |
41 |
221 |
49 |
48 |
4.84 |
1.06 |
| configure.util-linux |
no-host |
12,646 |
13,475 |
32,263 |
13,729 |
13,872 |
2.55 |
1.09 |
| configure.yash |
no-host |
1,726 |
1,653 |
2,494 |
1,741 |
1,737 |
1.45 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
50.12 |
2.41 |
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,379 |
1,171 |
24,906 |
3,459 |
3,365 |
10.47 |
1.45 |
| bin-true |
no-host |
100,924 |
49,404 |
834,703 |
135,245 |
136,285 |
8.27 |
1.34 |
| configure.cpython |
no-host |
1,628,994 |
1,638,396 |
6,021,638 |
1,796,241 |
1,787,505 |
3.70 |
1.10 |
| configure.ocaml |
no-host |
299,148 |
280,824 |
557,402 |
316,246 |
316,273 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,226 |
4,214 |
23,906 |
5,948 |
5,912 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,535,252 |
1,694,635 |
5,000,616 |
1,718,452 |
1,712,648 |
3.26 |
1.12 |
| configure.yash |
no-host |
173,596 |
159,514 |
316,227 |
178,992 |
178,651 |
1.82 |
1.03 |
| hello-world |
no-host |
149 |
85 |
3,888 |
381 |
377 |
26.09 |
2.56 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
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,802 |
1 |
69 |
15.2 |
34.5 |
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,729 |
3 |
61 |
21.4 |
39.5 |
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,770 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,741 |
1 |
2 |
2.6 |
33.2 |
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 |
797 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,820 |
1 |
67 |
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,872 |
3 |
62 |
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,730 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,737 |
1 |
2 |
2.6 |
33.4 |
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.2 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
531 |
474 |
61 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
15 |
7 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
617 |
299 |
354 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
436 |
270 |
169 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,447 |
897 |
1,819 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
805 |
308 |
513 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
797 |
310 |
502 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,032 |
7,626 |
6,775 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,042 |
7,602 |
6,840 |
34.2 |
dash |
| 18 |
no-host |
configure.cpython |
29,305 |
16,104 |
15,163 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,802 |
7,427 |
7,676 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,820 |
7,408 |
7,514 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,671 |
1,475 |
1,234 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,621 |
1,446 |
1,200 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,738 |
2,189 |
1,777 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,770 |
1,487 |
1,325 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,730 |
1,496 |
1,275 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
30 |
11 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
221 |
146 |
80 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
28 |
21 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,646 |
6,538 |
6,562 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,475 |
6,444 |
7,524 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,263 |
20,289 |
13,064 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,729 |
6,332 |
7,639 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,872 |
6,356 |
7,591 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,726 |
956 |
779 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,653 |
952 |
703 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
2,494 |
1,454 |
1,083 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,741 |
955 |
789 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,737 |
943 |
796 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
43 |
18 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
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,379 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,171 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,906 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,459 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,365 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,924 |
0 |
0 |
0 |
8 |
0 |
1,970 |
75 |
bash |
| 9 |
no-host |
bin-true |
49,404 |
0 |
0 |
0 |
8 |
0 |
2,952 |
70 |
dash |
| 17 |
no-host |
bin-true |
834,703 |
0 |
0 |
0 |
8 |
0 |
1,990 |
161 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,245 |
0 |
0 |
0 |
16 |
0 |
1,967 |
97 |
osh-native |
| 33 |
no-host |
bin-true |
136,285 |
0 |
0 |
0 |
16 |
0 |
1,967 |
77 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,628,994 |
0 |
0 |
0 |
25,272 |
0 |
14,012 |
1,072 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,396 |
0 |
0 |
0 |
25,272 |
0 |
14,063 |
1,075 |
dash |
| 18 |
no-host |
configure.cpython |
6,021,638 |
0 |
0 |
0 |
25,272 |
0 |
12,872 |
890 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,796,241 |
0 |
0 |
0 |
25,280 |
0 |
12,839 |
1,084 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,787,505 |
0 |
0 |
0 |
25,280 |
0 |
12,826 |
1,052 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,148 |
0 |
0 |
0 |
4,432 |
0 |
2,006 |
238 |
bash |
| 12 |
no-host |
configure.ocaml |
280,824 |
0 |
0 |
0 |
4,432 |
0 |
2,098 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
557,402 |
0 |
0 |
0 |
4,432 |
0 |
1,912 |
172 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,246 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
194 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,273 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
185 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,226 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
52 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
23,906 |
0 |
0 |
0 |
88 |
0 |
51 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,948 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,912 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,535,252 |
1 |
0 |
0 |
35,944 |
0 |
18,894 |
1,221 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,635 |
0 |
0 |
0 |
35,936 |
0 |
17,063 |
1,214 |
dash |
| 19 |
no-host |
configure.util-linux |
5,000,616 |
3 |
0 |
0 |
35,944 |
0 |
17,520 |
791 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,718,452 |
0 |
0 |
0 |
35,944 |
0 |
17,503 |
1,117 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,712,648 |
1 |
0 |
0 |
35,952 |
0 |
17,439 |
1,115 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,596 |
0 |
0 |
0 |
3,616 |
0 |
870 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,514 |
0 |
0 |
0 |
3,616 |
0 |
999 |
99 |
dash |
| 22 |
no-host |
configure.yash |
316,227 |
0 |
0 |
0 |
3,616 |
0 |
860 |
151 |
osh-cpython |
| 30 |
no-host |
configure.yash |
178,992 |
0 |
0 |
0 |
3,624 |
0 |
855 |
92 |
osh-native |
| 38 |
no-host |
configure.yash |
178,651 |
0 |
0 |
0 |
3,624 |
0 |
856 |
103 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
0 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,888 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
381 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native-souffle |
Shell and Host