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 |
574 |
22 |
21 |
37.02 |
1.40 |
| bin-true |
no-host |
610 |
433 |
2,443 |
813 |
787 |
4.00 |
1.33 |
| configure.cpython |
no-host |
13,723 |
13,838 |
29,124 |
14,441 |
14,639 |
2.12 |
1.05 |
| configure.ocaml |
no-host |
3,632 |
3,579 |
4,604 |
3,699 |
3,677 |
1.27 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
220 |
49 |
48 |
4.87 |
1.09 |
| configure.util-linux |
no-host |
12,407 |
13,320 |
32,035 |
13,484 |
13,607 |
2.58 |
1.09 |
| configure.yash |
no-host |
1,670 |
1,615 |
2,395 |
1,701 |
1,697 |
1.43 |
1.02 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
50.11 |
2.57 |
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,409 |
1,151 |
24,733 |
3,513 |
3,361 |
10.27 |
1.46 |
| bin-true |
no-host |
97,931 |
49,352 |
839,443 |
140,263 |
132,252 |
8.57 |
1.43 |
| configure.cpython |
no-host |
1,625,659 |
1,645,544 |
5,986,100 |
1,800,452 |
1,783,856 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
298,904 |
280,671 |
558,198 |
316,771 |
315,992 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,211 |
4,192 |
23,949 |
5,970 |
5,869 |
4.60 |
1.15 |
| configure.util-linux |
no-host |
1,535,585 |
1,697,021 |
4,983,624 |
1,712,241 |
1,707,943 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,781 |
159,486 |
315,992 |
179,201 |
178,980 |
1.82 |
1.03 |
| hello-world |
no-host |
154 |
86 |
3,873 |
387 |
378 |
25.15 |
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 |
7.1 |
3,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.7 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,441 |
1 |
65 |
15.2 |
34.4 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,484 |
3 |
58 |
21.4 |
39.7 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,699 |
1 |
2 |
2.7 |
28.6 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,701 |
1 |
2 |
2.6 |
33.3 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
10.0 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
787 |
1 |
2 |
2.6 |
8.4 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,639 |
2 |
66 |
15.2 |
34.7 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,607 |
3 |
58 |
21.4 |
39.5 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,677 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,697 |
1 |
2 |
2.6 |
33.4 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
574 |
522 |
55 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
610 |
315 |
331 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
433 |
278 |
162 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,443 |
883 |
1,823 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
813 |
307 |
522 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
787 |
316 |
488 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,723 |
7,530 |
6,577 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,838 |
7,548 |
6,688 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,124 |
15,964 |
15,090 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,441 |
7,232 |
7,507 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,639 |
7,278 |
7,485 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,632 |
1,440 |
1,232 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,579 |
1,425 |
1,178 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,604 |
2,071 |
1,752 |
28.5 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,699 |
1,453 |
1,287 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,677 |
1,455 |
1,261 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
23 |
23 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
20 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
154 |
69 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
26 |
24 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
24 |
25 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,407 |
6,440 |
6,424 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,320 |
6,292 |
7,510 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,035 |
20,122 |
12,967 |
39.5 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,484 |
6,229 |
7,484 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,607 |
6,193 |
7,491 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,670 |
937 |
741 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,615 |
910 |
706 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
2,395 |
1,433 |
1,002 |
33.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,701 |
898 |
806 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,697 |
921 |
776 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
60 |
42 |
18 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
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,409 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,151 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,733 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,513 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,361 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
97,931 |
0 |
0 |
0 |
8 |
0 |
1,989 |
76 |
bash |
| 9 |
no-host |
bin-true |
49,352 |
0 |
0 |
0 |
8 |
0 |
2,988 |
45 |
dash |
| 17 |
no-host |
bin-true |
839,443 |
0 |
0 |
0 |
8 |
0 |
1,993 |
140 |
osh-cpython |
| 25 |
no-host |
bin-true |
140,263 |
0 |
0 |
0 |
16 |
0 |
1,978 |
97 |
osh-native |
| 33 |
no-host |
bin-true |
132,252 |
0 |
0 |
0 |
16 |
0 |
1,981 |
74 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,625,659 |
0 |
0 |
0 |
25,272 |
0 |
14,050 |
1,010 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,544 |
0 |
0 |
0 |
25,272 |
0 |
14,097 |
1,198 |
dash |
| 18 |
no-host |
configure.cpython |
5,986,100 |
0 |
0 |
0 |
25,272 |
0 |
12,876 |
881 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,800,452 |
0 |
0 |
0 |
25,280 |
0 |
12,854 |
1,021 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,783,856 |
0 |
0 |
0 |
25,280 |
0 |
12,843 |
1,063 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,904 |
0 |
0 |
0 |
4,432 |
0 |
2,014 |
208 |
bash |
| 12 |
no-host |
configure.ocaml |
280,671 |
0 |
0 |
0 |
4,432 |
0 |
2,092 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
558,198 |
0 |
0 |
0 |
4,432 |
0 |
1,910 |
179 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,771 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
210 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,992 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
186 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,192 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,949 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,970 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,869 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,535,585 |
0 |
0 |
0 |
35,944 |
0 |
18,918 |
1,062 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,021 |
3 |
0 |
0 |
35,936 |
0 |
17,008 |
1,215 |
dash |
| 19 |
no-host |
configure.util-linux |
4,983,624 |
2 |
0 |
0 |
35,952 |
0 |
17,519 |
847 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,712,241 |
0 |
0 |
0 |
35,944 |
0 |
17,527 |
1,210 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,943 |
0 |
0 |
0 |
35,944 |
0 |
17,402 |
1,082 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,781 |
0 |
0 |
0 |
3,616 |
0 |
875 |
111 |
bash |
| 14 |
no-host |
configure.yash |
159,486 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
104 |
dash |
| 22 |
no-host |
configure.yash |
315,992 |
0 |
0 |
0 |
3,616 |
0 |
861 |
107 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,201 |
0 |
0 |
0 |
3,624 |
0 |
858 |
111 |
osh-native |
| 38 |
no-host |
configure.yash |
178,980 |
0 |
0 |
0 |
3,624 |
0 |
859 |
94 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,873 |
0 |
0 |
0 |
8 |
0 |
7 |
0 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
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