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 |
9 |
449 |
23 |
23.79 |
1.19 |
bin-true |
no-host |
679 |
542 |
2,250 |
824 |
3.31 |
1.21 |
configure.cpython |
no-host |
14,920 |
15,004 |
28,221 |
15,102 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,779 |
3,712 |
4,591 |
3,796 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
191 |
49 |
3.97 |
1.02 |
configure.util-linux |
no-host |
13,958 |
14,827 |
30,749 |
14,306 |
2.20 |
1.02 |
configure.yash |
no-host |
1,808 |
1,760 |
2,422 |
1,818 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
31.96 |
1.94 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,515 |
1,108 |
23,166 |
3,218 |
9.21 |
1.28 |
bin-true |
no-host |
107,389 |
66,418 |
749,475 |
128,193 |
6.98 |
1.19 |
configure.cpython |
no-host |
2,218,876 |
2,248,717 |
6,102,886 |
2,227,984 |
2.75 |
1.00 |
configure.ocaml |
no-host |
409,877 |
391,161 |
636,793 |
413,316 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,548 |
5,489 |
23,191 |
6,982 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,100,719 |
2,253,317 |
5,307,967 |
2,011,152 |
2.53 |
0.96 |
configure.yash |
no-host |
256,209 |
245,117 |
384,285 |
257,956 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
84 |
3,655 |
350 |
23.73 |
2.27 |
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,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.7 |
7.7 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,102 |
1 |
61 |
15.8 |
27.4 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,306 |
2 |
59 |
22.2 |
30.1 |
2,703,265 |
44,764 |
65,810 |
126,121 |
1,320,492 |
1,256,652 |
49,081 |
41 |
131,620 |
1 |
configure.ocaml |
no-host |
3,796 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,818 |
1 |
2 |
2.6 |
24.4 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.5 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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 |
16 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
449 |
407 |
45 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
8.5 |
osh-native |
1 |
no-host |
bin-true |
679 |
499 |
214 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
422 |
128 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,250 |
1,472 |
1,036 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
596 |
245 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
14,920 |
9,001 |
6,320 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,004 |
9,179 |
6,251 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,221 |
17,107 |
12,901 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,102 |
8,860 |
6,512 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,779 |
1,576 |
1,242 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,712 |
1,529 |
1,201 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,591 |
2,193 |
1,607 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,796 |
1,580 |
1,253 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
22 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
146 |
48 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,958 |
8,776 |
5,661 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,827 |
9,086 |
6,225 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,749 |
20,477 |
11,323 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,306 |
8,689 |
5,819 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,808 |
1,050 |
765 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,760 |
1,073 |
690 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,422 |
1,482 |
981 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,818 |
1,011 |
811 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
12 |
35 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,515 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,166 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,218 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,389 |
0 |
0 |
0 |
8 |
0 |
1,988 |
75 |
bash |
9 |
no-host |
bin-true |
66,418 |
0 |
0 |
0 |
8 |
0 |
1,982 |
37 |
dash |
17 |
no-host |
bin-true |
749,475 |
0 |
0 |
0 |
8 |
0 |
1,999 |
216 |
osh-cpython |
25 |
no-host |
bin-true |
128,193 |
0 |
0 |
0 |
16 |
0 |
1,995 |
117 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,876 |
0 |
0 |
0 |
32,928 |
0 |
14,358 |
1,120 |
bash |
10 |
no-host |
configure.cpython |
2,248,717 |
1 |
0 |
0 |
32,992 |
0 |
14,575 |
1,025 |
dash |
18 |
no-host |
configure.cpython |
6,102,886 |
0 |
0 |
0 |
27,512 |
0 |
13,241 |
1,194 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,227,984 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
1,129 |
osh-native |
4 |
no-host |
configure.ocaml |
409,877 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
196 |
bash |
12 |
no-host |
configure.ocaml |
391,161 |
0 |
0 |
0 |
5,112 |
0 |
1,887 |
146 |
dash |
20 |
no-host |
configure.ocaml |
636,793 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
202 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,316 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
186 |
osh-native |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,191 |
0 |
0 |
0 |
96 |
0 |
52 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,982 |
0 |
0 |
0 |
104 |
0 |
47 |
7 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,719 |
0 |
0 |
0 |
42,400 |
0 |
18,581 |
1,002 |
bash |
11 |
no-host |
configure.util-linux |
2,253,317 |
0 |
0 |
0 |
42,592 |
0 |
17,441 |
1,200 |
dash |
19 |
no-host |
configure.util-linux |
5,307,967 |
13 |
0 |
0 |
39,112 |
0 |
17,076 |
1,355 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,152 |
0 |
0 |
0 |
39,120 |
0 |
17,150 |
945 |
osh-native |
6 |
no-host |
configure.yash |
256,209 |
0 |
0 |
0 |
4,120 |
0 |
880 |
85 |
bash |
14 |
no-host |
configure.yash |
245,117 |
0 |
0 |
0 |
3,720 |
0 |
866 |
69 |
dash |
22 |
no-host |
configure.yash |
384,285 |
0 |
0 |
0 |
3,728 |
0 |
860 |
76 |
osh-cpython |
30 |
no-host |
configure.yash |
257,956 |
0 |
0 |
0 |
3,736 |
0 |
853 |
123 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,655 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host