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 |
21 |
9 |
486 |
24 |
23.67 |
1.19 |
bin-true |
no-host |
697 |
568 |
2,402 |
858 |
3.44 |
1.23 |
configure.cpython |
no-host |
16,098 |
16,207 |
32,280 |
16,612 |
2.01 |
1.03 |
configure.ocaml |
no-host |
4,003 |
3,956 |
4,960 |
4,083 |
1.24 |
1.02 |
configure.tcc |
no-host |
50 |
44 |
211 |
51 |
4.19 |
1.02 |
configure.util-linux |
no-host |
15,100 |
16,027 |
35,492 |
15,677 |
2.35 |
1.04 |
configure.yash |
no-host |
1,940 |
1,900 |
2,705 |
1,977 |
1.39 |
1.02 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
28.58 |
1.65 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,538 |
1,099 |
23,373 |
3,194 |
9.21 |
1.26 |
bin-true |
no-host |
105,396 |
66,417 |
751,443 |
127,229 |
7.13 |
1.21 |
configure.cpython |
no-host |
2,218,705 |
2,255,142 |
6,128,963 |
2,230,118 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,596 |
390,837 |
639,019 |
413,953 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,531 |
5,475 |
23,143 |
6,968 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,098,969 |
2,261,854 |
5,296,179 |
2,017,682 |
2.52 |
0.96 |
configure.yash |
no-host |
256,618 |
244,118 |
383,413 |
259,073 |
1.49 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,656 |
349 |
23.90 |
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.3 |
3,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
858 |
1 |
2 |
2.7 |
8.1 |
154,694 |
12,996 |
2,803 |
11,737 |
78,350 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,612 |
2 |
73 |
15.8 |
27.4 |
1,772,610 |
49,201 |
28,512 |
101,770 |
908,057 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,677 |
3 |
73 |
22.2 |
30.4 |
2,703,274 |
44,770 |
65,796 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,592 |
1 |
configure.ocaml |
no-host |
4,083 |
1 |
2 |
2.7 |
20.4 |
150,036 |
11,049 |
5,142 |
8,602 |
71,635 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.3 |
30,529 |
30,529 |
0 |
1,599 |
14,805 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,977 |
1 |
2 |
2.6 |
24.2 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.8 |
116,272 |
64,459 |
42,667 |
4,610 |
54,550 |
57,112 |
478 |
3 |
85,334 |
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 |
21 |
11 |
10 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
486 |
433 |
56 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
17 |
7 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
697 |
528 |
200 |
3.0 |
bash |
9 |
no-host |
bin-true |
568 |
427 |
150 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,402 |
1,551 |
1,136 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
858 |
587 |
284 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
16,098 |
9,587 |
6,923 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
16,207 |
9,798 |
6,853 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
32,280 |
18,982 |
15,380 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,612 |
9,834 |
7,067 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
4,003 |
1,640 |
1,402 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,956 |
1,767 |
1,209 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,960 |
2,269 |
1,913 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,083 |
1,779 |
1,341 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
41 |
10 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
35 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
211 |
144 |
70 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
33 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
15,100 |
9,338 |
6,255 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
16,027 |
9,706 |
6,822 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
35,492 |
23,609 |
13,126 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,677 |
9,410 |
6,466 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,940 |
1,140 |
809 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,900 |
1,071 |
832 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,705 |
1,599 |
1,154 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,977 |
1,141 |
839 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
31 |
19 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,373 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,194 |
0 |
0 |
0 |
16 |
0 |
43 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,396 |
0 |
0 |
0 |
8 |
0 |
1,988 |
104 |
bash |
9 |
no-host |
bin-true |
66,417 |
0 |
0 |
0 |
8 |
0 |
1,989 |
72 |
dash |
17 |
no-host |
bin-true |
751,443 |
0 |
0 |
0 |
8 |
0 |
1,986 |
110 |
osh-cpython |
25 |
no-host |
bin-true |
127,229 |
0 |
0 |
0 |
16 |
0 |
1,983 |
114 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,705 |
0 |
0 |
0 |
32,928 |
0 |
14,538 |
1,014 |
bash |
10 |
no-host |
configure.cpython |
2,255,142 |
1 |
0 |
0 |
32,992 |
0 |
14,656 |
986 |
dash |
18 |
no-host |
configure.cpython |
6,128,963 |
0 |
0 |
0 |
27,512 |
0 |
13,267 |
1,464 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,230,118 |
0 |
0 |
0 |
27,520 |
0 |
13,305 |
1,008 |
osh-native |
4 |
no-host |
configure.ocaml |
410,596 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
231 |
bash |
12 |
no-host |
configure.ocaml |
390,837 |
0 |
0 |
0 |
5,112 |
0 |
1,883 |
155 |
dash |
20 |
no-host |
configure.ocaml |
639,019 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
193 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,953 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
181 |
osh-native |
5 |
no-host |
configure.tcc |
6,531 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,143 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,968 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,969 |
2 |
0 |
0 |
42,400 |
0 |
18,410 |
1,220 |
bash |
11 |
no-host |
configure.util-linux |
2,261,854 |
0 |
0 |
0 |
42,592 |
0 |
17,475 |
1,122 |
dash |
19 |
no-host |
configure.util-linux |
5,296,179 |
18 |
0 |
0 |
39,120 |
0 |
16,987 |
1,373 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,682 |
1 |
0 |
0 |
39,128 |
0 |
17,126 |
1,119 |
osh-native |
6 |
no-host |
configure.yash |
256,618 |
0 |
0 |
0 |
4,120 |
0 |
864 |
81 |
bash |
14 |
no-host |
configure.yash |
244,118 |
0 |
0 |
0 |
3,720 |
0 |
865 |
86 |
dash |
22 |
no-host |
configure.yash |
383,413 |
0 |
0 |
0 |
3,728 |
0 |
854 |
137 |
osh-cpython |
30 |
no-host |
configure.yash |
259,073 |
0 |
0 |
0 |
3,736 |
0 |
850 |
83 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,656 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host