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 |
528 |
23 |
21 |
32.09 |
1.39 |
| bin-true |
no-host |
639 |
458 |
2,485 |
836 |
820 |
3.89 |
1.31 |
| configure.cpython |
no-host |
14,654 |
14,270 |
29,955 |
15,004 |
15,158 |
2.04 |
1.02 |
| configure.ocaml |
no-host |
3,773 |
3,714 |
4,746 |
3,807 |
3,790 |
1.26 |
1.01 |
| configure.tcc |
no-host |
47 |
43 |
228 |
50 |
50 |
4.88 |
1.07 |
| configure.util-linux |
no-host |
12,872 |
13,747 |
32,885 |
14,059 |
13,995 |
2.55 |
1.09 |
| configure.yash |
no-host |
1,747 |
1,690 |
2,518 |
1,789 |
1,771 |
1.44 |
1.02 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
47.33 |
2.37 |
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,198 |
24,656 |
3,446 |
3,379 |
10.29 |
1.44 |
| bin-true |
no-host |
99,917 |
49,337 |
829,085 |
137,304 |
133,215 |
8.30 |
1.37 |
| configure.cpython |
no-host |
1,621,137 |
1,648,900 |
5,963,670 |
1,791,880 |
1,793,650 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
298,783 |
280,978 |
554,335 |
317,015 |
316,769 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,201 |
4,200 |
23,724 |
5,967 |
5,892 |
4.56 |
1.15 |
| configure.util-linux |
no-host |
1,531,216 |
1,698,128 |
4,959,056 |
1,722,470 |
1,706,097 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,514 |
159,598 |
314,646 |
179,147 |
179,055 |
1.81 |
1.03 |
| hello-world |
no-host |
154 |
87 |
3,884 |
386 |
377 |
25.22 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
836 |
1 |
2 |
2.6 |
8.9 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,004 |
2 |
70 |
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 |
14,059 |
3 |
64 |
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,807 |
1 |
2 |
2.7 |
28.5 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.0 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,789 |
1 |
2 |
2.6 |
33.5 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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 |
820 |
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 |
15,158 |
1 |
66 |
15.2 |
34.3 |
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,995 |
3 |
60 |
21.4 |
39.9 |
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,790 |
1 |
2 |
2.7 |
28.7 |
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.1 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,771 |
1 |
2 |
2.6 |
33.3 |
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.3 |
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 |
10 |
7 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
528 |
471 |
60 |
22.6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
10 |
13 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
639 |
309 |
368 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
458 |
291 |
174 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,485 |
935 |
1,819 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
836 |
319 |
534 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
820 |
296 |
541 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,654 |
7,515 |
6,994 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,270 |
7,571 |
7,077 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,955 |
16,289 |
15,667 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,004 |
7,479 |
7,838 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,158 |
7,414 |
7,824 |
34.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,773 |
1,492 |
1,316 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,714 |
1,426 |
1,269 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,746 |
2,127 |
1,841 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,807 |
1,486 |
1,364 |
28.5 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,790 |
1,489 |
1,343 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
29 |
14 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
228 |
171 |
61 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
24 |
27 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
23 |
27 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,872 |
6,541 |
6,797 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,747 |
6,400 |
7,742 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,885 |
20,348 |
13,642 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,059 |
6,285 |
8,009 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,995 |
6,326 |
7,758 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,747 |
939 |
815 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,690 |
975 |
716 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,518 |
1,472 |
1,088 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,789 |
967 |
825 |
33.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,771 |
958 |
815 |
33.3 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
41 |
20 |
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.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,198 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,656 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,446 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,379 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,917 |
0 |
0 |
0 |
8 |
0 |
1,981 |
139 |
bash |
| 9 |
no-host |
bin-true |
49,337 |
0 |
0 |
0 |
8 |
0 |
2,972 |
59 |
dash |
| 17 |
no-host |
bin-true |
829,085 |
0 |
0 |
0 |
8 |
0 |
1,974 |
328 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,304 |
0 |
0 |
0 |
16 |
0 |
1,961 |
123 |
osh-native |
| 33 |
no-host |
bin-true |
133,215 |
0 |
0 |
0 |
16 |
0 |
1,952 |
108 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,621,137 |
0 |
0 |
0 |
25,272 |
0 |
14,030 |
1,162 |
bash |
| 10 |
no-host |
configure.cpython |
1,648,900 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
1,166 |
dash |
| 18 |
no-host |
configure.cpython |
5,963,670 |
0 |
0 |
0 |
25,272 |
0 |
12,875 |
1,017 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,791,880 |
0 |
0 |
0 |
25,280 |
0 |
12,833 |
1,123 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,793,650 |
0 |
0 |
0 |
25,280 |
0 |
12,856 |
1,129 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,783 |
0 |
0 |
0 |
4,432 |
0 |
2,028 |
217 |
bash |
| 12 |
no-host |
configure.ocaml |
280,978 |
0 |
0 |
0 |
4,432 |
0 |
2,096 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
554,335 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
205 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,015 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
217 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,769 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
222 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,201 |
0 |
0 |
0 |
80 |
0 |
49 |
7 |
bash |
| 13 |
no-host |
configure.tcc |
4,200 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,724 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,967 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,892 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,531,216 |
3 |
0 |
0 |
35,944 |
0 |
18,925 |
1,143 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,128 |
0 |
0 |
0 |
35,936 |
0 |
17,027 |
1,311 |
dash |
| 19 |
no-host |
configure.util-linux |
4,959,056 |
6 |
0 |
0 |
35,944 |
0 |
17,529 |
1,059 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,722,470 |
1 |
0 |
0 |
35,944 |
0 |
17,500 |
1,079 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,706,097 |
4 |
0 |
0 |
35,944 |
0 |
17,485 |
1,014 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,514 |
0 |
0 |
0 |
3,616 |
0 |
879 |
153 |
bash |
| 14 |
no-host |
configure.yash |
159,598 |
0 |
0 |
0 |
3,616 |
0 |
997 |
130 |
dash |
| 22 |
no-host |
configure.yash |
314,646 |
0 |
0 |
0 |
3,616 |
0 |
855 |
159 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,147 |
0 |
0 |
0 |
3,624 |
0 |
855 |
149 |
osh-native |
| 38 |
no-host |
configure.yash |
179,055 |
0 |
0 |
0 |
3,624 |
0 |
862 |
139 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
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,884 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
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