oilshell.org
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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
458 |
22 |
24.52 |
1.17 |
bin-true |
no-host |
671 |
537 |
2,234 |
820 |
3.33 |
1.22 |
configure.cpython |
no-host |
14,850 |
14,869 |
28,110 |
14,911 |
1.89 |
1.00 |
configure.ocaml |
no-host |
3,767 |
3,692 |
4,574 |
3,776 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
43 |
191 |
49 |
4.09 |
1.04 |
configure.util-linux |
no-host |
13,966 |
14,676 |
30,644 |
14,168 |
2.19 |
1.01 |
configure.yash |
no-host |
1,799 |
1,749 |
2,398 |
1,790 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.48 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,510 |
1,125 |
22,848 |
3,190 |
9.10 |
1.27 |
bin-true |
no-host |
105,252 |
66,415 |
751,375 |
128,456 |
7.14 |
1.22 |
configure.cpython |
no-host |
2,225,302 |
2,252,524 |
6,114,974 |
2,214,376 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,567 |
390,708 |
639,261 |
413,862 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,471 |
23,255 |
6,968 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,099,551 |
2,263,557 |
5,308,725 |
1,988,026 |
2.53 |
0.95 |
configure.yash |
no-host |
255,085 |
244,490 |
383,965 |
257,478 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
83 |
3,690 |
348 |
24.60 |
2.32 |
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.2 |
3,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.6 |
8.0 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,911 |
1 |
56 |
15.0 |
27.4 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,168 |
3 |
57 |
21.3 |
30.3 |
2,703,413 |
42,779 |
65,820 |
109,640 |
1,320,605 |
1,273,168 |
49,081 |
41 |
131,640 |
1 |
configure.ocaml |
no-host |
3,776 |
0 |
2 |
2.6 |
20.6 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,790 |
1 |
2 |
2.6 |
24.2 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
478 |
3 |
85,340 |
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 |
19 |
12 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
419 |
43 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
671 |
496 |
206 |
3.0 |
bash |
9 |
no-host |
bin-true |
537 |
410 |
138 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,234 |
1,439 |
1,055 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
569 |
265 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,850 |
8,986 |
6,260 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,869 |
9,103 |
6,187 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,110 |
17,047 |
12,907 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,911 |
8,808 |
6,366 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,767 |
1,618 |
1,180 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,692 |
1,617 |
1,095 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,574 |
2,124 |
1,659 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,776 |
1,586 |
1,228 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
25 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
33 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
159 |
35 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,966 |
8,960 |
5,491 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,676 |
9,048 |
6,127 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,644 |
20,346 |
11,376 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,168 |
8,550 |
5,813 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,799 |
1,053 |
742 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,749 |
1,034 |
719 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,398 |
1,549 |
891 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,790 |
1,047 |
746 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
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,510 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,125 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,848 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,190 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,252 |
0 |
0 |
0 |
8 |
0 |
1,994 |
65 |
bash |
9 |
no-host |
bin-true |
66,415 |
0 |
0 |
0 |
8 |
0 |
1,988 |
37 |
dash |
17 |
no-host |
bin-true |
751,375 |
0 |
0 |
0 |
8 |
0 |
1,994 |
200 |
osh-cpython |
25 |
no-host |
bin-true |
128,456 |
0 |
0 |
0 |
16 |
0 |
1,989 |
149 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,302 |
0 |
0 |
0 |
32,928 |
0 |
14,579 |
1,017 |
bash |
10 |
no-host |
configure.cpython |
2,252,524 |
0 |
0 |
0 |
32,992 |
0 |
14,608 |
1,138 |
dash |
18 |
no-host |
configure.cpython |
6,114,974 |
0 |
0 |
0 |
27,512 |
0 |
13,279 |
1,258 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,214,376 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
1,168 |
osh-native |
4 |
no-host |
configure.ocaml |
410,567 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
158 |
bash |
12 |
no-host |
configure.ocaml |
390,708 |
0 |
0 |
0 |
5,112 |
0 |
1,900 |
146 |
dash |
20 |
no-host |
configure.ocaml |
639,261 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
191 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,862 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
185 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,255 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,968 |
0 |
0 |
0 |
104 |
0 |
46 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,551 |
0 |
0 |
0 |
42,400 |
0 |
18,646 |
986 |
bash |
11 |
no-host |
configure.util-linux |
2,263,557 |
2 |
0 |
0 |
42,584 |
0 |
17,405 |
1,007 |
dash |
19 |
no-host |
configure.util-linux |
5,308,725 |
5 |
0 |
0 |
39,120 |
0 |
16,939 |
1,292 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,988,026 |
0 |
0 |
0 |
39,120 |
0 |
16,975 |
1,184 |
osh-native |
6 |
no-host |
configure.yash |
255,085 |
0 |
0 |
0 |
4,120 |
0 |
870 |
99 |
bash |
14 |
no-host |
configure.yash |
244,490 |
0 |
0 |
0 |
3,720 |
0 |
869 |
86 |
dash |
22 |
no-host |
configure.yash |
383,965 |
0 |
0 |
0 |
3,728 |
0 |
853 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
257,478 |
0 |
0 |
0 |
3,736 |
0 |
850 |
96 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,690 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host