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 |
540 |
22 |
21 |
35.06 |
1.43 |
| bin-true |
no-host |
614 |
436 |
2,464 |
812 |
807 |
4.01 |
1.32 |
| configure.cpython |
no-host |
13,915 |
13,997 |
30,316 |
15,184 |
15,252 |
2.18 |
1.09 |
| configure.ocaml |
no-host |
3,684 |
3,672 |
4,832 |
3,839 |
3,808 |
1.31 |
1.04 |
| configure.tcc |
no-host |
46 |
41 |
227 |
51 |
49 |
4.96 |
1.10 |
| configure.util-linux |
no-host |
12,664 |
13,597 |
33,281 |
14,056 |
14,091 |
2.63 |
1.11 |
| configure.yash |
no-host |
1,711 |
1,674 |
2,556 |
1,820 |
1,763 |
1.49 |
1.06 |
| hello-world |
no-host |
1 |
1 |
64 |
3 |
3 |
51.90 |
2.50 |
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,359 |
1,162 |
24,845 |
3,466 |
3,377 |
10.53 |
1.47 |
| bin-true |
no-host |
101,870 |
49,386 |
835,063 |
137,281 |
136,266 |
8.20 |
1.35 |
| configure.cpython |
no-host |
1,628,402 |
1,642,083 |
5,955,880 |
1,802,514 |
1,798,779 |
3.66 |
1.11 |
| configure.ocaml |
no-host |
298,608 |
280,862 |
556,045 |
317,003 |
316,725 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,245 |
4,243 |
23,771 |
5,934 |
5,896 |
4.53 |
1.13 |
| configure.util-linux |
no-host |
1,534,902 |
1,697,937 |
4,963,474 |
1,719,140 |
1,708,596 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,455 |
159,520 |
315,436 |
179,848 |
178,912 |
1.82 |
1.04 |
| hello-world |
no-host |
153 |
87 |
3,874 |
384 |
375 |
25.32 |
2.51 |
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 |
812 |
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 |
15,184 |
1 |
70 |
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 |
14,056 |
3 |
65 |
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,839 |
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 |
51 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,820 |
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.3 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
807 |
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 |
15,252 |
1 |
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 |
14,091 |
3 |
63 |
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,808 |
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 |
49 |
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,763 |
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 |
21 |
1 |
2 |
2.8 |
9.3 |
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 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
540 |
479 |
65 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
614 |
307 |
343 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
436 |
265 |
176 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,464 |
939 |
1,797 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
812 |
302 |
527 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
807 |
310 |
513 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,915 |
7,466 |
6,820 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,997 |
7,549 |
6,830 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
30,316 |
16,567 |
15,766 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,184 |
7,560 |
7,912 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,252 |
7,610 |
7,695 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,684 |
1,427 |
1,295 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,672 |
1,490 |
1,203 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,832 |
2,147 |
1,919 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,839 |
1,477 |
1,395 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,808 |
1,473 |
1,375 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
21 |
25 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
227 |
161 |
71 |
26.0 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
22 |
29 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
24 |
26 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,664 |
6,582 |
6,540 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,597 |
6,575 |
7,493 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
33,281 |
20,751 |
13,646 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,056 |
6,488 |
7,777 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,091 |
6,363 |
7,789 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,711 |
961 |
758 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,674 |
912 |
763 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,556 |
1,517 |
1,078 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,820 |
992 |
830 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,763 |
952 |
812 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
64 |
42 |
22 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.3 |
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,359 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,845 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,466 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,377 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,870 |
0 |
0 |
0 |
8 |
0 |
1,973 |
77 |
bash |
| 9 |
no-host |
bin-true |
49,386 |
0 |
0 |
0 |
8 |
0 |
2,967 |
57 |
dash |
| 17 |
no-host |
bin-true |
835,063 |
0 |
0 |
0 |
8 |
0 |
1,990 |
145 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,281 |
0 |
0 |
0 |
16 |
0 |
1,970 |
84 |
osh-native |
| 33 |
no-host |
bin-true |
136,266 |
0 |
0 |
0 |
16 |
0 |
1,976 |
89 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,628,402 |
0 |
0 |
0 |
25,272 |
0 |
14,061 |
1,039 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,083 |
0 |
0 |
0 |
25,272 |
0 |
14,097 |
1,061 |
dash |
| 18 |
no-host |
configure.cpython |
5,955,880 |
0 |
0 |
0 |
25,272 |
0 |
12,877 |
866 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,802,514 |
0 |
0 |
0 |
25,280 |
0 |
12,813 |
1,049 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,798,779 |
0 |
0 |
0 |
25,280 |
0 |
12,812 |
1,054 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,608 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
206 |
bash |
| 12 |
no-host |
configure.ocaml |
280,862 |
0 |
0 |
0 |
4,432 |
0 |
2,096 |
192 |
dash |
| 20 |
no-host |
configure.ocaml |
556,045 |
0 |
0 |
0 |
4,432 |
0 |
1,913 |
193 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,003 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
193 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,725 |
0 |
0 |
0 |
4,440 |
0 |
1,991 |
222 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,245 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,243 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,771 |
0 |
0 |
0 |
88 |
0 |
52 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,934 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,896 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,534,902 |
0 |
0 |
0 |
35,944 |
0 |
18,950 |
1,090 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,937 |
2 |
0 |
0 |
35,936 |
0 |
17,061 |
1,270 |
dash |
| 19 |
no-host |
configure.util-linux |
4,963,474 |
2 |
0 |
0 |
35,944 |
0 |
17,496 |
933 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,719,140 |
2 |
0 |
0 |
35,952 |
0 |
17,515 |
1,068 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,708,596 |
0 |
0 |
0 |
35,952 |
0 |
17,520 |
1,116 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,455 |
0 |
0 |
0 |
3,616 |
0 |
875 |
107 |
bash |
| 14 |
no-host |
configure.yash |
159,520 |
0 |
0 |
0 |
3,616 |
0 |
998 |
81 |
dash |
| 22 |
no-host |
configure.yash |
315,436 |
0 |
0 |
0 |
3,616 |
0 |
860 |
100 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,848 |
0 |
0 |
0 |
3,624 |
0 |
855 |
105 |
osh-native |
| 38 |
no-host |
configure.yash |
178,912 |
0 |
0 |
0 |
3,624 |
0 |
857 |
109 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,874 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
384 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native-souffle |
Shell and Host