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 |
547 |
22 |
20 |
34.99 |
1.40 |
| bin-true |
no-host |
609 |
438 |
2,439 |
812 |
801 |
4.00 |
1.33 |
| configure.cpython |
no-host |
13,865 |
13,823 |
29,595 |
14,689 |
14,757 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,667 |
3,611 |
4,637 |
3,725 |
3,701 |
1.26 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
221 |
49 |
50 |
4.78 |
1.05 |
| configure.util-linux |
no-host |
12,723 |
13,326 |
32,502 |
13,613 |
13,696 |
2.55 |
1.07 |
| configure.yash |
no-host |
1,714 |
1,628 |
2,438 |
1,704 |
1,735 |
1.42 |
0.99 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
49.80 |
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,387 |
1,154 |
24,774 |
3,476 |
3,325 |
10.38 |
1.46 |
| bin-true |
no-host |
100,921 |
49,421 |
838,156 |
139,312 |
136,300 |
8.31 |
1.38 |
| configure.cpython |
no-host |
1,624,844 |
1,641,760 |
5,976,557 |
1,811,412 |
1,793,188 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
299,024 |
280,649 |
557,707 |
317,174 |
316,454 |
1.87 |
1.06 |
| configure.tcc |
no-host |
5,248 |
4,194 |
23,898 |
5,953 |
5,897 |
4.55 |
1.13 |
| configure.util-linux |
no-host |
1,542,493 |
1,701,708 |
4,978,066 |
1,718,949 |
1,717,376 |
3.23 |
1.11 |
| configure.yash |
no-host |
173,512 |
159,501 |
315,873 |
179,337 |
178,670 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
84 |
3,870 |
389 |
379 |
25.46 |
2.56 |
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 |
812 |
1 |
2 |
2.6 |
8.9 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,689 |
1 |
68 |
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,613 |
3 |
62 |
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,725 |
1 |
2 |
2.7 |
28.8 |
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.1 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,704 |
1 |
2 |
2.6 |
33.1 |
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 |
9.8 |
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 |
801 |
1 |
2 |
2.6 |
8.3 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,757 |
1 |
64 |
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,696 |
3 |
59 |
21.4 |
39.7 |
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,701 |
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 |
50 |
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,735 |
1 |
2 |
2.6 |
33.5 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
9.2 |
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 |
16 |
7 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
547 |
492 |
59 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
9 |
12 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
609 |
305 |
341 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
272 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,439 |
854 |
1,852 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
812 |
302 |
526 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
801 |
302 |
514 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,865 |
7,530 |
6,705 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,823 |
7,454 |
6,754 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,595 |
16,389 |
15,154 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,689 |
7,281 |
7,685 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,757 |
7,303 |
7,513 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,667 |
1,474 |
1,231 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,611 |
1,459 |
1,175 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,637 |
2,099 |
1,757 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,725 |
1,456 |
1,306 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,701 |
1,457 |
1,283 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
20 |
27 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
221 |
167 |
58 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
25 |
24 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,723 |
6,624 |
6,563 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,326 |
6,452 |
7,339 |
40.0 |
dash |
| 19 |
no-host |
configure.util-linux |
32,502 |
20,419 |
13,161 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,613 |
6,337 |
7,503 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,696 |
6,212 |
7,544 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,714 |
965 |
756 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,628 |
932 |
697 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,438 |
1,442 |
1,037 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,704 |
924 |
781 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,735 |
967 |
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.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
40 |
20 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,154 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,774 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,476 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,325 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,921 |
0 |
0 |
0 |
8 |
0 |
1,989 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,421 |
0 |
0 |
0 |
8 |
0 |
2,958 |
73 |
dash |
| 17 |
no-host |
bin-true |
838,156 |
0 |
0 |
0 |
8 |
0 |
1,994 |
147 |
osh-cpython |
| 25 |
no-host |
bin-true |
139,312 |
0 |
0 |
0 |
16 |
0 |
1,973 |
86 |
osh-native |
| 33 |
no-host |
bin-true |
136,300 |
0 |
0 |
0 |
16 |
0 |
1,977 |
100 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,844 |
0 |
0 |
0 |
25,272 |
0 |
14,025 |
1,049 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,760 |
0 |
0 |
0 |
25,272 |
0 |
14,102 |
1,021 |
dash |
| 18 |
no-host |
configure.cpython |
5,976,557 |
0 |
0 |
0 |
25,272 |
0 |
12,877 |
931 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,811,412 |
0 |
0 |
0 |
25,280 |
0 |
12,848 |
1,196 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,793,188 |
0 |
0 |
0 |
25,280 |
0 |
12,836 |
1,109 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,024 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,649 |
0 |
0 |
0 |
4,432 |
0 |
2,091 |
202 |
dash |
| 20 |
no-host |
configure.ocaml |
557,707 |
0 |
0 |
0 |
4,432 |
0 |
1,913 |
187 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,174 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
217 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,454 |
0 |
0 |
0 |
4,440 |
0 |
1,991 |
204 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,248 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,194 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,898 |
0 |
0 |
0 |
88 |
0 |
53 |
5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,953 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,897 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,542,493 |
1 |
0 |
0 |
35,944 |
0 |
18,931 |
1,113 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,708 |
0 |
0 |
0 |
35,936 |
0 |
17,087 |
1,263 |
dash |
| 19 |
no-host |
configure.util-linux |
4,978,066 |
3 |
0 |
0 |
35,960 |
0 |
17,541 |
849 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,718,949 |
0 |
0 |
0 |
35,944 |
0 |
17,543 |
1,107 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,717,376 |
2 |
0 |
0 |
35,944 |
0 |
17,401 |
1,079 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,512 |
0 |
0 |
0 |
3,616 |
0 |
879 |
101 |
bash |
| 14 |
no-host |
configure.yash |
159,501 |
0 |
0 |
0 |
3,616 |
0 |
992 |
105 |
dash |
| 22 |
no-host |
configure.yash |
315,873 |
0 |
0 |
0 |
3,616 |
0 |
864 |
98 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,337 |
0 |
0 |
0 |
3,624 |
0 |
859 |
102 |
osh-native |
| 38 |
no-host |
configure.yash |
178,670 |
0 |
0 |
0 |
3,624 |
0 |
858 |
113 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
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,870 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
389 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
379 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host