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 |
455 |
23 |
23.63 |
1.20 |
bin-true |
no-host |
675 |
541 |
2,254 |
813 |
3.34 |
1.20 |
configure.cpython |
no-host |
14,887 |
14,937 |
28,224 |
15,122 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,790 |
3,719 |
4,572 |
3,809 |
1.21 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
193 |
49 |
4.05 |
1.03 |
configure.util-linux |
no-host |
13,888 |
14,791 |
30,957 |
14,303 |
2.23 |
1.03 |
configure.yash |
no-host |
1,803 |
1,754 |
2,428 |
1,813 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.32 |
1.99 |
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,088 |
23,442 |
3,210 |
9.18 |
1.26 |
bin-true |
no-host |
106,395 |
65,406 |
757,568 |
127,183 |
7.12 |
1.20 |
configure.cpython |
no-host |
2,224,997 |
2,237,743 |
6,173,555 |
2,230,324 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,439 |
391,151 |
640,946 |
413,727 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,574 |
5,485 |
23,330 |
6,992 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,095,934 |
2,262,032 |
5,349,566 |
2,019,782 |
2.55 |
0.96 |
configure.yash |
no-host |
256,403 |
245,177 |
385,427 |
257,987 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
83 |
3,688 |
349 |
24.59 |
2.33 |
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 |
813 |
1 |
2 |
2.7 |
8.3 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,122 |
1 |
60 |
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 |
14,303 |
2 |
59 |
22.2 |
30.0 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,809 |
1 |
2 |
2.7 |
20.4 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
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,813 |
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 |
19 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
407 |
52 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
6 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
675 |
520 |
187 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
434 |
116 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,254 |
1,497 |
1,016 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
593 |
235 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
14,887 |
8,982 |
6,303 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,937 |
9,023 |
6,345 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,224 |
17,329 |
12,732 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,122 |
8,752 |
6,646 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,790 |
1,670 |
1,146 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,719 |
1,525 |
1,212 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,572 |
2,164 |
1,616 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,809 |
1,532 |
1,317 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
31 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
154 |
42 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
37 |
13 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,888 |
8,794 |
5,587 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,791 |
9,136 |
6,157 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,957 |
20,694 |
11,352 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,303 |
8,672 |
5,831 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,803 |
1,052 |
758 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,754 |
1,021 |
736 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,428 |
1,533 |
938 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,813 |
1,059 |
758 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
36 |
12 |
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,553 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,088 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,442 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,210 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,395 |
0 |
0 |
0 |
8 |
0 |
1,993 |
44 |
bash |
9 |
no-host |
bin-true |
65,406 |
0 |
0 |
0 |
8 |
0 |
1,988 |
43 |
dash |
17 |
no-host |
bin-true |
757,568 |
0 |
0 |
0 |
8 |
0 |
1,998 |
341 |
osh-cpython |
25 |
no-host |
bin-true |
127,183 |
0 |
0 |
0 |
16 |
0 |
1,985 |
97 |
osh-native |
2 |
no-host |
configure.cpython |
2,224,997 |
1 |
0 |
0 |
32,928 |
0 |
14,560 |
909 |
bash |
10 |
no-host |
configure.cpython |
2,237,743 |
0 |
0 |
0 |
32,992 |
0 |
14,674 |
993 |
dash |
18 |
no-host |
configure.cpython |
6,173,555 |
0 |
0 |
0 |
27,512 |
0 |
13,281 |
1,188 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,230,324 |
0 |
0 |
0 |
27,520 |
0 |
13,296 |
998 |
osh-native |
4 |
no-host |
configure.ocaml |
410,439 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
167 |
bash |
12 |
no-host |
configure.ocaml |
391,151 |
0 |
0 |
0 |
5,112 |
0 |
1,896 |
157 |
dash |
20 |
no-host |
configure.ocaml |
640,946 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
170 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,727 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
170 |
osh-native |
5 |
no-host |
configure.tcc |
6,574 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,330 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,992 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,934 |
0 |
0 |
0 |
42,400 |
0 |
18,673 |
1,015 |
bash |
11 |
no-host |
configure.util-linux |
2,262,032 |
2 |
0 |
0 |
42,584 |
0 |
17,492 |
1,262 |
dash |
19 |
no-host |
configure.util-linux |
5,349,566 |
6 |
0 |
0 |
39,128 |
0 |
17,050 |
1,382 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,782 |
0 |
0 |
0 |
39,120 |
0 |
17,005 |
974 |
osh-native |
6 |
no-host |
configure.yash |
256,403 |
0 |
0 |
0 |
4,120 |
0 |
872 |
71 |
bash |
14 |
no-host |
configure.yash |
245,177 |
0 |
0 |
0 |
3,720 |
0 |
868 |
83 |
dash |
22 |
no-host |
configure.yash |
385,427 |
0 |
0 |
0 |
3,728 |
0 |
860 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
257,987 |
0 |
0 |
0 |
3,736 |
0 |
849 |
82 |
osh-native |
0 |
no-host |
hello-world |
150 |
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,688 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host