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 |
457 |
23 |
23.96 |
1.18 |
bin-true |
no-host |
676 |
540 |
2,205 |
808 |
3.26 |
1.19 |
configure.cpython |
no-host |
14,782 |
14,846 |
28,104 |
15,039 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,770 |
3,689 |
4,551 |
3,800 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
189 |
49 |
4.02 |
1.04 |
configure.util-linux |
no-host |
13,807 |
14,646 |
30,577 |
14,215 |
2.21 |
1.03 |
configure.yash |
no-host |
1,783 |
1,743 |
2,398 |
1,804 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.78 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,564 |
1,113 |
23,402 |
3,205 |
9.13 |
1.25 |
bin-true |
no-host |
106,305 |
65,447 |
751,342 |
125,132 |
7.07 |
1.18 |
configure.cpython |
no-host |
2,220,007 |
2,249,543 |
6,140,819 |
2,228,950 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,864 |
390,415 |
639,095 |
413,524 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,543 |
5,477 |
23,219 |
6,988 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,099,441 |
2,255,688 |
5,324,439 |
2,013,266 |
2.54 |
0.96 |
configure.yash |
no-host |
254,966 |
245,227 |
385,176 |
258,040 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,654 |
346 |
24.04 |
2.28 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,039 |
1 |
57 |
15.8 |
27.5 |
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,215 |
2 |
56 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,800 |
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 |
49 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,804 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
57,113 |
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 |
11 |
8 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
457 |
414 |
46 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
676 |
504 |
202 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
415 |
135 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,205 |
1,472 |
985 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
563 |
258 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,782 |
8,845 |
6,339 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,846 |
8,996 |
6,274 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,104 |
17,060 |
12,843 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,039 |
8,784 |
6,522 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,770 |
1,582 |
1,223 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,689 |
1,565 |
1,144 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,551 |
2,258 |
1,491 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,800 |
1,587 |
1,253 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
45 |
3 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
189 |
126 |
67 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
14 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,807 |
8,777 |
5,505 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,646 |
9,107 |
6,028 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,577 |
20,556 |
11,079 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,215 |
8,598 |
5,818 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,783 |
1,056 |
735 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,743 |
1,003 |
744 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,398 |
1,406 |
1,034 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,804 |
1,009 |
800 |
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 |
47 |
30 |
17 |
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,564 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,113 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,402 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,205 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,305 |
0 |
0 |
0 |
8 |
0 |
1,996 |
115 |
bash |
9 |
no-host |
bin-true |
65,447 |
0 |
0 |
0 |
8 |
0 |
1,998 |
35 |
dash |
17 |
no-host |
bin-true |
751,342 |
0 |
0 |
0 |
8 |
0 |
1,994 |
139 |
osh-cpython |
25 |
no-host |
bin-true |
125,132 |
0 |
0 |
0 |
16 |
0 |
1,991 |
132 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,007 |
1 |
0 |
0 |
32,928 |
0 |
14,573 |
1,193 |
bash |
10 |
no-host |
configure.cpython |
2,249,543 |
0 |
0 |
0 |
32,992 |
0 |
14,606 |
1,048 |
dash |
18 |
no-host |
configure.cpython |
6,140,819 |
2 |
0 |
0 |
27,512 |
0 |
13,250 |
1,275 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,950 |
0 |
0 |
0 |
27,520 |
0 |
13,353 |
1,148 |
osh-native |
4 |
no-host |
configure.ocaml |
410,864 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
150 |
bash |
12 |
no-host |
configure.ocaml |
390,415 |
0 |
0 |
0 |
5,112 |
0 |
1,887 |
138 |
dash |
20 |
no-host |
configure.ocaml |
639,095 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
208 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,524 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
185 |
osh-native |
5 |
no-host |
configure.tcc |
6,543 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
10 |
dash |
21 |
no-host |
configure.tcc |
23,219 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,441 |
0 |
0 |
0 |
42,400 |
0 |
18,575 |
1,085 |
bash |
11 |
no-host |
configure.util-linux |
2,255,688 |
1 |
0 |
0 |
42,584 |
0 |
17,422 |
1,244 |
dash |
19 |
no-host |
configure.util-linux |
5,324,439 |
16 |
0 |
0 |
39,120 |
0 |
17,078 |
1,138 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,266 |
3 |
0 |
0 |
39,120 |
0 |
17,068 |
1,040 |
osh-native |
6 |
no-host |
configure.yash |
254,966 |
0 |
0 |
0 |
4,120 |
0 |
869 |
83 |
bash |
14 |
no-host |
configure.yash |
245,227 |
0 |
0 |
0 |
3,720 |
0 |
868 |
71 |
dash |
22 |
no-host |
configure.yash |
385,176 |
0 |
0 |
0 |
3,728 |
0 |
855 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,040 |
0 |
0 |
0 |
3,736 |
0 |
855 |
93 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,654 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host