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 |
460 |
23 |
23.66 |
1.17 |
bin-true |
no-host |
692 |
548 |
2,293 |
821 |
3.31 |
1.19 |
configure.cpython |
no-host |
15,643 |
15,654 |
30,112 |
15,892 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,946 |
3,849 |
4,749 |
3,908 |
1.20 |
0.99 |
configure.tcc |
no-host |
48 |
43 |
199 |
50 |
4.12 |
1.04 |
configure.util-linux |
no-host |
14,496 |
15,463 |
32,279 |
14,976 |
2.23 |
1.03 |
configure.yash |
no-host |
1,877 |
1,832 |
2,549 |
1,893 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
31.93 |
1.82 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,532 |
1,094 |
23,496 |
3,183 |
9.28 |
1.26 |
bin-true |
no-host |
106,321 |
66,435 |
753,872 |
128,174 |
7.09 |
1.21 |
configure.cpython |
no-host |
2,214,823 |
2,241,616 |
6,136,380 |
2,232,631 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,010 |
391,557 |
639,482 |
413,435 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,551 |
5,485 |
23,243 |
6,988 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,093,805 |
2,265,011 |
5,321,674 |
2,018,746 |
2.54 |
0.96 |
configure.yash |
no-host |
255,983 |
244,658 |
384,637 |
258,952 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
78 |
3,689 |
348 |
24.59 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,892 |
2 |
66 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,976 |
3 |
65 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,908 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,893 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
460 |
416 |
47 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
692 |
498 |
228 |
3.0 |
bash |
9 |
no-host |
bin-true |
548 |
428 |
128 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,293 |
1,460 |
1,099 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
584 |
249 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,643 |
9,384 |
6,668 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,654 |
9,495 |
6,577 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
30,112 |
18,408 |
13,668 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,892 |
9,257 |
6,880 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,946 |
1,756 |
1,230 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,849 |
1,593 |
1,275 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,749 |
2,275 |
1,682 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,908 |
1,736 |
1,210 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
20 |
22 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
199 |
156 |
46 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
35 |
16 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,496 |
8,997 |
5,968 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,463 |
9,340 |
6,601 |
30.4 |
dash |
19 |
no-host |
configure.util-linux |
32,279 |
21,597 |
11,800 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,976 |
9,045 |
6,100 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,877 |
1,048 |
838 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,832 |
971 |
865 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,549 |
1,564 |
1,031 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,893 |
996 |
901 |
24.2 |
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 |
51 |
24 |
27 |
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,532 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,496 |
0 |
0 |
0 |
8 |
0 |
47 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,183 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,321 |
0 |
0 |
0 |
8 |
0 |
1,992 |
57 |
bash |
9 |
no-host |
bin-true |
66,435 |
0 |
0 |
0 |
8 |
0 |
1,991 |
42 |
dash |
17 |
no-host |
bin-true |
753,872 |
0 |
0 |
0 |
8 |
0 |
2,003 |
330 |
osh-cpython |
25 |
no-host |
bin-true |
128,174 |
0 |
0 |
0 |
16 |
0 |
1,992 |
165 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,823 |
0 |
0 |
0 |
32,928 |
0 |
14,480 |
1,033 |
bash |
10 |
no-host |
configure.cpython |
2,241,616 |
0 |
0 |
0 |
32,992 |
0 |
14,529 |
1,137 |
dash |
18 |
no-host |
configure.cpython |
6,136,380 |
1 |
0 |
0 |
27,512 |
0 |
13,350 |
1,218 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,631 |
0 |
0 |
0 |
27,520 |
0 |
13,270 |
1,040 |
osh-native |
4 |
no-host |
configure.ocaml |
410,010 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
163 |
bash |
12 |
no-host |
configure.ocaml |
391,557 |
0 |
0 |
0 |
5,112 |
0 |
1,941 |
142 |
dash |
20 |
no-host |
configure.ocaml |
639,482 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
171 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,435 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
48 |
6 |
dash |
21 |
no-host |
configure.tcc |
23,243 |
0 |
0 |
0 |
96 |
0 |
52 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,805 |
0 |
0 |
0 |
42,408 |
0 |
18,570 |
1,061 |
bash |
11 |
no-host |
configure.util-linux |
2,265,011 |
1 |
0 |
0 |
42,592 |
0 |
17,411 |
1,098 |
dash |
19 |
no-host |
configure.util-linux |
5,321,674 |
12 |
0 |
0 |
39,112 |
0 |
17,101 |
1,340 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,746 |
0 |
0 |
0 |
39,128 |
0 |
17,202 |
974 |
osh-native |
6 |
no-host |
configure.yash |
255,983 |
0 |
0 |
0 |
4,120 |
0 |
867 |
77 |
bash |
14 |
no-host |
configure.yash |
244,658 |
0 |
0 |
0 |
3,720 |
0 |
867 |
76 |
dash |
22 |
no-host |
configure.yash |
384,637 |
0 |
0 |
0 |
3,728 |
0 |
860 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
258,952 |
0 |
0 |
0 |
3,736 |
0 |
850 |
77 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,689 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host