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 |
23 |
23.25 |
1.17 |
bin-true |
no-host |
677 |
546 |
2,256 |
842 |
3.33 |
1.24 |
configure.cpython |
no-host |
14,944 |
15,083 |
28,329 |
15,821 |
1.90 |
1.06 |
configure.ocaml |
no-host |
3,806 |
3,729 |
4,668 |
3,937 |
1.23 |
1.03 |
configure.tcc |
no-host |
47 |
42 |
190 |
51 |
4.02 |
1.07 |
configure.util-linux |
no-host |
14,134 |
14,934 |
31,142 |
14,725 |
2.20 |
1.04 |
configure.yash |
no-host |
1,827 |
1,796 |
2,405 |
1,902 |
1.32 |
1.04 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.29 |
2.12 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,536 |
1,098 |
23,188 |
3,218 |
9.14 |
1.27 |
bin-true |
no-host |
105,319 |
66,446 |
749,404 |
130,188 |
7.12 |
1.24 |
configure.cpython |
no-host |
2,215,022 |
2,252,592 |
6,112,246 |
2,235,161 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,358 |
391,041 |
636,436 |
414,454 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,548 |
5,495 |
23,182 |
7,001 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,098,223 |
2,268,833 |
5,316,439 |
2,007,081 |
2.53 |
0.96 |
configure.yash |
no-host |
255,875 |
243,958 |
385,483 |
258,222 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
84 |
3,653 |
347 |
24.03 |
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.2 |
3,720 |
3,720 |
0 |
684 |
1,872 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
842 |
1 |
2 |
2.7 |
7.7 |
154,685 |
12,990 |
2,797 |
11,737 |
78,341 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,821 |
1 |
64 |
15.8 |
27.4 |
1,772,601 |
49,195 |
28,506 |
101,770 |
908,048 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,725 |
3 |
63 |
22.2 |
30.1 |
2,703,265 |
44,764 |
65,790 |
126,121 |
1,320,492 |
1,256,652 |
49,081 |
41 |
131,580 |
1 |
configure.ocaml |
no-host |
3,937 |
1 |
2 |
2.7 |
20.6 |
150,027 |
11,043 |
5,136 |
8,602 |
71,626 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.4 |
30,520 |
30,520 |
0 |
1,599 |
14,796 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,902 |
1 |
2 |
2.6 |
24.2 |
139,684 |
7,962 |
6,598 |
7,554 |
70,298 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,263 |
64,453 |
42,661 |
4,609 |
54,541 |
57,113 |
478 |
3 |
85,322 |
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.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
452 |
417 |
39 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
23 |
0 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
677 |
508 |
204 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
427 |
130 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,256 |
1,452 |
1,047 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
842 |
583 |
272 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
14,944 |
8,976 |
6,371 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,083 |
9,129 |
6,362 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,329 |
17,170 |
12,970 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,821 |
9,198 |
6,897 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,806 |
1,656 |
1,177 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,729 |
1,625 |
1,123 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,668 |
2,218 |
1,651 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,937 |
1,707 |
1,272 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
40 |
8 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
30 |
12 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
138 |
56 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
30 |
22 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,134 |
8,914 |
5,691 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,934 |
9,081 |
6,358 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,142 |
20,885 |
11,315 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,725 |
8,860 |
6,053 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
992 |
844 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,796 |
1,018 |
782 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,405 |
1,471 |
975 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,902 |
1,071 |
834 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.2 |
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,536 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,188 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,218 |
0 |
0 |
0 |
16 |
0 |
42 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,319 |
0 |
0 |
0 |
8 |
0 |
1,991 |
165 |
bash |
9 |
no-host |
bin-true |
66,446 |
0 |
0 |
0 |
8 |
0 |
1,989 |
60 |
dash |
17 |
no-host |
bin-true |
749,404 |
0 |
0 |
0 |
8 |
0 |
2,001 |
582 |
osh-cpython |
25 |
no-host |
bin-true |
130,188 |
0 |
0 |
0 |
16 |
0 |
1,985 |
245 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,022 |
0 |
0 |
0 |
32,928 |
0 |
14,484 |
1,216 |
bash |
10 |
no-host |
configure.cpython |
2,252,592 |
0 |
0 |
0 |
32,992 |
0 |
14,648 |
1,033 |
dash |
18 |
no-host |
configure.cpython |
6,112,246 |
1 |
0 |
0 |
27,512 |
0 |
13,255 |
1,378 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,161 |
8 |
0 |
0 |
27,520 |
0 |
13,320 |
1,244 |
osh-native |
4 |
no-host |
configure.ocaml |
410,358 |
0 |
0 |
0 |
5,120 |
0 |
1,967 |
178 |
bash |
12 |
no-host |
configure.ocaml |
391,041 |
0 |
0 |
0 |
5,112 |
0 |
1,944 |
143 |
dash |
20 |
no-host |
configure.ocaml |
636,436 |
1 |
0 |
0 |
5,112 |
0 |
1,858 |
188 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,454 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
151 |
osh-native |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,495 |
0 |
0 |
0 |
96 |
0 |
47 |
9 |
dash |
21 |
no-host |
configure.tcc |
23,182 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,001 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,223 |
0 |
0 |
0 |
42,400 |
0 |
18,600 |
1,266 |
bash |
11 |
no-host |
configure.util-linux |
2,268,833 |
0 |
0 |
0 |
42,584 |
0 |
17,488 |
1,226 |
dash |
19 |
no-host |
configure.util-linux |
5,316,439 |
5 |
0 |
0 |
39,120 |
0 |
17,194 |
1,204 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,007,081 |
4 |
0 |
0 |
39,120 |
0 |
17,218 |
1,091 |
osh-native |
6 |
no-host |
configure.yash |
255,875 |
0 |
0 |
0 |
4,120 |
0 |
871 |
86 |
bash |
14 |
no-host |
configure.yash |
243,958 |
0 |
0 |
0 |
3,720 |
0 |
870 |
71 |
dash |
22 |
no-host |
configure.yash |
385,483 |
0 |
0 |
0 |
3,728 |
0 |
858 |
81 |
osh-cpython |
30 |
no-host |
configure.yash |
258,222 |
0 |
0 |
0 |
3,736 |
0 |
851 |
84 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,653 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host