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 |
459 |
23 |
23.91 |
1.20 |
bin-true |
no-host |
681 |
541 |
2,224 |
810 |
3.27 |
1.19 |
configure.cpython |
no-host |
15,298 |
15,237 |
28,846 |
15,579 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,834 |
3,785 |
4,717 |
3,904 |
1.23 |
1.02 |
configure.tcc |
no-host |
48 |
41 |
197 |
50 |
4.11 |
1.03 |
configure.util-linux |
no-host |
14,229 |
15,124 |
31,440 |
14,756 |
2.21 |
1.04 |
configure.yash |
no-host |
1,830 |
1,803 |
2,527 |
1,869 |
1.38 |
1.02 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.00 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,553 |
1,106 |
23,415 |
3,232 |
9.17 |
1.27 |
bin-true |
no-host |
105,387 |
66,468 |
753,249 |
126,168 |
7.15 |
1.20 |
configure.cpython |
no-host |
2,218,698 |
2,245,597 |
6,149,949 |
2,232,162 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,593 |
391,432 |
640,816 |
414,142 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,560 |
5,454 |
23,403 |
6,985 |
3.57 |
1.06 |
configure.util-linux |
no-host |
2,089,680 |
2,251,518 |
5,330,114 |
2,009,999 |
2.55 |
0.96 |
configure.yash |
no-host |
255,148 |
244,603 |
385,340 |
258,770 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
82 |
3,687 |
347 |
24.58 |
2.31 |
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 |
810 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,579 |
1 |
62 |
16.0 |
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 |
14,756 |
3 |
63 |
22.3 |
30.0 |
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,904 |
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 |
50 |
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,869 |
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 |
8.9 |
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 |
19 |
11 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
459 |
406 |
56 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
8 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
681 |
513 |
199 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
411 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,224 |
1,441 |
1,050 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
810 |
592 |
236 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,298 |
9,152 |
6,539 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,237 |
9,287 |
6,366 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,846 |
17,358 |
13,373 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,579 |
9,322 |
6,532 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,834 |
1,596 |
1,275 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,785 |
1,645 |
1,150 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,717 |
2,314 |
1,617 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,904 |
1,736 |
1,207 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
38 |
11 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
29 |
13 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
197 |
142 |
59 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
28 |
22 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,229 |
8,832 |
5,850 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,124 |
9,328 |
6,282 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,440 |
21,000 |
11,499 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,756 |
8,869 |
6,082 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,830 |
1,072 |
767 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,803 |
987 |
819 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,527 |
1,545 |
1,027 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,869 |
1,150 |
723 |
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 |
49 |
29 |
20 |
17.3 |
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,553 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,415 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,232 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,387 |
0 |
0 |
0 |
8 |
0 |
1,990 |
114 |
bash |
9 |
no-host |
bin-true |
66,468 |
0 |
0 |
0 |
8 |
0 |
1,987 |
78 |
dash |
17 |
no-host |
bin-true |
753,249 |
0 |
0 |
0 |
8 |
0 |
1,992 |
92 |
osh-cpython |
25 |
no-host |
bin-true |
126,168 |
0 |
0 |
0 |
16 |
0 |
1,981 |
57 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,698 |
1 |
0 |
0 |
32,928 |
0 |
14,527 |
1,185 |
bash |
10 |
no-host |
configure.cpython |
2,245,597 |
0 |
0 |
0 |
32,992 |
0 |
14,666 |
1,223 |
dash |
18 |
no-host |
configure.cpython |
6,149,949 |
3 |
0 |
0 |
27,512 |
0 |
13,291 |
1,169 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,162 |
1 |
0 |
0 |
27,520 |
0 |
13,324 |
949 |
osh-native |
4 |
no-host |
configure.ocaml |
410,593 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
167 |
bash |
12 |
no-host |
configure.ocaml |
391,432 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
156 |
dash |
20 |
no-host |
configure.ocaml |
640,816 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
166 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,142 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
158 |
osh-native |
5 |
no-host |
configure.tcc |
6,560 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,454 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,403 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,089,680 |
0 |
0 |
0 |
42,400 |
0 |
18,557 |
1,097 |
bash |
11 |
no-host |
configure.util-linux |
2,251,518 |
2 |
0 |
0 |
42,592 |
0 |
17,457 |
1,077 |
dash |
19 |
no-host |
configure.util-linux |
5,330,114 |
11 |
0 |
0 |
39,112 |
0 |
17,048 |
1,270 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,999 |
2 |
0 |
0 |
39,128 |
0 |
17,078 |
1,118 |
osh-native |
6 |
no-host |
configure.yash |
255,148 |
0 |
0 |
0 |
4,120 |
0 |
869 |
86 |
bash |
14 |
no-host |
configure.yash |
244,603 |
0 |
0 |
0 |
3,720 |
0 |
868 |
86 |
dash |
22 |
no-host |
configure.yash |
385,340 |
0 |
0 |
0 |
3,728 |
0 |
857 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
258,770 |
0 |
0 |
0 |
3,736 |
0 |
851 |
91 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,687 |
0 |
0 |
0 |
8 |
0 |
7 |
8 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host