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 |
477 |
23 |
23.86 |
1.15 |
bin-true |
no-host |
680 |
563 |
2,405 |
846 |
3.54 |
1.24 |
configure.cpython |
no-host |
15,347 |
16,294 |
30,563 |
16,485 |
1.99 |
1.07 |
configure.ocaml |
no-host |
3,921 |
3,913 |
4,878 |
4,018 |
1.24 |
1.02 |
configure.tcc |
no-host |
51 |
44 |
211 |
52 |
4.15 |
1.02 |
configure.util-linux |
no-host |
14,350 |
15,768 |
33,864 |
15,347 |
2.36 |
1.07 |
configure.yash |
no-host |
1,934 |
1,870 |
2,617 |
1,960 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
53 |
3 |
32.78 |
2.03 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,552 |
1,102 |
22,922 |
3,170 |
8.98 |
1.24 |
bin-true |
no-host |
106,335 |
67,465 |
748,413 |
127,502 |
7.04 |
1.20 |
configure.cpython |
no-host |
2,212,449 |
2,245,244 |
6,112,601 |
2,224,490 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,243 |
391,205 |
638,396 |
413,671 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,597 |
5,477 |
23,232 |
6,969 |
3.52 |
1.06 |
configure.util-linux |
no-host |
2,100,780 |
2,255,725 |
5,310,477 |
1,993,704 |
2.53 |
0.95 |
configure.yash |
no-host |
256,156 |
244,683 |
383,969 |
258,466 |
1.50 |
1.01 |
hello-world |
no-host |
149 |
83 |
3,696 |
346 |
24.81 |
2.32 |
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,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
846 |
1 |
2 |
2.6 |
7.9 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,485 |
2 |
69 |
15.0 |
27.1 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,347 |
3 |
68 |
21.3 |
30.0 |
2,703,522 |
44,774 |
65,800 |
109,670 |
1,320,641 |
1,273,211 |
49,086 |
41 |
131,600 |
1 |
configure.ocaml |
no-host |
4,018 |
1 |
2 |
2.6 |
20.4 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,960 |
1 |
2 |
2.6 |
24.5 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
478 |
3 |
85,340 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
477 |
418 |
63 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
680 |
520 |
193 |
2.9 |
bash |
9 |
no-host |
bin-true |
563 |
424 |
149 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,405 |
1,557 |
1,132 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
846 |
585 |
275 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,347 |
9,146 |
6,607 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
16,294 |
9,638 |
6,763 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
30,563 |
18,056 |
14,402 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,485 |
9,615 |
7,154 |
27.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,921 |
1,760 |
1,185 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,913 |
1,650 |
1,281 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,878 |
2,376 |
1,722 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,018 |
1,736 |
1,322 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
51 |
35 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
29 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
211 |
139 |
76 |
19.1 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
28 |
24 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,350 |
9,085 |
5,747 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,768 |
9,448 |
6,816 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
33,864 |
22,344 |
12,713 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,347 |
9,035 |
6,512 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,934 |
1,111 |
830 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,870 |
1,091 |
782 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,617 |
1,540 |
1,123 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,960 |
1,102 |
862 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
53 |
29 |
24 |
17.6 |
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,552 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,922 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,170 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,335 |
0 |
0 |
0 |
8 |
0 |
1,996 |
71 |
bash |
9 |
no-host |
bin-true |
67,465 |
0 |
0 |
0 |
8 |
0 |
1,992 |
48 |
dash |
17 |
no-host |
bin-true |
748,413 |
0 |
0 |
0 |
8 |
0 |
1,998 |
169 |
osh-cpython |
25 |
no-host |
bin-true |
127,502 |
0 |
0 |
0 |
16 |
0 |
1,990 |
161 |
osh-native |
2 |
no-host |
configure.cpython |
2,212,449 |
0 |
0 |
0 |
32,928 |
0 |
14,490 |
1,033 |
bash |
10 |
no-host |
configure.cpython |
2,245,244 |
0 |
0 |
0 |
32,992 |
0 |
14,627 |
1,054 |
dash |
18 |
no-host |
configure.cpython |
6,112,601 |
1 |
0 |
0 |
27,512 |
0 |
13,197 |
1,364 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,490 |
7 |
0 |
0 |
27,520 |
0 |
13,161 |
1,108 |
osh-native |
4 |
no-host |
configure.ocaml |
410,243 |
0 |
0 |
0 |
5,120 |
0 |
1,962 |
149 |
bash |
12 |
no-host |
configure.ocaml |
391,205 |
0 |
0 |
0 |
5,112 |
0 |
1,920 |
140 |
dash |
20 |
no-host |
configure.ocaml |
638,396 |
0 |
0 |
0 |
5,112 |
0 |
1,849 |
198 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,671 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
158 |
osh-native |
5 |
no-host |
configure.tcc |
6,597 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,232 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,969 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,780 |
0 |
0 |
0 |
42,400 |
0 |
18,521 |
1,120 |
bash |
11 |
no-host |
configure.util-linux |
2,255,725 |
0 |
0 |
0 |
42,584 |
0 |
17,467 |
1,128 |
dash |
19 |
no-host |
configure.util-linux |
5,310,477 |
8 |
0 |
0 |
39,112 |
0 |
16,936 |
1,223 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,704 |
0 |
0 |
0 |
39,144 |
0 |
16,981 |
1,019 |
osh-native |
6 |
no-host |
configure.yash |
256,156 |
0 |
0 |
0 |
4,120 |
0 |
870 |
201 |
bash |
14 |
no-host |
configure.yash |
244,683 |
0 |
0 |
0 |
3,720 |
0 |
863 |
83 |
dash |
22 |
no-host |
configure.yash |
383,969 |
0 |
0 |
0 |
3,728 |
0 |
853 |
113 |
osh-cpython |
30 |
no-host |
configure.yash |
258,466 |
0 |
0 |
0 |
3,736 |
0 |
846 |
83 |
osh-native |
0 |
no-host |
hello-world |
149 |
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,696 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host