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 |
10 |
529 |
22 |
21 |
33.66 |
1.40 |
| bin-true |
no-host |
636 |
462 |
2,464 |
825 |
815 |
3.87 |
1.30 |
| configure.cpython |
no-host |
14,126 |
13,921 |
29,595 |
14,726 |
14,819 |
2.10 |
1.04 |
| configure.ocaml |
no-host |
3,667 |
3,626 |
4,624 |
3,714 |
3,746 |
1.26 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
220 |
49 |
50 |
4.78 |
1.07 |
| configure.util-linux |
no-host |
12,700 |
13,453 |
32,475 |
13,645 |
13,794 |
2.56 |
1.07 |
| configure.yash |
no-host |
1,707 |
1,642 |
2,452 |
1,724 |
1,730 |
1.44 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.44 |
2.32 |
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,396 |
1,163 |
24,680 |
3,466 |
3,367 |
10.30 |
1.45 |
| bin-true |
no-host |
101,964 |
49,391 |
829,590 |
137,361 |
132,310 |
8.14 |
1.35 |
| configure.cpython |
no-host |
1,633,351 |
1,643,064 |
5,941,331 |
1,804,868 |
1,784,582 |
3.64 |
1.11 |
| configure.ocaml |
no-host |
298,384 |
280,744 |
554,327 |
316,838 |
315,112 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,199 |
4,197 |
23,758 |
5,947 |
5,895 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,536,219 |
1,691,380 |
4,960,725 |
1,715,812 |
1,716,421 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,456 |
159,576 |
315,141 |
179,109 |
178,746 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
87 |
3,876 |
385 |
376 |
25.50 |
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 |
6.9 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
825 |
1 |
2 |
2.6 |
8.8 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,726 |
1 |
66 |
15.2 |
34.5 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,645 |
3 |
60 |
21.4 |
39.6 |
2,707,121 |
126,354 |
66,586 |
113,463 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,714 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.1 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,724 |
1 |
2 |
2.6 |
33.3 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,367 |
64,438 |
42,639 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
815 |
1 |
2 |
2.6 |
8.1 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,819 |
1 |
64 |
15.2 |
34.5 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,794 |
3 |
58 |
21.4 |
39.7 |
2,707,121 |
126,347 |
66,579 |
113,465 |
1,294,567 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,746 |
1 |
2 |
2.7 |
28.5 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.3 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,730 |
1 |
2 |
2.6 |
33.4 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.0 |
116,366 |
64,433 |
42,634 |
4,563 |
54,471 |
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 |
7 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
5 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
529 |
474 |
59 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
6 |
15 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
636 |
314 |
362 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
462 |
281 |
188 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,464 |
881 |
1,845 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
825 |
310 |
534 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
815 |
311 |
521 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,126 |
7,476 |
7,043 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,921 |
7,389 |
6,939 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,595 |
16,193 |
15,366 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,726 |
7,291 |
7,744 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,819 |
7,294 |
7,705 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,667 |
1,414 |
1,291 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,626 |
1,435 |
1,216 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,624 |
2,105 |
1,735 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,714 |
1,456 |
1,300 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,746 |
1,440 |
1,346 |
28.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
18 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
156 |
68 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
21 |
29 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
21 |
29 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,700 |
6,462 |
6,721 |
39.4 |
bash |
| 11 |
no-host |
configure.util-linux |
13,453 |
6,434 |
7,511 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,475 |
20,220 |
13,338 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,645 |
6,170 |
7,719 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,794 |
6,167 |
7,713 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,707 |
909 |
807 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,642 |
891 |
752 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,452 |
1,448 |
1,048 |
33.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,724 |
915 |
813 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,730 |
995 |
738 |
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.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
43 |
18 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.9 |
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,396 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,163 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
24,680 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,466 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,367 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,964 |
0 |
0 |
0 |
8 |
0 |
1,968 |
82 |
bash |
| 9 |
no-host |
bin-true |
49,391 |
0 |
0 |
0 |
8 |
0 |
2,980 |
62 |
dash |
| 17 |
no-host |
bin-true |
829,590 |
0 |
0 |
0 |
8 |
0 |
1,980 |
266 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,361 |
0 |
0 |
0 |
16 |
0 |
1,982 |
80 |
osh-native |
| 33 |
no-host |
bin-true |
132,310 |
0 |
0 |
0 |
16 |
0 |
1,966 |
108 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,633,351 |
0 |
0 |
0 |
25,272 |
0 |
14,055 |
1,166 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,064 |
0 |
0 |
0 |
25,272 |
0 |
14,074 |
1,172 |
dash |
| 18 |
no-host |
configure.cpython |
5,941,331 |
0 |
0 |
0 |
25,272 |
0 |
12,863 |
1,135 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,804,868 |
0 |
0 |
0 |
25,280 |
0 |
12,867 |
1,095 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,784,582 |
0 |
0 |
0 |
25,280 |
0 |
12,860 |
1,205 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,384 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
229 |
bash |
| 12 |
no-host |
configure.ocaml |
280,744 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
217 |
dash |
| 20 |
no-host |
configure.ocaml |
554,327 |
0 |
0 |
0 |
4,432 |
0 |
1,911 |
207 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,838 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
212 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,112 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
216 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,199 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,197 |
0 |
0 |
0 |
88 |
0 |
51 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,758 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,947 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,895 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,219 |
0 |
0 |
0 |
35,944 |
0 |
18,929 |
1,192 |
bash |
| 11 |
no-host |
configure.util-linux |
1,691,380 |
0 |
0 |
0 |
35,936 |
0 |
16,949 |
1,368 |
dash |
| 19 |
no-host |
configure.util-linux |
4,960,725 |
1 |
0 |
0 |
35,944 |
0 |
17,524 |
1,095 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,812 |
4 |
0 |
0 |
35,944 |
0 |
17,419 |
1,095 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,716,421 |
3 |
0 |
0 |
35,944 |
0 |
17,521 |
1,105 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,456 |
0 |
0 |
0 |
3,616 |
0 |
875 |
124 |
bash |
| 14 |
no-host |
configure.yash |
159,576 |
0 |
0 |
0 |
3,624 |
0 |
998 |
120 |
dash |
| 22 |
no-host |
configure.yash |
315,141 |
0 |
0 |
0 |
3,616 |
0 |
862 |
110 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,109 |
0 |
0 |
0 |
3,624 |
0 |
854 |
123 |
osh-native |
| 38 |
no-host |
configure.yash |
178,746 |
0 |
0 |
0 |
3,624 |
0 |
855 |
136 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,876 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
376 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host