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 |
530 |
22 |
21 |
33.58 |
1.37 |
| bin-true |
no-host |
647 |
448 |
2,446 |
798 |
802 |
3.78 |
1.23 |
| configure.cpython |
no-host |
13,700 |
13,726 |
29,486 |
14,541 |
14,708 |
2.15 |
1.06 |
| configure.ocaml |
no-host |
3,645 |
3,605 |
4,623 |
3,709 |
3,744 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
225 |
49 |
50 |
4.90 |
1.07 |
| configure.util-linux |
no-host |
12,555 |
13,227 |
32,267 |
13,503 |
13,648 |
2.57 |
1.08 |
| configure.yash |
no-host |
1,686 |
1,627 |
2,415 |
1,721 |
1,740 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
50.64 |
2.41 |
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,410 |
1,181 |
24,847 |
3,455 |
3,364 |
10.31 |
1.43 |
| bin-true |
no-host |
99,992 |
49,352 |
836,055 |
135,190 |
136,297 |
8.36 |
1.35 |
| configure.cpython |
no-host |
1,619,012 |
1,632,022 |
5,945,835 |
1,797,580 |
1,800,420 |
3.67 |
1.11 |
| configure.ocaml |
no-host |
298,717 |
280,755 |
555,368 |
316,298 |
316,119 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,229 |
4,205 |
23,764 |
5,981 |
5,932 |
4.54 |
1.14 |
| configure.util-linux |
no-host |
1,528,662 |
1,692,970 |
4,965,574 |
1,715,008 |
1,714,112 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,578 |
159,494 |
315,038 |
178,862 |
179,291 |
1.81 |
1.03 |
| hello-world |
no-host |
153 |
88 |
3,876 |
381 |
378 |
25.33 |
2.49 |
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 |
798 |
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 |
14,541 |
1 |
65 |
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,503 |
3 |
60 |
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,709 |
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 |
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,721 |
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.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.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
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,708 |
1 |
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,648 |
3 |
61 |
21.4 |
39.6 |
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,744 |
1 |
2 |
2.7 |
28.7 |
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.2 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,740 |
1 |
2 |
2.6 |
33.5 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
530 |
476 |
57 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
647 |
311 |
373 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
448 |
274 |
180 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,446 |
868 |
1,850 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
798 |
315 |
498 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
802 |
307 |
511 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,700 |
7,401 |
6,669 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,726 |
7,430 |
6,688 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,486 |
16,247 |
15,229 |
34.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,541 |
7,294 |
7,544 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,708 |
7,269 |
7,534 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,645 |
1,481 |
1,203 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,605 |
1,489 |
1,138 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,623 |
2,101 |
1,743 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,709 |
1,460 |
1,291 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,744 |
1,484 |
1,302 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
21 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
22 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
225 |
162 |
67 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
25 |
25 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,555 |
6,514 |
6,494 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,227 |
6,337 |
7,374 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,267 |
20,285 |
13,065 |
39.8 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,503 |
6,221 |
7,509 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,648 |
6,158 |
7,571 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,686 |
941 |
750 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,627 |
924 |
704 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,415 |
1,471 |
986 |
33.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,721 |
924 |
801 |
33.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,740 |
972 |
771 |
33.5 |
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 |
61 |
38 |
23 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,181 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,847 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,455 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,364 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,992 |
0 |
0 |
0 |
8 |
0 |
1,970 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,352 |
0 |
0 |
0 |
8 |
0 |
2,976 |
66 |
dash |
| 17 |
no-host |
bin-true |
836,055 |
0 |
0 |
0 |
8 |
0 |
1,987 |
112 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,190 |
0 |
0 |
0 |
16 |
0 |
1,971 |
106 |
osh-native |
| 33 |
no-host |
bin-true |
136,297 |
0 |
0 |
0 |
16 |
0 |
1,975 |
81 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,619,012 |
0 |
0 |
0 |
25,272 |
0 |
14,025 |
1,069 |
bash |
| 10 |
no-host |
configure.cpython |
1,632,022 |
0 |
0 |
0 |
25,272 |
0 |
14,055 |
1,027 |
dash |
| 18 |
no-host |
configure.cpython |
5,945,835 |
0 |
0 |
0 |
25,272 |
0 |
12,850 |
904 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,797,580 |
0 |
0 |
0 |
25,280 |
0 |
12,827 |
1,149 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,800,420 |
0 |
0 |
0 |
25,280 |
0 |
12,807 |
1,064 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,717 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
180 |
bash |
| 12 |
no-host |
configure.ocaml |
280,755 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
176 |
dash |
| 20 |
no-host |
configure.ocaml |
555,368 |
0 |
0 |
0 |
4,432 |
0 |
1,917 |
187 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,298 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
176 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,119 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
217 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,229 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,205 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,764 |
0 |
0 |
0 |
88 |
0 |
52 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,981 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,932 |
0 |
0 |
0 |
96 |
0 |
47 |
17 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,528,662 |
0 |
0 |
0 |
35,944 |
0 |
18,737 |
1,137 |
bash |
| 11 |
no-host |
configure.util-linux |
1,692,970 |
2 |
0 |
0 |
35,936 |
0 |
17,099 |
1,269 |
dash |
| 19 |
no-host |
configure.util-linux |
4,965,574 |
0 |
0 |
0 |
35,944 |
0 |
17,516 |
867 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,008 |
2 |
0 |
0 |
35,944 |
0 |
17,456 |
1,092 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,714,112 |
1 |
0 |
0 |
35,944 |
0 |
17,378 |
1,093 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,578 |
0 |
0 |
0 |
3,616 |
0 |
871 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,494 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
103 |
dash |
| 22 |
no-host |
configure.yash |
315,038 |
0 |
0 |
0 |
3,616 |
0 |
859 |
105 |
osh-cpython |
| 30 |
no-host |
configure.yash |
178,862 |
0 |
0 |
0 |
3,624 |
0 |
860 |
94 |
osh-native |
| 38 |
no-host |
configure.yash |
179,291 |
0 |
0 |
0 |
3,624 |
0 |
856 |
107 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,876 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
381 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host