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 |
20 |
10 |
476 |
23 |
24.18 |
1.17 |
bin-true |
no-host |
695 |
559 |
2,265 |
836 |
3.26 |
1.20 |
configure.cpython |
no-host |
15,922 |
15,925 |
29,751 |
16,059 |
1.87 |
1.01 |
configure.ocaml |
no-host |
3,969 |
3,887 |
4,826 |
3,965 |
1.22 |
1.00 |
configure.tcc |
no-host |
49 |
44 |
202 |
51 |
4.10 |
1.04 |
configure.util-linux |
no-host |
14,856 |
15,593 |
33,314 |
15,046 |
2.24 |
1.01 |
configure.yash |
no-host |
1,921 |
1,851 |
2,625 |
1,893 |
1.37 |
0.99 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
32.35 |
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,558 |
1,107 |
23,431 |
3,241 |
9.16 |
1.27 |
bin-true |
no-host |
106,417 |
66,447 |
748,827 |
126,158 |
7.04 |
1.19 |
configure.cpython |
no-host |
2,221,027 |
2,250,970 |
6,135,644 |
2,234,321 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,917 |
391,048 |
640,686 |
414,053 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,549 |
5,462 |
23,294 |
7,009 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,095,290 |
2,255,666 |
5,336,274 |
2,017,652 |
2.55 |
0.96 |
configure.yash |
no-host |
256,647 |
244,688 |
385,009 |
258,959 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,681 |
347 |
24.22 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
836 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,059 |
1 |
67 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,046 |
3 |
65 |
22.2 |
29.9 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,965 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,893 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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 |
20 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
476 |
441 |
39 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
2 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
695 |
502 |
225 |
2.9 |
bash |
9 |
no-host |
bin-true |
559 |
435 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,265 |
1,529 |
1,003 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
836 |
581 |
268 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,922 |
9,401 |
6,919 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,925 |
9,595 |
6,768 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,751 |
17,953 |
13,731 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,059 |
9,431 |
6,897 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,969 |
1,718 |
1,288 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,887 |
1,657 |
1,246 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,826 |
2,295 |
1,749 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,965 |
1,710 |
1,292 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
26 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
202 |
138 |
67 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
33 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,856 |
9,297 |
6,049 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,593 |
9,426 |
6,661 |
29.9 |
dash |
19 |
no-host |
configure.util-linux |
33,314 |
22,074 |
12,402 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,046 |
8,995 |
6,257 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,921 |
1,079 |
849 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,851 |
1,034 |
820 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,625 |
1,567 |
1,105 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,893 |
1,067 |
829 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
52 |
32 |
20 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,558 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,431 |
0 |
0 |
0 |
8 |
0 |
47 |
5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,241 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,417 |
0 |
0 |
0 |
8 |
0 |
1,985 |
84 |
bash |
9 |
no-host |
bin-true |
66,447 |
0 |
0 |
0 |
8 |
0 |
1,985 |
54 |
dash |
17 |
no-host |
bin-true |
748,827 |
0 |
0 |
0 |
8 |
0 |
2,000 |
152 |
osh-cpython |
25 |
no-host |
bin-true |
126,158 |
0 |
0 |
0 |
16 |
0 |
1,987 |
113 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,027 |
0 |
0 |
0 |
32,928 |
0 |
14,507 |
1,027 |
bash |
10 |
no-host |
configure.cpython |
2,250,970 |
0 |
0 |
0 |
32,992 |
0 |
14,830 |
1,253 |
dash |
18 |
no-host |
configure.cpython |
6,135,644 |
2 |
0 |
0 |
27,512 |
0 |
13,332 |
1,322 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,321 |
0 |
0 |
0 |
27,520 |
0 |
13,275 |
1,041 |
osh-native |
4 |
no-host |
configure.ocaml |
410,917 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
168 |
bash |
12 |
no-host |
configure.ocaml |
391,048 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
147 |
dash |
20 |
no-host |
configure.ocaml |
640,686 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
189 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,053 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,462 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,294 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,009 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,290 |
0 |
0 |
0 |
42,408 |
0 |
18,854 |
1,230 |
bash |
11 |
no-host |
configure.util-linux |
2,255,666 |
1 |
0 |
0 |
42,592 |
0 |
17,524 |
1,037 |
dash |
19 |
no-host |
configure.util-linux |
5,336,274 |
10 |
0 |
0 |
39,136 |
0 |
17,091 |
1,294 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,652 |
3 |
0 |
0 |
39,128 |
0 |
17,069 |
1,052 |
osh-native |
6 |
no-host |
configure.yash |
256,647 |
0 |
0 |
0 |
4,120 |
0 |
872 |
83 |
bash |
14 |
no-host |
configure.yash |
244,688 |
0 |
0 |
0 |
3,720 |
0 |
865 |
81 |
dash |
22 |
no-host |
configure.yash |
385,009 |
0 |
0 |
0 |
3,728 |
0 |
858 |
161 |
osh-cpython |
30 |
no-host |
configure.yash |
258,959 |
0 |
0 |
0 |
3,736 |
0 |
853 |
87 |
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,681 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host