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 |
452 |
22 |
23.99 |
1.16 |
bin-true |
no-host |
667 |
542 |
2,196 |
817 |
3.29 |
1.22 |
configure.cpython |
no-host |
14,856 |
14,955 |
27,978 |
15,020 |
1.88 |
1.01 |
configure.ocaml |
no-host |
3,793 |
3,710 |
4,551 |
3,795 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
190 |
48 |
3.99 |
1.02 |
configure.util-linux |
no-host |
13,942 |
14,824 |
30,826 |
14,271 |
2.21 |
1.02 |
configure.yash |
no-host |
1,799 |
1,745 |
2,492 |
1,803 |
1.39 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
30.91 |
1.80 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,531 |
1,123 |
22,910 |
3,187 |
9.05 |
1.26 |
bin-true |
no-host |
105,363 |
67,461 |
726,041 |
128,254 |
6.89 |
1.22 |
configure.cpython |
no-host |
2,225,568 |
2,240,806 |
6,049,172 |
2,237,031 |
2.72 |
1.01 |
configure.ocaml |
no-host |
410,233 |
391,373 |
634,502 |
414,215 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,579 |
5,489 |
22,949 |
7,002 |
3.49 |
1.06 |
configure.util-linux |
no-host |
2,095,682 |
2,266,466 |
5,287,002 |
2,015,594 |
2.52 |
0.96 |
configure.yash |
no-host |
255,766 |
244,528 |
382,969 |
258,312 |
1.50 |
1.01 |
hello-world |
no-host |
156 |
81 |
3,647 |
340 |
23.38 |
2.18 |
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.2 |
6.2 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.7 |
7.9 |
154,658 |
12,890 |
2,792 |
11,730 |
78,319 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,020 |
1 |
58 |
15.9 |
27.3 |
1,772,935 |
49,191 |
28,502 |
101,923 |
908,314 |
762,698 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,271 |
2 |
57 |
22.2 |
30.3 |
2,703,259 |
44,760 |
65,806 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,795 |
0 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,803 |
1 |
2 |
2.6 |
24.2 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,221 |
64,449 |
42,657 |
4,601 |
54,503 |
57,117 |
478 |
3 |
85,314 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
419 |
36 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
667 |
486 |
211 |
3.0 |
bash |
9 |
no-host |
bin-true |
542 |
408 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,196 |
1,423 |
1,018 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
587 |
244 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,856 |
8,981 |
6,274 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
14,955 |
9,053 |
6,325 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
27,978 |
17,264 |
12,476 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,020 |
8,790 |
6,492 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,793 |
1,582 |
1,242 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,710 |
1,610 |
1,119 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,551 |
2,250 |
1,501 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,795 |
1,662 |
1,171 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
190 |
130 |
63 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
36 |
13 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,942 |
8,934 |
5,489 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,824 |
9,102 |
6,216 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,826 |
20,382 |
11,500 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,271 |
8,696 |
5,774 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,799 |
983 |
825 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,745 |
1,044 |
704 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,492 |
1,535 |
1,001 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,803 |
1,006 |
802 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
32 |
15 |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,123 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,910 |
0 |
0 |
0 |
8 |
0 |
47 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,187 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,363 |
0 |
0 |
0 |
8 |
0 |
1,986 |
50 |
bash |
9 |
no-host |
bin-true |
67,461 |
0 |
0 |
0 |
8 |
0 |
1,989 |
61 |
dash |
17 |
no-host |
bin-true |
726,041 |
0 |
0 |
0 |
8 |
0 |
1,998 |
306 |
osh-cpython |
25 |
no-host |
bin-true |
128,254 |
0 |
0 |
0 |
16 |
0 |
1,994 |
116 |
osh-native |
2 |
no-host |
configure.cpython |
2,225,568 |
0 |
0 |
0 |
32,928 |
0 |
14,477 |
1,109 |
bash |
10 |
no-host |
configure.cpython |
2,240,806 |
0 |
0 |
0 |
32,992 |
0 |
14,570 |
1,078 |
dash |
18 |
no-host |
configure.cpython |
6,049,172 |
2 |
0 |
0 |
27,512 |
0 |
13,250 |
1,112 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,237,031 |
0 |
0 |
0 |
27,520 |
0 |
13,264 |
1,012 |
osh-native |
4 |
no-host |
configure.ocaml |
410,233 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
182 |
bash |
12 |
no-host |
configure.ocaml |
391,373 |
0 |
0 |
0 |
5,112 |
0 |
1,944 |
167 |
dash |
20 |
no-host |
configure.ocaml |
634,502 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
170 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,215 |
0 |
0 |
0 |
5,120 |
0 |
1,941 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,579 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
22,949 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,002 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,682 |
0 |
0 |
0 |
42,400 |
0 |
18,544 |
1,182 |
bash |
11 |
no-host |
configure.util-linux |
2,266,466 |
0 |
0 |
0 |
42,584 |
0 |
17,367 |
1,235 |
dash |
19 |
no-host |
configure.util-linux |
5,287,002 |
10 |
0 |
0 |
39,120 |
0 |
17,050 |
1,293 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,594 |
0 |
0 |
0 |
39,120 |
0 |
17,071 |
985 |
osh-native |
6 |
no-host |
configure.yash |
255,766 |
0 |
0 |
0 |
4,120 |
0 |
868 |
66 |
bash |
14 |
no-host |
configure.yash |
244,528 |
0 |
0 |
0 |
3,720 |
0 |
870 |
75 |
dash |
22 |
no-host |
configure.yash |
382,969 |
0 |
0 |
0 |
3,728 |
0 |
858 |
101 |
osh-cpython |
30 |
no-host |
configure.yash |
258,312 |
0 |
0 |
0 |
3,736 |
0 |
852 |
92 |
osh-native |
0 |
no-host |
hello-world |
156 |
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,647 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
340 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host