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 |
446 |
22 |
23.20 |
1.16 |
bin-true |
no-host |
670 |
538 |
2,213 |
815 |
3.30 |
1.22 |
configure.cpython |
no-host |
15,555 |
15,307 |
28,481 |
15,254 |
1.83 |
0.98 |
configure.ocaml |
no-host |
3,915 |
3,758 |
4,578 |
3,826 |
1.17 |
0.98 |
configure.tcc |
no-host |
49 |
41 |
189 |
49 |
3.88 |
1.01 |
configure.util-linux |
no-host |
14,386 |
14,940 |
31,166 |
14,385 |
2.17 |
1.00 |
configure.yash |
no-host |
1,854 |
1,779 |
2,409 |
1,828 |
1.30 |
0.99 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.11 |
1.82 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,551 |
1,094 |
22,824 |
3,230 |
8.95 |
1.27 |
bin-true |
no-host |
104,336 |
67,440 |
729,833 |
129,199 |
7.00 |
1.24 |
configure.cpython |
no-host |
2,217,410 |
2,239,493 |
6,039,577 |
2,231,866 |
2.72 |
1.01 |
configure.ocaml |
no-host |
410,421 |
391,360 |
631,954 |
413,513 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,571 |
5,471 |
22,856 |
6,957 |
3.48 |
1.06 |
configure.util-linux |
no-host |
2,102,083 |
2,256,104 |
5,282,674 |
2,019,196 |
2.51 |
0.96 |
configure.yash |
no-host |
256,038 |
244,705 |
383,162 |
258,811 |
1.50 |
1.01 |
hello-world |
no-host |
149 |
84 |
3,644 |
342 |
24.46 |
2.30 |
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.2 |
6.3 |
3,710 |
3,710 |
0 |
681 |
1,865 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.0 |
154,656 |
12,889 |
2,791 |
11,730 |
78,317 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,254 |
1 |
62 |
15.9 |
27.5 |
1,769,350 |
44,560 |
28,499 |
101,923 |
904,763 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,385 |
3 |
59 |
22.2 |
30.0 |
2,698,087 |
29,091 |
65,803 |
126,121 |
1,315,368 |
1,256,598 |
49,081 |
41 |
131,606 |
1 |
configure.ocaml |
no-host |
3,826 |
1 |
2 |
2.7 |
20.6 |
149,273 |
11,026 |
5,129 |
8,602 |
71,056 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,424 |
30,424 |
0 |
1,599 |
14,700 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,828 |
1 |
2 |
2.6 |
24.2 |
139,384 |
7,140 |
6,531 |
7,554 |
69,998 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,050 |
64,417 |
42,656 |
4,601 |
54,332 |
57,117 |
478 |
3 |
85,312 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
446 |
410 |
39 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
670 |
511 |
190 |
3.0 |
bash |
9 |
no-host |
bin-true |
538 |
429 |
121 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,213 |
1,440 |
1,027 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
570 |
259 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,555 |
9,352 |
6,604 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,307 |
9,253 |
6,478 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,481 |
17,143 |
13,132 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,254 |
8,958 |
6,560 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,915 |
1,691 |
1,255 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,758 |
1,580 |
1,198 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,578 |
2,197 |
1,576 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,826 |
1,590 |
1,256 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
24 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
35 |
7 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
189 |
110 |
82 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,386 |
8,919 |
5,943 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,940 |
9,179 |
6,253 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,166 |
20,863 |
11,363 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,385 |
8,792 |
5,800 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,854 |
1,068 |
794 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,779 |
961 |
822 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,409 |
1,588 |
862 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,828 |
1,038 |
794 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,551 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,824 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,230 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
104,336 |
0 |
0 |
0 |
8 |
0 |
1,992 |
42 |
bash |
9 |
no-host |
bin-true |
67,440 |
0 |
0 |
0 |
8 |
0 |
1,984 |
45 |
dash |
17 |
no-host |
bin-true |
729,833 |
0 |
0 |
0 |
8 |
0 |
1,994 |
311 |
osh-cpython |
25 |
no-host |
bin-true |
129,199 |
0 |
0 |
0 |
16 |
0 |
1,988 |
53 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,410 |
0 |
0 |
0 |
32,928 |
0 |
14,497 |
1,164 |
bash |
10 |
no-host |
configure.cpython |
2,239,493 |
0 |
0 |
0 |
32,992 |
0 |
14,559 |
1,026 |
dash |
18 |
no-host |
configure.cpython |
6,039,577 |
1 |
0 |
0 |
27,512 |
0 |
13,314 |
1,215 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,866 |
4 |
0 |
0 |
27,520 |
0 |
13,304 |
964 |
osh-native |
4 |
no-host |
configure.ocaml |
410,421 |
0 |
0 |
0 |
5,120 |
0 |
1,975 |
162 |
bash |
12 |
no-host |
configure.ocaml |
391,360 |
0 |
0 |
0 |
5,112 |
0 |
1,910 |
162 |
dash |
20 |
no-host |
configure.ocaml |
631,954 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
150 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,513 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
162 |
osh-native |
5 |
no-host |
configure.tcc |
6,571 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
dash |
21 |
no-host |
configure.tcc |
22,856 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,957 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,102,083 |
0 |
0 |
0 |
42,400 |
0 |
18,561 |
1,116 |
bash |
11 |
no-host |
configure.util-linux |
2,256,104 |
0 |
0 |
0 |
42,584 |
0 |
17,437 |
1,057 |
dash |
19 |
no-host |
configure.util-linux |
5,282,674 |
9 |
0 |
0 |
39,112 |
0 |
17,073 |
1,304 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,196 |
1 |
0 |
0 |
39,128 |
0 |
17,066 |
1,059 |
osh-native |
6 |
no-host |
configure.yash |
256,038 |
0 |
0 |
0 |
4,120 |
0 |
866 |
85 |
bash |
14 |
no-host |
configure.yash |
244,705 |
0 |
0 |
0 |
3,720 |
0 |
868 |
63 |
dash |
22 |
no-host |
configure.yash |
383,162 |
0 |
0 |
0 |
3,728 |
0 |
856 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
258,811 |
0 |
0 |
0 |
3,736 |
0 |
854 |
74 |
osh-native |
0 |
no-host |
hello-world |
149 |
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,644 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host