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 |
528 |
22 |
21 |
33.16 |
1.37 |
| bin-true |
no-host |
638 |
456 |
2,493 |
821 |
825 |
3.91 |
1.29 |
| configure.cpython |
no-host |
13,858 |
13,858 |
29,304 |
14,594 |
14,643 |
2.11 |
1.05 |
| configure.ocaml |
no-host |
3,689 |
3,619 |
4,622 |
3,717 |
3,927 |
1.25 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
220 |
49 |
50 |
4.81 |
1.07 |
| configure.util-linux |
no-host |
12,609 |
13,382 |
32,140 |
13,763 |
13,840 |
2.55 |
1.09 |
| configure.yash |
no-host |
1,706 |
1,640 |
2,419 |
1,716 |
1,731 |
1.42 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.02 |
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,390 |
1,181 |
24,873 |
3,476 |
3,390 |
10.41 |
1.45 |
| bin-true |
no-host |
100,926 |
49,374 |
836,044 |
135,298 |
137,308 |
8.28 |
1.34 |
| configure.cpython |
no-host |
1,630,256 |
1,629,712 |
5,956,402 |
1,810,438 |
1,792,402 |
3.65 |
1.11 |
| configure.ocaml |
no-host |
298,568 |
281,155 |
556,128 |
316,763 |
316,407 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,180 |
4,214 |
23,723 |
5,940 |
5,910 |
4.58 |
1.15 |
| configure.util-linux |
no-host |
1,536,615 |
1,691,937 |
4,963,116 |
1,715,356 |
1,711,814 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,530 |
159,560 |
315,395 |
179,011 |
179,095 |
1.82 |
1.03 |
| hello-world |
no-host |
151 |
89 |
3,871 |
385 |
378 |
25.64 |
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 |
821 |
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,594 |
1 |
62 |
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,763 |
3 |
59 |
21.4 |
39.7 |
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,717 |
1 |
2 |
2.7 |
28.6 |
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.0 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,716 |
1 |
2 |
2.6 |
33.5 |
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.7 |
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 |
825 |
1 |
2 |
2.6 |
8.7 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,643 |
1 |
62 |
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,840 |
3 |
58 |
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,927 |
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 |
50 |
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,731 |
1 |
2 |
2.6 |
33.1 |
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 |
8 |
9 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
528 |
472 |
59 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
638 |
317 |
360 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
456 |
291 |
172 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,493 |
877 |
1,881 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
821 |
310 |
532 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
825 |
315 |
528 |
8.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,858 |
7,312 |
6,936 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,858 |
7,467 |
6,756 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,304 |
16,025 |
15,208 |
34.7 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,594 |
7,294 |
7,610 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,643 |
7,268 |
7,517 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,689 |
1,451 |
1,278 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,619 |
1,455 |
1,189 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,622 |
2,117 |
1,726 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,717 |
1,453 |
1,307 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,927 |
1,532 |
1,437 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
158 |
66 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
28 |
21 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
30 |
21 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,609 |
6,444 |
6,640 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
13,382 |
6,396 |
7,479 |
39.3 |
dash |
| 19 |
no-host |
configure.util-linux |
32,140 |
20,103 |
13,099 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,763 |
6,294 |
7,721 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,840 |
6,240 |
7,699 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,706 |
908 |
808 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,640 |
907 |
736 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,419 |
1,422 |
1,039 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,716 |
925 |
794 |
33.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,731 |
932 |
802 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
44 |
16 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
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,390 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,181 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,873 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,476 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,390 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,926 |
0 |
0 |
0 |
8 |
0 |
1,979 |
173 |
bash |
| 9 |
no-host |
bin-true |
49,374 |
0 |
0 |
0 |
8 |
0 |
2,965 |
53 |
dash |
| 17 |
no-host |
bin-true |
836,044 |
0 |
0 |
0 |
8 |
0 |
1,985 |
373 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,298 |
0 |
0 |
0 |
16 |
0 |
1,977 |
121 |
osh-native |
| 33 |
no-host |
bin-true |
137,308 |
0 |
0 |
0 |
16 |
0 |
1,973 |
117 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,630,256 |
1 |
0 |
0 |
25,272 |
0 |
14,021 |
1,226 |
bash |
| 10 |
no-host |
configure.cpython |
1,629,712 |
0 |
0 |
0 |
25,272 |
0 |
14,069 |
1,353 |
dash |
| 18 |
no-host |
configure.cpython |
5,956,402 |
0 |
0 |
0 |
25,272 |
0 |
12,871 |
1,258 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,810,438 |
0 |
0 |
0 |
25,280 |
0 |
12,908 |
1,278 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,792,402 |
0 |
0 |
0 |
25,280 |
0 |
12,849 |
1,304 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,568 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
281,155 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
556,128 |
0 |
0 |
0 |
4,432 |
0 |
1,922 |
221 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,763 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
209 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,407 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
219 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,180 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,723 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,940 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,910 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,615 |
0 |
0 |
0 |
35,944 |
0 |
18,864 |
1,161 |
bash |
| 11 |
no-host |
configure.util-linux |
1,691,937 |
0 |
0 |
0 |
35,936 |
0 |
16,982 |
1,511 |
dash |
| 19 |
no-host |
configure.util-linux |
4,963,116 |
5 |
0 |
0 |
35,944 |
0 |
17,547 |
1,206 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,356 |
2 |
0 |
0 |
35,944 |
0 |
17,503 |
1,078 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,711,814 |
3 |
0 |
0 |
35,952 |
0 |
17,476 |
1,086 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,530 |
0 |
0 |
0 |
3,616 |
0 |
873 |
122 |
bash |
| 14 |
no-host |
configure.yash |
159,560 |
0 |
0 |
0 |
3,624 |
0 |
1,004 |
123 |
dash |
| 22 |
no-host |
configure.yash |
315,395 |
0 |
0 |
0 |
3,616 |
0 |
858 |
118 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,011 |
0 |
0 |
0 |
3,624 |
0 |
856 |
134 |
osh-native |
| 38 |
no-host |
configure.yash |
179,095 |
0 |
0 |
0 |
3,624 |
0 |
857 |
138 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
89 |
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 |
385 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host