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 |
457 |
23 |
23.62 |
1.18 |
bin-true |
no-host |
675 |
547 |
2,251 |
817 |
3.34 |
1.21 |
configure.cpython |
no-host |
15,021 |
15,113 |
28,605 |
15,329 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,826 |
3,745 |
4,679 |
3,840 |
1.22 |
1.00 |
configure.tcc |
no-host |
47 |
42 |
193 |
49 |
4.08 |
1.03 |
configure.util-linux |
no-host |
14,048 |
14,908 |
31,260 |
14,409 |
2.23 |
1.03 |
configure.yash |
no-host |
1,821 |
1,783 |
2,470 |
1,829 |
1.36 |
1.00 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
33.35 |
1.98 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,518 |
1,118 |
23,002 |
3,176 |
9.14 |
1.26 |
bin-true |
no-host |
107,334 |
66,433 |
753,468 |
126,408 |
7.02 |
1.18 |
configure.cpython |
no-host |
2,220,229 |
2,244,966 |
6,116,605 |
2,214,305 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,623 |
391,146 |
637,479 |
413,973 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,561 |
5,481 |
23,206 |
6,977 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,103,436 |
2,259,084 |
5,296,070 |
1,997,568 |
2.52 |
0.95 |
configure.yash |
no-host |
256,260 |
244,687 |
383,408 |
258,099 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,691 |
347 |
24.44 |
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.3 |
6.0 |
3,737 |
3,737 |
0 |
681 |
1,887 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
8.1 |
154,702 |
13,054 |
2,807 |
9,731 |
78,356 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,329 |
1 |
61 |
15.0 |
27.4 |
1,772,678 |
49,205 |
28,516 |
86,378 |
908,108 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,409 |
3 |
61 |
21.3 |
30.3 |
2,703,414 |
42,780 |
65,821 |
109,640 |
1,320,606 |
1,273,168 |
49,081 |
41 |
131,642 |
1 |
configure.ocaml |
no-host |
3,840 |
1 |
2 |
2.6 |
20.3 |
150,048 |
11,054 |
5,147 |
7,510 |
71,644 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,537 |
30,537 |
0 |
1,501 |
14,811 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,829 |
1 |
2 |
2.6 |
24.2 |
139,705 |
7,972 |
6,608 |
6,317 |
70,316 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,280 |
64,463 |
42,671 |
4,552 |
54,556 |
57,172 |
478 |
3 |
85,342 |
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 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
457 |
392 |
68 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
675 |
504 |
203 |
2.8 |
bash |
9 |
no-host |
bin-true |
547 |
416 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,251 |
1,450 |
1,062 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
565 |
268 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,021 |
9,049 |
6,379 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,113 |
9,062 |
6,472 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
28,605 |
17,213 |
13,266 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,329 |
9,109 |
6,491 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,826 |
1,696 |
1,165 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,745 |
1,558 |
1,208 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,679 |
2,301 |
1,589 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,840 |
1,647 |
1,231 |
20.3 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
34 |
14 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
25 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
128 |
69 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,048 |
8,837 |
5,689 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,908 |
9,239 |
6,168 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,260 |
20,751 |
11,605 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,409 |
8,645 |
5,974 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,821 |
1,076 |
752 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,783 |
1,029 |
758 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,470 |
1,496 |
1,018 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,829 |
1,064 |
769 |
24.2 |
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 |
48 |
18 |
30 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,002 |
0 |
0 |
0 |
8 |
0 |
45 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,176 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,334 |
0 |
0 |
0 |
8 |
0 |
1,988 |
75 |
bash |
9 |
no-host |
bin-true |
66,433 |
0 |
0 |
0 |
8 |
0 |
1,991 |
47 |
dash |
17 |
no-host |
bin-true |
753,468 |
0 |
0 |
0 |
8 |
0 |
2,001 |
247 |
osh-cpython |
25 |
no-host |
bin-true |
126,408 |
0 |
0 |
0 |
16 |
0 |
1,985 |
113 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,229 |
0 |
0 |
0 |
32,928 |
0 |
14,449 |
1,074 |
bash |
10 |
no-host |
configure.cpython |
2,244,966 |
0 |
0 |
0 |
32,992 |
0 |
14,642 |
1,028 |
dash |
18 |
no-host |
configure.cpython |
6,116,605 |
1 |
0 |
0 |
27,512 |
0 |
13,252 |
1,158 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,214,305 |
0 |
0 |
0 |
27,520 |
0 |
13,196 |
1,012 |
osh-native |
4 |
no-host |
configure.ocaml |
410,623 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
173 |
bash |
12 |
no-host |
configure.ocaml |
391,146 |
0 |
0 |
0 |
5,112 |
0 |
1,938 |
151 |
dash |
20 |
no-host |
configure.ocaml |
637,479 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
167 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,973 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
189 |
osh-native |
5 |
no-host |
configure.tcc |
6,561 |
0 |
0 |
0 |
104 |
0 |
48 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,206 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,977 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,436 |
0 |
0 |
0 |
42,400 |
0 |
18,533 |
1,088 |
bash |
11 |
no-host |
configure.util-linux |
2,259,084 |
3 |
0 |
0 |
42,584 |
0 |
17,427 |
1,054 |
dash |
19 |
no-host |
configure.util-linux |
5,296,070 |
7 |
0 |
0 |
39,128 |
0 |
16,976 |
1,262 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,997,568 |
0 |
0 |
0 |
39,120 |
0 |
16,977 |
990 |
osh-native |
6 |
no-host |
configure.yash |
256,260 |
0 |
0 |
0 |
4,120 |
0 |
871 |
89 |
bash |
14 |
no-host |
configure.yash |
244,687 |
0 |
0 |
0 |
3,720 |
0 |
867 |
85 |
dash |
22 |
no-host |
configure.yash |
383,408 |
0 |
0 |
0 |
3,728 |
0 |
857 |
114 |
osh-cpython |
30 |
no-host |
configure.yash |
258,099 |
0 |
0 |
0 |
3,736 |
0 |
848 |
80 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,691 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host