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 |
15 |
9 |
525 |
22 |
20 |
34.04 |
1.40 |
| bin-true |
no-host |
611 |
436 |
2,538 |
806 |
796 |
4.16 |
1.32 |
| configure.cpython |
no-host |
13,559 |
13,750 |
29,347 |
14,361 |
14,806 |
2.16 |
1.06 |
| configure.ocaml |
no-host |
3,606 |
3,743 |
4,605 |
3,676 |
3,709 |
1.28 |
1.02 |
| configure.tcc |
no-host |
45 |
42 |
219 |
48 |
48 |
4.83 |
1.07 |
| configure.util-linux |
no-host |
12,465 |
13,701 |
32,513 |
13,388 |
13,591 |
2.61 |
1.07 |
| configure.yash |
no-host |
1,671 |
1,732 |
2,396 |
1,689 |
1,694 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
66 |
3 |
3 |
56.16 |
2.44 |
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,419 |
1,156 |
24,833 |
3,474 |
3,343 |
10.27 |
1.44 |
| bin-true |
no-host |
101,938 |
49,405 |
836,104 |
139,258 |
134,244 |
8.20 |
1.37 |
| configure.cpython |
no-host |
1,634,035 |
1,643,339 |
5,953,809 |
1,808,941 |
1,791,179 |
3.64 |
1.11 |
| configure.ocaml |
no-host |
298,795 |
280,556 |
555,912 |
317,033 |
315,121 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,189 |
4,205 |
23,783 |
5,984 |
5,903 |
4.58 |
1.15 |
| configure.util-linux |
no-host |
1,536,625 |
1,697,510 |
4,968,102 |
1,719,959 |
1,706,503 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,565 |
159,538 |
315,617 |
179,782 |
178,941 |
1.82 |
1.04 |
| hello-world |
no-host |
151 |
86 |
3,873 |
382 |
377 |
25.65 |
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.8 |
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.8 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,361 |
1 |
62 |
15.2 |
34.4 |
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,388 |
3 |
58 |
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,676 |
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 |
48 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,689 |
1 |
2 |
2.6 |
33.1 |
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 |
10.0 |
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.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
796 |
1 |
2 |
2.6 |
8.4 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,806 |
2 |
64 |
15.2 |
34.6 |
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,591 |
3 |
60 |
21.4 |
39.5 |
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,709 |
1 |
2 |
2.7 |
28.8 |
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.0 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,694 |
1 |
2 |
2.6 |
33.3 |
140,017 |
8,069 |
6,703 |
6,528 |
68,348 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
15 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
525 |
472 |
56 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
611 |
316 |
332 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
436 |
270 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,538 |
926 |
1,894 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
806 |
319 |
503 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
796 |
303 |
506 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,559 |
7,348 |
6,588 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,750 |
7,508 |
6,630 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,347 |
16,048 |
15,258 |
34.8 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,361 |
7,235 |
7,422 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,806 |
7,353 |
7,454 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,606 |
1,438 |
1,207 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,743 |
1,470 |
1,295 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,605 |
2,063 |
1,762 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,676 |
1,438 |
1,280 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,709 |
1,464 |
1,284 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
17 |
29 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
27 |
15 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
153 |
70 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
21 |
28 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,465 |
6,534 |
6,379 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,701 |
6,692 |
7,501 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
32,513 |
20,299 |
13,310 |
39.8 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,388 |
6,225 |
7,393 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,591 |
6,223 |
7,447 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,671 |
941 |
739 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,732 |
954 |
777 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,396 |
1,402 |
1,035 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,689 |
919 |
773 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,694 |
940 |
756 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
66 |
49 |
17 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
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,419 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,833 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,474 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,343 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,938 |
0 |
0 |
0 |
8 |
0 |
1,987 |
52 |
bash |
| 9 |
no-host |
bin-true |
49,405 |
0 |
0 |
0 |
8 |
0 |
2,968 |
55 |
dash |
| 17 |
no-host |
bin-true |
836,104 |
0 |
0 |
0 |
8 |
0 |
1,979 |
124 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,258 |
0 |
0 |
0 |
16 |
0 |
1,971 |
76 |
osh-native |
| 33 |
no-host |
bin-true |
134,244 |
0 |
0 |
0 |
16 |
0 |
1,958 |
109 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,634,035 |
0 |
0 |
0 |
25,272 |
0 |
14,011 |
1,034 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,339 |
0 |
0 |
0 |
25,272 |
0 |
14,055 |
1,146 |
dash |
| 18 |
no-host |
configure.cpython |
5,953,809 |
1 |
0 |
0 |
25,272 |
0 |
12,866 |
961 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,808,941 |
0 |
0 |
0 |
25,280 |
0 |
12,877 |
1,082 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,791,179 |
0 |
0 |
0 |
25,280 |
0 |
12,821 |
1,085 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,795 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
203 |
bash |
| 12 |
no-host |
configure.ocaml |
280,556 |
0 |
0 |
0 |
4,432 |
0 |
2,097 |
186 |
dash |
| 20 |
no-host |
configure.ocaml |
555,912 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
196 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,033 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
197 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,121 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
175 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,189 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,783 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,984 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,903 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,625 |
0 |
0 |
0 |
35,944 |
0 |
18,956 |
1,084 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,510 |
1 |
0 |
0 |
35,936 |
0 |
17,090 |
1,241 |
dash |
| 19 |
no-host |
configure.util-linux |
4,968,102 |
2 |
0 |
0 |
35,952 |
0 |
17,527 |
863 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,719,959 |
0 |
0 |
0 |
35,944 |
0 |
17,495 |
1,054 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,706,503 |
1 |
0 |
0 |
35,944 |
0 |
17,525 |
1,067 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,565 |
0 |
0 |
0 |
3,616 |
0 |
876 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,538 |
0 |
0 |
0 |
3,616 |
0 |
992 |
101 |
dash |
| 22 |
no-host |
configure.yash |
315,617 |
0 |
0 |
0 |
3,616 |
0 |
862 |
100 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,782 |
0 |
0 |
0 |
3,624 |
0 |
858 |
90 |
osh-native |
| 38 |
no-host |
configure.yash |
178,941 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
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,873 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
382 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host