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 |
451 |
23 |
23.21 |
1.18 |
bin-true |
no-host |
685 |
552 |
2,239 |
815 |
3.27 |
1.19 |
configure.cpython |
no-host |
15,380 |
15,498 |
29,182 |
15,522 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,867 |
3,819 |
4,704 |
3,884 |
1.22 |
1.00 |
configure.tcc |
no-host |
52 |
42 |
194 |
50 |
3.75 |
0.96 |
configure.util-linux |
no-host |
14,317 |
15,208 |
31,824 |
14,705 |
2.22 |
1.03 |
configure.yash |
no-host |
1,878 |
1,803 |
2,506 |
1,866 |
1.33 |
0.99 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.71 |
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,568 |
1,127 |
23,479 |
3,200 |
9.14 |
1.25 |
bin-true |
no-host |
107,369 |
66,427 |
751,647 |
126,157 |
7.00 |
1.17 |
configure.cpython |
no-host |
2,215,099 |
2,241,825 |
6,128,473 |
2,233,726 |
2.77 |
1.01 |
configure.ocaml |
no-host |
409,769 |
390,767 |
639,894 |
413,717 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,555 |
5,478 |
23,304 |
6,986 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,097,166 |
2,250,293 |
5,330,764 |
2,013,206 |
2.54 |
0.96 |
configure.yash |
no-host |
256,986 |
244,088 |
384,228 |
258,805 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,683 |
349 |
24.39 |
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.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
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,522 |
1 |
61 |
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,705 |
3 |
62 |
22.2 |
30.3 |
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,884 |
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,866 |
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 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
426 |
28 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
12 |
11 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
685 |
521 |
193 |
3.0 |
bash |
9 |
no-host |
bin-true |
552 |
428 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,239 |
1,479 |
1,019 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
582 |
247 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,380 |
9,370 |
6,410 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,498 |
9,403 |
6,511 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,182 |
17,871 |
13,199 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,522 |
9,114 |
6,672 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,867 |
1,659 |
1,250 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,819 |
1,622 |
1,216 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,704 |
2,246 |
1,666 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,884 |
1,649 |
1,266 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
52 |
38 |
14 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
194 |
157 |
40 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
38 |
12 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,317 |
9,056 |
5,737 |
30.4 |
bash |
11 |
no-host |
configure.util-linux |
15,208 |
9,326 |
6,367 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,824 |
21,244 |
11,699 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,705 |
8,917 |
5,983 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,878 |
1,080 |
803 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,803 |
967 |
839 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,506 |
1,551 |
997 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,866 |
1,024 |
846 |
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 |
50 |
21 |
29 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,568 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,127 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,479 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,369 |
0 |
0 |
0 |
8 |
0 |
1,986 |
81 |
bash |
9 |
no-host |
bin-true |
66,427 |
0 |
0 |
0 |
8 |
0 |
1,986 |
73 |
dash |
17 |
no-host |
bin-true |
751,647 |
0 |
0 |
0 |
8 |
0 |
1,997 |
180 |
osh-cpython |
25 |
no-host |
bin-true |
126,157 |
0 |
0 |
0 |
16 |
0 |
1,994 |
82 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,099 |
0 |
0 |
0 |
32,928 |
0 |
14,490 |
1,062 |
bash |
10 |
no-host |
configure.cpython |
2,241,825 |
0 |
0 |
0 |
32,992 |
0 |
14,615 |
1,153 |
dash |
18 |
no-host |
configure.cpython |
6,128,473 |
0 |
0 |
0 |
27,512 |
0 |
13,303 |
1,264 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,726 |
0 |
0 |
0 |
27,520 |
0 |
13,269 |
1,089 |
osh-native |
4 |
no-host |
configure.ocaml |
409,769 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
153 |
bash |
12 |
no-host |
configure.ocaml |
390,767 |
0 |
0 |
0 |
5,112 |
0 |
1,871 |
145 |
dash |
20 |
no-host |
configure.ocaml |
639,894 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
202 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,717 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
176 |
osh-native |
5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
12 |
bash |
13 |
no-host |
configure.tcc |
5,478 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,304 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,986 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,097,166 |
0 |
0 |
0 |
42,400 |
0 |
18,594 |
1,032 |
bash |
11 |
no-host |
configure.util-linux |
2,250,293 |
0 |
0 |
0 |
42,584 |
0 |
17,418 |
1,107 |
dash |
19 |
no-host |
configure.util-linux |
5,330,764 |
4 |
0 |
0 |
39,112 |
0 |
17,072 |
1,238 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,206 |
0 |
0 |
0 |
39,128 |
0 |
17,065 |
1,156 |
osh-native |
6 |
no-host |
configure.yash |
256,986 |
0 |
0 |
0 |
4,120 |
0 |
882 |
76 |
bash |
14 |
no-host |
configure.yash |
244,088 |
0 |
0 |
0 |
3,720 |
0 |
869 |
83 |
dash |
22 |
no-host |
configure.yash |
384,228 |
0 |
0 |
0 |
3,728 |
0 |
857 |
99 |
osh-cpython |
30 |
no-host |
configure.yash |
258,805 |
0 |
0 |
0 |
3,736 |
0 |
851 |
75 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,683 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host