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 |
20 |
9 |
469 |
22 |
23.98 |
1.14 |
bin-true |
no-host |
677 |
554 |
2,260 |
813 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,444 |
15,544 |
28,646 |
15,288 |
1.85 |
0.99 |
configure.ocaml |
no-host |
3,919 |
3,761 |
4,646 |
3,869 |
1.19 |
0.99 |
configure.tcc |
no-host |
49 |
41 |
194 |
48 |
3.98 |
0.99 |
configure.util-linux |
no-host |
14,585 |
15,263 |
31,363 |
14,434 |
2.15 |
0.99 |
configure.yash |
no-host |
1,887 |
1,789 |
2,465 |
1,837 |
1.31 |
0.97 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.70 |
1.90 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,546 |
1,081 |
22,833 |
3,135 |
8.97 |
1.23 |
bin-true |
no-host |
106,311 |
66,428 |
755,392 |
127,498 |
7.11 |
1.20 |
configure.cpython |
no-host |
2,218,029 |
2,246,696 |
6,111,970 |
2,218,850 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,768 |
390,883 |
637,578 |
413,525 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,565 |
5,496 |
23,233 |
7,003 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,109,725 |
2,255,340 |
5,284,519 |
1,992,897 |
2.50 |
0.94 |
configure.yash |
no-host |
256,827 |
244,567 |
383,754 |
257,999 |
1.49 |
1.00 |
hello-world |
no-host |
151 |
84 |
3,694 |
349 |
24.46 |
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.3 |
3,737 |
3,737 |
0 |
681 |
1,887 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
7.9 |
154,702 |
13,054 |
2,807 |
9,731 |
78,356 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,288 |
1 |
60 |
15.0 |
27.3 |
1,772,678 |
49,205 |
28,516 |
86,378 |
908,108 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,434 |
3 |
60 |
21.3 |
30.3 |
2,703,414 |
42,780 |
65,821 |
109,640 |
1,320,606 |
1,273,168 |
49,081 |
41 |
131,642 |
1 |
configure.ocaml |
no-host |
3,869 |
1 |
2 |
2.6 |
20.6 |
150,048 |
11,054 |
5,147 |
7,510 |
71,644 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,537 |
30,537 |
0 |
1,501 |
14,811 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,837 |
1 |
2 |
2.6 |
24.4 |
139,705 |
7,972 |
6,608 |
6,317 |
70,316 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,280 |
64,463 |
42,671 |
4,552 |
54,556 |
57,172 |
478 |
3 |
85,342 |
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 |
20 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
469 |
435 |
37 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
677 |
492 |
217 |
2.9 |
bash |
9 |
no-host |
bin-true |
554 |
429 |
134 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,260 |
1,443 |
1,077 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
594 |
235 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,444 |
9,252 |
6,591 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,544 |
9,223 |
6,753 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,646 |
17,468 |
13,047 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,288 |
8,898 |
6,653 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,919 |
1,666 |
1,288 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,761 |
1,635 |
1,145 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,646 |
2,294 |
1,560 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,869 |
1,652 |
1,243 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
37 |
12 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
24 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
167 |
30 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
26 |
23 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,585 |
9,189 |
5,880 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,263 |
9,324 |
6,432 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,363 |
21,038 |
11,402 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,434 |
8,803 |
5,824 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,887 |
1,134 |
761 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,789 |
1,112 |
679 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,465 |
1,514 |
994 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,837 |
1,037 |
804 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
40 |
8 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,546 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,081 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,833 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,135 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,311 |
0 |
0 |
0 |
8 |
0 |
1,984 |
85 |
bash |
9 |
no-host |
bin-true |
66,428 |
0 |
0 |
0 |
8 |
0 |
1,994 |
97 |
dash |
17 |
no-host |
bin-true |
755,392 |
0 |
0 |
0 |
8 |
0 |
1,997 |
196 |
osh-cpython |
25 |
no-host |
bin-true |
127,498 |
0 |
0 |
0 |
16 |
0 |
1,991 |
39 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,029 |
0 |
0 |
0 |
32,928 |
0 |
14,602 |
1,216 |
bash |
10 |
no-host |
configure.cpython |
2,246,696 |
0 |
0 |
0 |
32,992 |
0 |
14,673 |
1,034 |
dash |
18 |
no-host |
configure.cpython |
6,111,970 |
0 |
0 |
0 |
27,512 |
0 |
13,235 |
1,273 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,850 |
0 |
0 |
0 |
27,520 |
0 |
13,284 |
977 |
osh-native |
4 |
no-host |
configure.ocaml |
410,768 |
0 |
0 |
0 |
5,120 |
0 |
1,965 |
149 |
bash |
12 |
no-host |
configure.ocaml |
390,883 |
0 |
0 |
0 |
5,112 |
0 |
1,908 |
223 |
dash |
20 |
no-host |
configure.ocaml |
637,578 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
185 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,525 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
169 |
osh-native |
5 |
no-host |
configure.tcc |
6,565 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,496 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,233 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,003 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,109,725 |
0 |
0 |
0 |
42,400 |
0 |
18,562 |
1,142 |
bash |
11 |
no-host |
configure.util-linux |
2,255,340 |
0 |
0 |
0 |
42,584 |
0 |
17,454 |
1,143 |
dash |
19 |
no-host |
configure.util-linux |
5,284,519 |
9 |
0 |
0 |
39,112 |
0 |
16,969 |
1,281 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,992,897 |
2 |
0 |
0 |
39,120 |
0 |
16,986 |
1,030 |
osh-native |
6 |
no-host |
configure.yash |
256,827 |
0 |
0 |
0 |
4,120 |
0 |
871 |
99 |
bash |
14 |
no-host |
configure.yash |
244,567 |
0 |
0 |
0 |
3,720 |
0 |
868 |
101 |
dash |
22 |
no-host |
configure.yash |
383,754 |
0 |
0 |
0 |
3,728 |
0 |
857 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
257,999 |
0 |
0 |
0 |
3,736 |
0 |
849 |
89 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,694 |
0 |
0 |
0 |
8 |
0 |
6 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host