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 |
524 |
22 |
21 |
32.46 |
1.36 |
| bin-true |
no-host |
645 |
455 |
2,476 |
809 |
810 |
3.84 |
1.25 |
| configure.cpython |
no-host |
13,884 |
13,941 |
29,160 |
14,754 |
14,777 |
2.10 |
1.06 |
| configure.ocaml |
no-host |
3,702 |
3,617 |
4,630 |
3,757 |
3,730 |
1.25 |
1.01 |
| configure.tcc |
no-host |
47 |
43 |
222 |
50 |
49 |
4.70 |
1.06 |
| configure.util-linux |
no-host |
12,692 |
13,396 |
31,945 |
13,698 |
13,771 |
2.52 |
1.08 |
| configure.yash |
no-host |
1,718 |
1,667 |
2,440 |
1,742 |
1,737 |
1.42 |
1.01 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.15 |
2.29 |
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,423 |
1,182 |
24,687 |
3,462 |
3,337 |
10.19 |
1.43 |
| bin-true |
no-host |
101,986 |
49,352 |
831,590 |
133,306 |
132,363 |
8.15 |
1.31 |
| configure.cpython |
no-host |
1,630,341 |
1,643,392 |
5,947,135 |
1,814,177 |
1,801,133 |
3.65 |
1.11 |
| configure.ocaml |
no-host |
299,050 |
280,811 |
554,983 |
316,730 |
315,271 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,232 |
4,193 |
23,751 |
5,956 |
5,865 |
4.54 |
1.14 |
| configure.util-linux |
no-host |
1,536,928 |
1,692,444 |
4,957,822 |
1,723,239 |
1,704,162 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,792 |
159,524 |
315,210 |
179,741 |
179,193 |
1.81 |
1.03 |
| hello-world |
no-host |
153 |
84 |
3,880 |
383 |
378 |
25.36 |
2.50 |
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 |
809 |
1 |
2 |
2.6 |
8.7 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,754 |
1 |
68 |
15.2 |
34.6 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,698 |
3 |
62 |
21.4 |
39.7 |
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,757 |
1 |
2 |
2.7 |
28.7 |
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,742 |
1 |
2 |
2.6 |
33.1 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.7 |
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 |
810 |
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 |
14,777 |
1 |
64 |
15.2 |
34.4 |
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,771 |
3 |
60 |
21.4 |
39.5 |
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,730 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,737 |
1 |
2 |
2.6 |
33.5 |
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.2 |
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 |
7 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
524 |
471 |
57 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
645 |
336 |
350 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
455 |
283 |
179 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,476 |
919 |
1,819 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
809 |
301 |
525 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
810 |
311 |
516 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,884 |
7,408 |
6,860 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,941 |
7,418 |
6,928 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,160 |
15,996 |
15,093 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,754 |
7,318 |
7,748 |
34.6 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,777 |
7,222 |
7,720 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,702 |
1,456 |
1,280 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,617 |
1,400 |
1,240 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,630 |
2,073 |
1,777 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,757 |
1,481 |
1,317 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,730 |
1,482 |
1,288 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
28 |
15 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
159 |
67 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
28 |
22 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,692 |
6,527 |
6,634 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,396 |
6,375 |
7,510 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
31,945 |
19,899 |
13,100 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,698 |
6,163 |
7,777 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,771 |
6,250 |
7,611 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,718 |
967 |
759 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,667 |
925 |
745 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,440 |
1,447 |
1,035 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,742 |
946 |
800 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,737 |
963 |
776 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
44 |
17 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,423 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,182 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
24,687 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,462 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,337 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,986 |
0 |
0 |
0 |
8 |
0 |
1,984 |
74 |
bash |
| 9 |
no-host |
bin-true |
49,352 |
0 |
0 |
0 |
8 |
0 |
2,961 |
50 |
dash |
| 17 |
no-host |
bin-true |
831,590 |
0 |
0 |
0 |
8 |
0 |
1,986 |
229 |
osh-cpython |
| 25 |
no-host |
bin-true |
133,306 |
0 |
0 |
0 |
16 |
0 |
1,958 |
110 |
osh-native |
| 33 |
no-host |
bin-true |
132,363 |
0 |
0 |
0 |
16 |
0 |
1,964 |
104 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,630,341 |
0 |
0 |
0 |
25,272 |
0 |
14,030 |
1,131 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,392 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,099 |
dash |
| 18 |
no-host |
configure.cpython |
5,947,135 |
0 |
0 |
0 |
25,272 |
0 |
12,879 |
1,211 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,814,177 |
0 |
0 |
0 |
25,280 |
0 |
12,946 |
1,396 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,801,133 |
1 |
0 |
0 |
25,288 |
0 |
12,872 |
1,170 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,050 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
226 |
bash |
| 12 |
no-host |
configure.ocaml |
280,811 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
554,983 |
0 |
0 |
0 |
4,432 |
0 |
1,909 |
182 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,730 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
210 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,271 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
238 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,232 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,193 |
0 |
0 |
0 |
88 |
0 |
52 |
8 |
dash |
| 21 |
no-host |
configure.tcc |
23,751 |
0 |
0 |
0 |
88 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,956 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,865 |
0 |
0 |
0 |
96 |
0 |
46 |
7 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,928 |
0 |
0 |
0 |
35,944 |
0 |
18,952 |
1,134 |
bash |
| 11 |
no-host |
configure.util-linux |
1,692,444 |
1 |
0 |
0 |
35,936 |
0 |
16,965 |
1,421 |
dash |
| 19 |
no-host |
configure.util-linux |
4,957,822 |
0 |
0 |
0 |
35,952 |
0 |
17,527 |
1,156 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,239 |
2 |
0 |
0 |
35,944 |
0 |
17,564 |
1,081 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,704,162 |
4 |
0 |
0 |
35,944 |
0 |
17,364 |
1,054 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,792 |
0 |
0 |
0 |
3,616 |
0 |
874 |
156 |
bash |
| 14 |
no-host |
configure.yash |
159,524 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
127 |
dash |
| 22 |
no-host |
configure.yash |
315,210 |
0 |
0 |
0 |
3,616 |
0 |
858 |
137 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,741 |
0 |
0 |
0 |
3,624 |
0 |
859 |
115 |
osh-native |
| 38 |
no-host |
configure.yash |
179,193 |
0 |
0 |
0 |
3,624 |
0 |
856 |
140 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,880 |
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 |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host