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 |
461 |
22 |
24.46 |
1.18 |
bin-true |
no-host |
681 |
542 |
2,256 |
815 |
3.31 |
1.20 |
configure.cpython |
no-host |
15,170 |
15,320 |
28,999 |
15,460 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,837 |
3,778 |
4,697 |
3,876 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
198 |
50 |
4.05 |
1.03 |
configure.util-linux |
no-host |
14,233 |
15,068 |
31,723 |
14,625 |
2.23 |
1.03 |
configure.yash |
no-host |
1,862 |
1,799 |
2,475 |
1,849 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.51 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,532 |
1,092 |
23,387 |
3,200 |
9.24 |
1.26 |
bin-true |
no-host |
105,253 |
66,399 |
751,408 |
125,102 |
7.14 |
1.19 |
configure.cpython |
no-host |
2,221,540 |
2,244,639 |
6,145,149 |
2,232,908 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,729 |
391,325 |
639,223 |
413,447 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,566 |
5,463 |
23,202 |
6,969 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,104,696 |
2,259,147 |
5,326,653 |
2,009,715 |
2.53 |
0.95 |
configure.yash |
no-host |
256,753 |
244,390 |
385,118 |
258,260 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,655 |
345 |
23.89 |
2.25 |
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.3 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,460 |
1 |
62 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,625 |
3 |
62 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,876 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,849 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
478 |
3 |
85,324 |
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 |
15 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
461 |
421 |
43 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
681 |
511 |
199 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
410 |
142 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,256 |
1,451 |
1,073 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
576 |
255 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,170 |
9,137 |
6,434 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,320 |
9,248 |
6,497 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,999 |
17,580 |
13,299 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,460 |
9,095 |
6,597 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,837 |
1,604 |
1,274 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,778 |
1,603 |
1,192 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,697 |
2,231 |
1,673 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,876 |
1,679 |
1,235 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
13 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
198 |
139 |
63 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
32 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,233 |
9,072 |
5,639 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,068 |
9,333 |
6,226 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,723 |
20,958 |
11,876 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,625 |
8,884 |
5,956 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,862 |
1,125 |
746 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,799 |
1,057 |
744 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,475 |
1,464 |
1,055 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,849 |
1,034 |
819 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
25 |
24 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,092 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,387 |
0 |
0 |
0 |
8 |
0 |
47 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,253 |
0 |
0 |
0 |
8 |
0 |
1,993 |
83 |
bash |
9 |
no-host |
bin-true |
66,399 |
0 |
0 |
0 |
8 |
0 |
1,987 |
38 |
dash |
17 |
no-host |
bin-true |
751,408 |
0 |
0 |
0 |
8 |
0 |
1,989 |
224 |
osh-cpython |
25 |
no-host |
bin-true |
125,102 |
0 |
0 |
0 |
16 |
0 |
1,988 |
93 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,540 |
0 |
0 |
0 |
32,928 |
0 |
14,433 |
1,405 |
bash |
10 |
no-host |
configure.cpython |
2,244,639 |
0 |
0 |
0 |
32,992 |
0 |
14,552 |
1,050 |
dash |
18 |
no-host |
configure.cpython |
6,145,149 |
0 |
0 |
0 |
27,512 |
0 |
13,251 |
1,286 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,908 |
0 |
0 |
0 |
27,520 |
0 |
13,298 |
1,031 |
osh-native |
4 |
no-host |
configure.ocaml |
410,729 |
0 |
0 |
0 |
5,120 |
0 |
1,943 |
173 |
bash |
12 |
no-host |
configure.ocaml |
391,325 |
0 |
0 |
0 |
5,112 |
0 |
1,911 |
161 |
dash |
20 |
no-host |
configure.ocaml |
639,223 |
1 |
0 |
0 |
5,112 |
0 |
1,857 |
175 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,447 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
163 |
osh-native |
5 |
no-host |
configure.tcc |
6,566 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,463 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,202 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,969 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,696 |
0 |
0 |
0 |
42,400 |
0 |
18,595 |
1,215 |
bash |
11 |
no-host |
configure.util-linux |
2,259,147 |
1 |
0 |
0 |
42,584 |
0 |
17,477 |
1,068 |
dash |
19 |
no-host |
configure.util-linux |
5,326,653 |
10 |
0 |
0 |
39,144 |
0 |
17,081 |
1,397 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,715 |
2 |
0 |
0 |
39,128 |
0 |
17,142 |
1,035 |
osh-native |
6 |
no-host |
configure.yash |
256,753 |
0 |
0 |
0 |
4,120 |
0 |
870 |
86 |
bash |
14 |
no-host |
configure.yash |
244,390 |
0 |
0 |
0 |
3,720 |
0 |
869 |
181 |
dash |
22 |
no-host |
configure.yash |
385,118 |
0 |
0 |
0 |
3,728 |
0 |
857 |
103 |
osh-cpython |
30 |
no-host |
configure.yash |
258,260 |
0 |
0 |
0 |
3,736 |
0 |
853 |
81 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,655 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host