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 |
529 |
22 |
21 |
33.65 |
1.41 |
| bin-true |
no-host |
615 |
434 |
2,435 |
800 |
794 |
3.96 |
1.30 |
| configure.cpython |
no-host |
13,730 |
13,756 |
29,358 |
14,499 |
14,753 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,631 |
3,577 |
4,622 |
3,722 |
3,726 |
1.27 |
1.03 |
| configure.tcc |
no-host |
45 |
41 |
220 |
49 |
49 |
4.86 |
1.08 |
| configure.util-linux |
no-host |
12,425 |
13,257 |
31,923 |
13,493 |
13,702 |
2.57 |
1.09 |
| configure.yash |
no-host |
1,692 |
1,619 |
2,422 |
1,722 |
1,715 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
50.69 |
2.42 |
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,412 |
1,161 |
24,851 |
3,463 |
3,349 |
10.30 |
1.44 |
| bin-true |
no-host |
100,936 |
49,395 |
837,046 |
135,315 |
136,259 |
8.29 |
1.34 |
| configure.cpython |
no-host |
1,629,395 |
1,647,174 |
5,955,775 |
1,810,605 |
1,793,336 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,473 |
280,782 |
555,898 |
317,584 |
315,870 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,200 |
4,194 |
23,743 |
5,941 |
5,873 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,533,774 |
1,696,951 |
4,961,550 |
1,716,016 |
1,709,414 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,571 |
159,524 |
315,178 |
179,185 |
179,363 |
1.82 |
1.03 |
| hello-world |
no-host |
150 |
86 |
3,871 |
383 |
375 |
25.81 |
2.55 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
800 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,499 |
1 |
66 |
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,493 |
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,722 |
1 |
2 |
2.7 |
28.5 |
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,722 |
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 |
794 |
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,753 |
2 |
67 |
15.2 |
34.5 |
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,702 |
3 |
62 |
21.4 |
39.9 |
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,726 |
1 |
2 |
2.7 |
28.5 |
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.3 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,715 |
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 |
7 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
529 |
483 |
50 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
615 |
316 |
334 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
434 |
269 |
170 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,435 |
883 |
1,828 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
800 |
303 |
513 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
794 |
303 |
508 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,730 |
7,360 |
6,748 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,756 |
7,428 |
6,712 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,358 |
16,123 |
15,210 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,499 |
7,258 |
7,535 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,753 |
7,355 |
7,492 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,631 |
1,447 |
1,222 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,577 |
1,411 |
1,189 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,622 |
2,126 |
1,719 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,722 |
1,483 |
1,281 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,726 |
1,467 |
1,297 |
28.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
20 |
26 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
157 |
67 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
30 |
19 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,425 |
6,430 |
6,447 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,257 |
6,424 |
7,313 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
31,923 |
20,033 |
12,967 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,493 |
6,294 |
7,432 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,702 |
6,173 |
7,605 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,692 |
948 |
753 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,619 |
943 |
679 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,422 |
1,413 |
1,052 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,722 |
954 |
771 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,715 |
946 |
772 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
47 |
13 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,412 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,851 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,463 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,349 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,936 |
0 |
0 |
0 |
8 |
0 |
1,978 |
86 |
bash |
| 9 |
no-host |
bin-true |
49,395 |
0 |
0 |
0 |
8 |
0 |
2,977 |
56 |
dash |
| 17 |
no-host |
bin-true |
837,046 |
0 |
0 |
0 |
8 |
0 |
1,991 |
114 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,315 |
0 |
0 |
0 |
16 |
0 |
1,961 |
101 |
osh-native |
| 33 |
no-host |
bin-true |
136,259 |
0 |
0 |
0 |
16 |
0 |
1,976 |
71 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,629,395 |
0 |
0 |
0 |
25,272 |
0 |
14,024 |
1,092 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,174 |
0 |
0 |
0 |
25,272 |
0 |
14,094 |
1,050 |
dash |
| 18 |
no-host |
configure.cpython |
5,955,775 |
0 |
0 |
0 |
25,272 |
0 |
12,874 |
861 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,810,605 |
0 |
0 |
0 |
25,280 |
0 |
12,874 |
1,045 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,793,336 |
0 |
0 |
0 |
25,280 |
0 |
12,864 |
1,014 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,473 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,782 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
182 |
dash |
| 20 |
no-host |
configure.ocaml |
555,898 |
0 |
0 |
0 |
4,432 |
0 |
1,918 |
192 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,584 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
171 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,870 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
200 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,200 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,194 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,743 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,941 |
0 |
0 |
0 |
96 |
0 |
48 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,873 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,774 |
1 |
0 |
0 |
35,944 |
0 |
18,976 |
1,036 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,951 |
1 |
0 |
0 |
35,936 |
0 |
17,122 |
1,222 |
dash |
| 19 |
no-host |
configure.util-linux |
4,961,550 |
3 |
0 |
0 |
35,952 |
0 |
17,556 |
888 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,716,016 |
0 |
0 |
0 |
35,952 |
0 |
17,487 |
1,144 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,709,414 |
0 |
0 |
0 |
35,952 |
0 |
17,492 |
1,104 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,571 |
0 |
0 |
0 |
3,616 |
0 |
878 |
86 |
bash |
| 14 |
no-host |
configure.yash |
159,524 |
0 |
0 |
0 |
3,616 |
0 |
994 |
104 |
dash |
| 22 |
no-host |
configure.yash |
315,178 |
0 |
0 |
0 |
3,616 |
0 |
858 |
120 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,185 |
0 |
0 |
0 |
3,624 |
0 |
856 |
94 |
osh-native |
| 38 |
no-host |
configure.yash |
179,363 |
0 |
0 |
0 |
3,624 |
0 |
858 |
109 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
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,871 |
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 |
375 |
0 |
0 |
0 |
16 |
0 |
0 |
0 |
osh-native-souffle |
Shell and Host