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 |
477 |
23 |
24.22 |
1.17 |
bin-true |
no-host |
673 |
551 |
2,283 |
819 |
3.39 |
1.22 |
configure.cpython |
no-host |
15,269 |
15,345 |
29,590 |
15,912 |
1.94 |
1.04 |
configure.ocaml |
no-host |
3,801 |
3,803 |
4,633 |
3,937 |
1.22 |
1.04 |
configure.tcc |
no-host |
48 |
43 |
191 |
51 |
4.00 |
1.08 |
configure.util-linux |
no-host |
14,085 |
15,277 |
31,743 |
14,732 |
2.25 |
1.05 |
configure.yash |
no-host |
1,819 |
1,831 |
2,445 |
1,887 |
1.34 |
1.04 |
hello-world |
no-host |
2 |
1 |
54 |
3 |
34.66 |
1.87 |
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,133 |
23,394 |
3,216 |
9.17 |
1.26 |
bin-true |
no-host |
104,341 |
66,469 |
752,851 |
128,194 |
7.22 |
1.23 |
configure.cpython |
no-host |
2,225,068 |
2,239,591 |
6,152,088 |
2,237,432 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,466 |
391,909 |
639,155 |
414,065 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,564 |
5,467 |
23,254 |
6,974 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,103,824 |
2,256,515 |
5,329,599 |
2,010,491 |
2.53 |
0.96 |
configure.yash |
no-host |
255,134 |
244,598 |
385,969 |
258,244 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
84 |
3,659 |
346 |
23.92 |
2.26 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.7 |
7.9 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,912 |
2 |
67 |
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,732 |
3 |
61 |
22.2 |
30.3 |
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,937 |
1 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
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,887 |
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 |
9.0 |
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 |
20 |
19 |
1 |
4.2 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
477 |
442 |
39 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
10 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
673 |
495 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
551 |
428 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,283 |
1,495 |
1,057 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
582 |
254 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,269 |
9,250 |
6,406 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,345 |
9,256 |
6,505 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,590 |
17,674 |
13,838 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,912 |
9,449 |
6,742 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,801 |
1,620 |
1,220 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,803 |
1,616 |
1,208 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,633 |
2,197 |
1,639 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,937 |
1,700 |
1,276 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
19 |
29 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
29 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
117 |
77 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
24 |
28 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,085 |
8,926 |
5,603 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,277 |
9,311 |
6,458 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,743 |
21,152 |
11,700 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,732 |
8,892 |
6,007 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,819 |
1,043 |
785 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,831 |
1,008 |
826 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,445 |
1,454 |
1,034 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,887 |
1,097 |
795 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
54 |
37 |
17 |
17.2 |
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,551 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,394 |
0 |
0 |
0 |
8 |
0 |
47 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,216 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
104,341 |
0 |
0 |
0 |
8 |
0 |
1,992 |
236 |
bash |
9 |
no-host |
bin-true |
66,469 |
0 |
0 |
0 |
8 |
0 |
1,982 |
34 |
dash |
17 |
no-host |
bin-true |
752,851 |
0 |
0 |
0 |
8 |
0 |
1,996 |
235 |
osh-cpython |
25 |
no-host |
bin-true |
128,194 |
0 |
0 |
0 |
16 |
0 |
1,984 |
49 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,068 |
0 |
0 |
0 |
32,928 |
0 |
14,476 |
1,105 |
bash |
10 |
no-host |
configure.cpython |
2,239,591 |
0 |
0 |
0 |
32,992 |
0 |
14,528 |
1,037 |
dash |
18 |
no-host |
configure.cpython |
6,152,088 |
0 |
0 |
0 |
27,512 |
0 |
13,298 |
1,214 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,237,432 |
1 |
0 |
0 |
27,520 |
0 |
13,196 |
962 |
osh-native |
4 |
no-host |
configure.ocaml |
410,466 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
160 |
bash |
12 |
no-host |
configure.ocaml |
391,909 |
0 |
0 |
0 |
5,112 |
0 |
1,943 |
135 |
dash |
20 |
no-host |
configure.ocaml |
639,155 |
1 |
0 |
0 |
5,112 |
0 |
1,856 |
205 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,065 |
0 |
0 |
0 |
5,120 |
0 |
1,939 |
151 |
osh-native |
5 |
no-host |
configure.tcc |
6,564 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,467 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,254 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,974 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,824 |
0 |
0 |
0 |
42,400 |
0 |
18,634 |
1,369 |
bash |
11 |
no-host |
configure.util-linux |
2,256,515 |
2 |
0 |
0 |
42,592 |
0 |
17,453 |
1,260 |
dash |
19 |
no-host |
configure.util-linux |
5,329,599 |
14 |
0 |
0 |
39,112 |
0 |
17,071 |
1,255 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,491 |
1 |
0 |
0 |
39,128 |
0 |
17,088 |
1,120 |
osh-native |
6 |
no-host |
configure.yash |
255,134 |
0 |
0 |
0 |
4,120 |
0 |
869 |
86 |
bash |
14 |
no-host |
configure.yash |
244,598 |
0 |
0 |
0 |
3,720 |
0 |
866 |
86 |
dash |
22 |
no-host |
configure.yash |
385,969 |
0 |
0 |
0 |
3,728 |
0 |
858 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
258,244 |
0 |
0 |
0 |
3,736 |
0 |
849 |
85 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,659 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host