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 |
9 |
457 |
22 |
23.78 |
1.16 |
bin-true |
no-host |
670 |
547 |
2,253 |
808 |
3.36 |
1.21 |
configure.cpython |
no-host |
14,905 |
14,991 |
28,350 |
15,125 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,785 |
3,726 |
4,609 |
3,799 |
1.22 |
1.00 |
configure.tcc |
no-host |
47 |
43 |
193 |
48 |
4.06 |
1.01 |
configure.util-linux |
no-host |
13,925 |
14,813 |
31,035 |
14,285 |
2.23 |
1.03 |
configure.yash |
no-host |
1,827 |
1,757 |
2,431 |
1,827 |
1.33 |
1.00 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.09 |
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,543 |
1,119 |
23,470 |
3,227 |
9.23 |
1.27 |
bin-true |
no-host |
106,394 |
66,537 |
757,607 |
126,124 |
7.12 |
1.19 |
configure.cpython |
no-host |
2,221,431 |
2,236,944 |
6,163,769 |
2,233,423 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,784 |
391,046 |
641,463 |
413,447 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,561 |
5,472 |
23,356 |
7,020 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,091,831 |
2,261,857 |
5,351,968 |
2,014,764 |
2.56 |
0.96 |
configure.yash |
no-host |
256,573 |
243,551 |
385,996 |
258,626 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
84 |
3,689 |
349 |
24.43 |
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.2 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
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,125 |
1 |
59 |
15.8 |
27.3 |
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,285 |
3 |
58 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,799 |
1 |
2 |
2.7 |
20.4 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
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,827 |
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 |
22 |
1 |
2 |
2.8 |
8.8 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
457 |
400 |
60 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
6 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
670 |
500 |
201 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
420 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,516 |
996 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
563 |
260 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,905 |
8,929 |
6,375 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,991 |
9,265 |
6,139 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,350 |
17,317 |
12,866 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,125 |
8,822 |
6,569 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,785 |
1,619 |
1,201 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,726 |
1,535 |
1,209 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,609 |
2,238 |
1,580 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,799 |
1,613 |
1,225 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
29 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
30 |
13 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
150 |
46 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,925 |
8,774 |
5,622 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,813 |
9,035 |
6,267 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,035 |
20,740 |
11,370 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,285 |
8,529 |
5,948 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,069 |
764 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,757 |
1,005 |
755 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,431 |
1,477 |
997 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,827 |
1,030 |
800 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.3 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,119 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,470 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,227 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,394 |
0 |
0 |
0 |
8 |
0 |
1,991 |
62 |
bash |
9 |
no-host |
bin-true |
66,537 |
0 |
0 |
0 |
8 |
0 |
1,989 |
91 |
dash |
17 |
no-host |
bin-true |
757,607 |
0 |
0 |
0 |
8 |
0 |
1,997 |
140 |
osh-cpython |
25 |
no-host |
bin-true |
126,124 |
0 |
0 |
0 |
16 |
0 |
1,994 |
49 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,431 |
0 |
0 |
0 |
32,928 |
0 |
14,516 |
1,098 |
bash |
10 |
no-host |
configure.cpython |
2,236,944 |
0 |
0 |
0 |
32,992 |
0 |
14,580 |
1,057 |
dash |
18 |
no-host |
configure.cpython |
6,163,769 |
0 |
0 |
0 |
27,512 |
0 |
13,281 |
1,112 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,423 |
0 |
0 |
0 |
27,520 |
0 |
13,240 |
1,029 |
osh-native |
4 |
no-host |
configure.ocaml |
410,784 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
177 |
bash |
12 |
no-host |
configure.ocaml |
391,046 |
0 |
0 |
0 |
5,112 |
0 |
1,874 |
163 |
dash |
20 |
no-host |
configure.ocaml |
641,463 |
1 |
0 |
0 |
5,112 |
0 |
1,865 |
200 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,447 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,561 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,472 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,356 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,020 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,091,831 |
2 |
0 |
0 |
42,400 |
0 |
18,572 |
1,204 |
bash |
11 |
no-host |
configure.util-linux |
2,261,857 |
1 |
0 |
0 |
42,592 |
0 |
17,415 |
1,146 |
dash |
19 |
no-host |
configure.util-linux |
5,351,968 |
11 |
0 |
0 |
39,112 |
0 |
17,168 |
1,366 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,014,764 |
1 |
0 |
0 |
39,120 |
0 |
17,021 |
1,012 |
osh-native |
6 |
no-host |
configure.yash |
256,573 |
0 |
0 |
0 |
4,120 |
0 |
880 |
77 |
bash |
14 |
no-host |
configure.yash |
243,551 |
0 |
0 |
0 |
3,720 |
0 |
867 |
63 |
dash |
22 |
no-host |
configure.yash |
385,996 |
0 |
0 |
0 |
3,728 |
0 |
860 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,626 |
0 |
0 |
0 |
3,736 |
0 |
852 |
216 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,689 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host