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 |
521 |
22 |
21 |
32.49 |
1.36 |
| bin-true |
no-host |
613 |
435 |
2,430 |
815 |
799 |
3.96 |
1.33 |
| configure.cpython |
no-host |
13,644 |
13,720 |
29,088 |
14,503 |
14,869 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,631 |
3,575 |
4,618 |
3,714 |
3,699 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
217 |
49 |
49 |
4.71 |
1.06 |
| configure.util-linux |
no-host |
12,461 |
13,269 |
31,811 |
13,608 |
13,774 |
2.55 |
1.09 |
| configure.yash |
no-host |
1,671 |
1,619 |
2,409 |
1,708 |
1,700 |
1.44 |
1.02 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
49.99 |
2.45 |
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,414 |
1,150 |
24,878 |
3,457 |
3,323 |
10.31 |
1.43 |
| bin-true |
no-host |
100,914 |
49,388 |
835,065 |
140,247 |
134,286 |
8.28 |
1.39 |
| configure.cpython |
no-host |
1,624,212 |
1,645,956 |
5,962,587 |
1,813,160 |
1,791,905 |
3.67 |
1.12 |
| configure.ocaml |
no-host |
298,477 |
280,710 |
557,007 |
316,410 |
316,095 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,203 |
4,202 |
23,752 |
5,934 |
5,932 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,536,888 |
1,699,843 |
4,960,533 |
1,721,943 |
1,706,971 |
3.23 |
1.12 |
| configure.yash |
no-host |
173,457 |
159,556 |
315,487 |
179,659 |
179,296 |
1.82 |
1.04 |
| hello-world |
no-host |
152 |
86 |
3,875 |
387 |
378 |
25.49 |
2.55 |
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 |
815 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,503 |
1 |
68 |
15.2 |
34.4 |
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,608 |
3 |
63 |
21.4 |
39.7 |
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,714 |
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.3 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,708 |
1 |
2 |
2.6 |
33.3 |
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.4 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
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,869 |
2 |
71 |
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,774 |
3 |
62 |
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,699 |
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 |
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,700 |
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.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 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
521 |
457 |
67 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
613 |
306 |
344 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
280 |
162 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,430 |
876 |
1,820 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
815 |
314 |
516 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
799 |
314 |
500 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,644 |
7,433 |
6,593 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,720 |
7,576 |
6,542 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,088 |
15,840 |
15,196 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,503 |
7,259 |
7,549 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,869 |
7,546 |
7,498 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,631 |
1,450 |
1,219 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,575 |
1,432 |
1,166 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,618 |
2,070 |
1,770 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,714 |
1,492 |
1,263 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,699 |
1,481 |
1,256 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
217 |
156 |
65 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
24 |
26 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,461 |
6,444 |
6,481 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,269 |
6,409 |
7,355 |
39.8 |
dash |
| 19 |
no-host |
configure.util-linux |
31,811 |
19,962 |
12,915 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,608 |
6,284 |
7,556 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,774 |
6,235 |
7,615 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,671 |
948 |
730 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,619 |
920 |
701 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,409 |
1,432 |
1,019 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,708 |
901 |
810 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,700 |
912 |
791 |
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 |
60 |
39 |
21 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
1 |
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,414 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,150 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,878 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,457 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,323 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,914 |
0 |
0 |
0 |
8 |
0 |
1,971 |
68 |
bash |
| 9 |
no-host |
bin-true |
49,388 |
0 |
0 |
0 |
8 |
0 |
2,983 |
49 |
dash |
| 17 |
no-host |
bin-true |
835,065 |
0 |
0 |
0 |
8 |
0 |
1,987 |
123 |
osh-cpython |
| 25 |
no-host |
bin-true |
140,247 |
0 |
0 |
0 |
16 |
0 |
1,974 |
91 |
osh-native |
| 33 |
no-host |
bin-true |
134,286 |
0 |
0 |
0 |
16 |
0 |
1,975 |
90 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,212 |
0 |
0 |
0 |
25,272 |
0 |
14,036 |
1,017 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,956 |
0 |
0 |
0 |
25,272 |
0 |
14,091 |
1,037 |
dash |
| 18 |
no-host |
configure.cpython |
5,962,587 |
0 |
0 |
0 |
25,272 |
0 |
12,866 |
894 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,813,160 |
0 |
0 |
0 |
25,280 |
0 |
12,879 |
1,089 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,791,905 |
0 |
0 |
0 |
25,280 |
0 |
12,836 |
1,065 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,477 |
0 |
0 |
0 |
4,432 |
0 |
2,006 |
183 |
bash |
| 12 |
no-host |
configure.ocaml |
280,710 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
179 |
dash |
| 20 |
no-host |
configure.ocaml |
557,007 |
0 |
0 |
0 |
4,432 |
0 |
1,919 |
196 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,410 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
210 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,095 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
335 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,203 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,752 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,934 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,932 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,888 |
1 |
0 |
0 |
35,944 |
0 |
18,947 |
1,085 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,843 |
0 |
0 |
0 |
35,936 |
0 |
17,080 |
1,183 |
dash |
| 19 |
no-host |
configure.util-linux |
4,960,533 |
4 |
0 |
0 |
35,952 |
0 |
17,530 |
844 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,721,943 |
0 |
0 |
0 |
35,944 |
0 |
17,535 |
1,133 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,706,971 |
1 |
0 |
0 |
35,944 |
0 |
17,484 |
1,100 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,457 |
0 |
0 |
0 |
3,616 |
0 |
873 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,556 |
0 |
0 |
0 |
3,624 |
0 |
995 |
108 |
dash |
| 22 |
no-host |
configure.yash |
315,487 |
0 |
0 |
0 |
3,616 |
0 |
858 |
106 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,659 |
0 |
0 |
0 |
3,624 |
0 |
858 |
107 |
osh-native |
| 38 |
no-host |
configure.yash |
179,296 |
0 |
0 |
0 |
3,624 |
0 |
858 |
109 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
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,875 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
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