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 |
10 |
442 |
23 |
22.35 |
1.17 |
bin-true |
no-host |
686 |
543 |
2,261 |
813 |
3.30 |
1.19 |
configure.cpython |
no-host |
15,337 |
15,231 |
28,748 |
15,364 |
1.87 |
1.00 |
configure.ocaml |
no-host |
3,833 |
3,782 |
4,637 |
3,884 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
194 |
50 |
4.09 |
1.06 |
configure.util-linux |
no-host |
14,254 |
14,895 |
31,476 |
14,780 |
2.21 |
1.04 |
configure.yash |
no-host |
1,834 |
1,775 |
2,449 |
1,860 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.56 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,541 |
1,109 |
23,234 |
3,203 |
9.14 |
1.26 |
bin-true |
no-host |
108,357 |
67,402 |
752,048 |
126,151 |
6.94 |
1.16 |
configure.cpython |
no-host |
2,221,112 |
2,241,179 |
6,138,508 |
2,232,191 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,629 |
390,978 |
637,640 |
413,359 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,562 |
5,480 |
23,207 |
6,990 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,099,908 |
2,261,929 |
5,335,062 |
2,008,719 |
2.54 |
0.96 |
configure.yash |
no-host |
256,323 |
244,030 |
385,354 |
258,138 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
83 |
3,651 |
347 |
23.71 |
2.25 |
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,717 |
3,717 |
0 |
684 |
1,869 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.7 |
8.1 |
154,682 |
12,988 |
2,795 |
11,737 |
78,338 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,364 |
1 |
65 |
15.8 |
27.4 |
1,772,598 |
49,193 |
28,504 |
101,770 |
908,045 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,780 |
3 |
66 |
22.2 |
30.1 |
2,703,262 |
44,762 |
65,788 |
126,121 |
1,320,489 |
1,256,652 |
49,081 |
41 |
131,576 |
1 |
configure.ocaml |
no-host |
3,884 |
1 |
2 |
2.7 |
20.6 |
150,024 |
11,041 |
5,134 |
8,602 |
71,623 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,517 |
30,517 |
0 |
1,599 |
14,793 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,860 |
1 |
2 |
2.6 |
24.4 |
139,681 |
7,960 |
6,596 |
7,554 |
70,295 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,260 |
64,451 |
42,659 |
4,609 |
54,538 |
57,113 |
478 |
3 |
85,318 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
442 |
392 |
53 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
6 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
686 |
510 |
206 |
2.9 |
bash |
9 |
no-host |
bin-true |
543 |
426 |
128 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,261 |
1,449 |
1,068 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
587 |
242 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,337 |
9,212 |
6,518 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,231 |
9,275 |
6,384 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,748 |
17,627 |
12,975 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,364 |
9,085 |
6,540 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,833 |
1,594 |
1,280 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,782 |
1,585 |
1,214 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,637 |
2,261 |
1,579 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,884 |
1,614 |
1,310 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
29 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
157 |
40 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
33 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,254 |
8,780 |
5,955 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,895 |
9,127 |
6,273 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,476 |
20,986 |
11,598 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,780 |
9,035 |
5,939 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,834 |
1,093 |
736 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,775 |
1,043 |
735 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,449 |
1,435 |
1,056 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,860 |
1,055 |
809 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
23 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,541 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,234 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
108,357 |
0 |
0 |
0 |
8 |
0 |
1,992 |
62 |
bash |
9 |
no-host |
bin-true |
67,402 |
0 |
0 |
0 |
8 |
0 |
1,993 |
41 |
dash |
17 |
no-host |
bin-true |
752,048 |
0 |
0 |
0 |
8 |
0 |
2,000 |
387 |
osh-cpython |
25 |
no-host |
bin-true |
126,151 |
0 |
0 |
0 |
16 |
0 |
1,990 |
93 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,112 |
1 |
0 |
0 |
32,928 |
0 |
14,482 |
1,103 |
bash |
10 |
no-host |
configure.cpython |
2,241,179 |
0 |
0 |
0 |
32,992 |
0 |
14,611 |
1,035 |
dash |
18 |
no-host |
configure.cpython |
6,138,508 |
0 |
0 |
0 |
27,512 |
0 |
13,239 |
1,329 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,191 |
0 |
0 |
0 |
27,520 |
0 |
13,344 |
1,057 |
osh-native |
4 |
no-host |
configure.ocaml |
410,629 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
167 |
bash |
12 |
no-host |
configure.ocaml |
390,978 |
0 |
0 |
0 |
5,112 |
0 |
1,894 |
135 |
dash |
20 |
no-host |
configure.ocaml |
637,640 |
1 |
0 |
0 |
5,112 |
0 |
1,866 |
204 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,359 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
194 |
osh-native |
5 |
no-host |
configure.tcc |
6,562 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,480 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,207 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,908 |
0 |
0 |
0 |
42,400 |
0 |
18,495 |
1,126 |
bash |
11 |
no-host |
configure.util-linux |
2,261,929 |
1 |
0 |
0 |
42,584 |
0 |
17,500 |
1,082 |
dash |
19 |
no-host |
configure.util-linux |
5,335,062 |
9 |
0 |
0 |
39,112 |
0 |
17,196 |
1,175 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,008,719 |
3 |
0 |
0 |
39,120 |
0 |
17,020 |
1,067 |
osh-native |
6 |
no-host |
configure.yash |
256,323 |
0 |
0 |
0 |
4,120 |
0 |
874 |
81 |
bash |
14 |
no-host |
configure.yash |
244,030 |
0 |
0 |
0 |
3,720 |
0 |
870 |
74 |
dash |
22 |
no-host |
configure.yash |
385,354 |
0 |
0 |
0 |
3,728 |
0 |
857 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
258,138 |
0 |
0 |
0 |
3,736 |
0 |
854 |
89 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,651 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host