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 |
450 |
22 |
23.54 |
1.17 |
bin-true |
no-host |
669 |
546 |
2,265 |
813 |
3.39 |
1.22 |
configure.cpython |
no-host |
15,086 |
15,052 |
28,422 |
15,242 |
1.88 |
1.01 |
configure.ocaml |
no-host |
3,791 |
3,748 |
4,616 |
3,826 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
193 |
49 |
4.11 |
1.03 |
configure.util-linux |
no-host |
14,067 |
14,850 |
31,164 |
14,393 |
2.22 |
1.02 |
configure.yash |
no-host |
1,802 |
1,760 |
2,447 |
1,827 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.86 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,527 |
1,086 |
23,325 |
3,234 |
9.23 |
1.28 |
bin-true |
no-host |
103,423 |
66,454 |
750,288 |
129,150 |
7.25 |
1.25 |
configure.cpython |
no-host |
2,231,757 |
2,242,316 |
6,135,350 |
2,219,878 |
2.75 |
0.99 |
configure.ocaml |
no-host |
410,307 |
391,528 |
639,207 |
413,638 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,553 |
5,483 |
23,230 |
6,980 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,103,057 |
2,259,831 |
5,312,969 |
2,002,822 |
2.53 |
0.95 |
configure.yash |
no-host |
255,352 |
245,121 |
383,082 |
257,660 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
79 |
3,729 |
348 |
24.37 |
2.27 |
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 |
681 |
1,877 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.0 |
154,692 |
12,992 |
2,799 |
9,731 |
78,346 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,242 |
1 |
62 |
15.0 |
27.4 |
1,772,668 |
49,197 |
28,508 |
86,378 |
908,098 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,393 |
2 |
60 |
21.3 |
30.3 |
2,703,404 |
44,766 |
65,812 |
109,640 |
1,320,596 |
1,273,168 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,826 |
1 |
2 |
2.6 |
20.6 |
150,038 |
11,045 |
5,138 |
7,510 |
71,634 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,501 |
14,801 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,827 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
6,317 |
70,306 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,270 |
64,455 |
42,663 |
4,552 |
54,546 |
57,172 |
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.2 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
418 |
35 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
669 |
506 |
193 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
426 |
129 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,265 |
1,501 |
1,018 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
572 |
254 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,086 |
8,952 |
6,539 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,052 |
9,189 |
6,285 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,422 |
17,230 |
13,011 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,242 |
8,963 |
6,544 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,791 |
1,610 |
1,218 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,748 |
1,577 |
1,189 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,616 |
2,234 |
1,589 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,826 |
1,626 |
1,240 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
29 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
23 |
18 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
126 |
71 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,067 |
8,822 |
5,728 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,850 |
9,236 |
6,114 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,164 |
20,744 |
11,485 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,393 |
8,543 |
6,047 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,802 |
1,033 |
777 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,760 |
1,006 |
758 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,447 |
1,492 |
996 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,827 |
1,031 |
799 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
21 |
28 |
17.6 |
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,527 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
bash |
15 |
no-host |
abuild-print-help |
1,086 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,325 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,234 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
103,423 |
0 |
0 |
0 |
8 |
0 |
1,996 |
94 |
bash |
9 |
no-host |
bin-true |
66,454 |
0 |
0 |
0 |
8 |
0 |
1,985 |
41 |
dash |
17 |
no-host |
bin-true |
750,288 |
0 |
0 |
0 |
8 |
0 |
2,003 |
316 |
osh-cpython |
25 |
no-host |
bin-true |
129,150 |
0 |
0 |
0 |
16 |
0 |
1,990 |
81 |
osh-native |
2 |
no-host |
configure.cpython |
2,231,757 |
0 |
0 |
0 |
32,928 |
0 |
14,515 |
1,317 |
bash |
10 |
no-host |
configure.cpython |
2,242,316 |
1 |
0 |
0 |
32,992 |
0 |
14,634 |
1,178 |
dash |
18 |
no-host |
configure.cpython |
6,135,350 |
0 |
0 |
0 |
27,512 |
0 |
13,326 |
1,111 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,219,878 |
0 |
0 |
0 |
27,520 |
0 |
13,318 |
1,023 |
osh-native |
4 |
no-host |
configure.ocaml |
410,307 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
183 |
bash |
12 |
no-host |
configure.ocaml |
391,528 |
0 |
0 |
0 |
5,112 |
0 |
1,936 |
189 |
dash |
20 |
no-host |
configure.ocaml |
639,207 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
172 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,638 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
160 |
osh-native |
5 |
no-host |
configure.tcc |
6,553 |
0 |
0 |
0 |
104 |
0 |
48 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,230 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,980 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,057 |
1 |
0 |
0 |
42,408 |
0 |
18,607 |
1,050 |
bash |
11 |
no-host |
configure.util-linux |
2,259,831 |
0 |
0 |
0 |
42,592 |
0 |
17,443 |
1,223 |
dash |
19 |
no-host |
configure.util-linux |
5,312,969 |
10 |
0 |
0 |
39,112 |
0 |
17,068 |
1,246 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,822 |
2 |
0 |
0 |
39,120 |
0 |
17,196 |
1,008 |
osh-native |
6 |
no-host |
configure.yash |
255,352 |
0 |
0 |
0 |
4,120 |
0 |
869 |
82 |
bash |
14 |
no-host |
configure.yash |
245,121 |
0 |
0 |
0 |
3,720 |
0 |
870 |
87 |
dash |
22 |
no-host |
configure.yash |
383,082 |
0 |
0 |
0 |
3,728 |
0 |
855 |
92 |
osh-cpython |
30 |
no-host |
configure.yash |
257,660 |
0 |
0 |
0 |
3,736 |
0 |
852 |
80 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,729 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host