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 |
16 |
12 |
338 |
17 |
21.45 |
1.08 |
bin-true |
no-host |
474 |
451 |
2,597 |
614 |
5.48 |
1.30 |
configure.cpython |
no-host |
12,104 |
13,202 |
26,007 |
14,264 |
2.15 |
1.18 |
configure.ocaml |
no-host |
3,827 |
4,387 |
4,823 |
4,587 |
1.26 |
1.20 |
configure.tcc |
no-host |
37 |
47 |
146 |
53 |
3.97 |
1.44 |
configure.util-linux |
no-host |
11,279 |
11,306 |
23,770 |
11,851 |
2.11 |
1.05 |
configure.yash |
no-host |
1,506 |
2,038 |
2,574 |
2,218 |
1.71 |
1.47 |
hello-world |
no-host |
1 |
1 |
35 |
2 |
37.13 |
2.20 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,545 |
1,111 |
23,428 |
3,173 |
9.21 |
1.25 |
bin-true |
no-host |
104,353 |
66,459 |
746,285 |
128,379 |
7.15 |
1.23 |
configure.cpython |
no-host |
2,228,284 |
2,239,179 |
6,161,753 |
2,232,376 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,411 |
391,691 |
639,156 |
413,727 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,534 |
5,494 |
23,190 |
6,982 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,099,963 |
2,264,100 |
5,340,767 |
2,020,241 |
2.54 |
0.96 |
configure.yash |
no-host |
256,526 |
244,916 |
385,885 |
259,132 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,656 |
352 |
23.90 |
2.30 |
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 |
2 |
0 |
0 |
0.3 |
6.3 |
3,732 |
3,732 |
0 |
684 |
1,883 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
614 |
0 |
2 |
2.7 |
8.2 |
154,697 |
13,053 |
2,806 |
11,737 |
78,352 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,264 |
2 |
57 |
15.9 |
27.5 |
1,772,613 |
49,204 |
28,515 |
101,770 |
908,059 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
11,851 |
4 |
57 |
22.2 |
30.4 |
2,703,277 |
42,778 |
65,819 |
126,121 |
1,320,503 |
1,256,653 |
49,081 |
41 |
131,638 |
1 |
configure.ocaml |
no-host |
4,587 |
1 |
2 |
2.7 |
20.7 |
150,039 |
11,052 |
5,145 |
8,602 |
71,637 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
53 |
0 |
0 |
1.3 |
19.5 |
30,532 |
30,532 |
0 |
1,599 |
14,807 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
2,218 |
1 |
3 |
2.6 |
24.5 |
139,696 |
7,971 |
6,607 |
7,554 |
70,309 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
17 |
0 |
1 |
2.8 |
9.0 |
116,275 |
64,462 |
42,670 |
4,609 |
54,552 |
57,114 |
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 |
16 |
15 |
1 |
4.6 |
bash |
15 |
no-host |
abuild-print-help |
12 |
9 |
3 |
3.7 |
dash |
23 |
no-host |
abuild-print-help |
338 |
310 |
31 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
17 |
14 |
4 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
474 |
370 |
122 |
3.0 |
bash |
9 |
no-host |
bin-true |
451 |
327 |
128 |
1.7 |
dash |
17 |
no-host |
bin-true |
2,597 |
1,539 |
1,352 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
614 |
438 |
184 |
8.2 |
osh-native |
2 |
no-host |
configure.cpython |
12,104 |
7,963 |
4,508 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
13,202 |
8,412 |
5,180 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
26,007 |
15,608 |
12,230 |
27.6 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,264 |
8,804 |
5,735 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,827 |
1,728 |
1,141 |
20.7 |
bash |
12 |
no-host |
configure.ocaml |
4,387 |
1,984 |
1,425 |
20.7 |
dash |
20 |
no-host |
configure.ocaml |
4,823 |
2,313 |
1,664 |
20.8 |
osh-cpython |
28 |
no-host |
configure.ocaml |
4,587 |
2,004 |
1,634 |
20.7 |
osh-native |
5 |
no-host |
configure.tcc |
37 |
30 |
7 |
19.5 |
bash |
13 |
no-host |
configure.tcc |
47 |
27 |
21 |
19.5 |
dash |
21 |
no-host |
configure.tcc |
146 |
114 |
35 |
19.5 |
osh-cpython |
29 |
no-host |
configure.tcc |
53 |
37 |
16 |
19.5 |
osh-native |
3 |
no-host |
configure.util-linux |
11,279 |
7,606 |
4,061 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
11,306 |
7,629 |
4,028 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
23,770 |
16,108 |
8,518 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
11,851 |
7,434 |
4,542 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,506 |
921 |
592 |
24.6 |
bash |
14 |
no-host |
configure.yash |
2,038 |
1,181 |
861 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,574 |
1,652 |
971 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
2,218 |
1,267 |
954 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.7 |
dash |
16 |
no-host |
hello-world |
35 |
24 |
11 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
2 |
2 |
0 |
6.3 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,111 |
0 |
0 |
0 |
8 |
0 |
30 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,428 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,173 |
0 |
0 |
0 |
16 |
0 |
32 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,353 |
0 |
0 |
0 |
8 |
0 |
2,001 |
47 |
bash |
9 |
no-host |
bin-true |
66,459 |
0 |
0 |
0 |
8 |
0 |
1,998 |
38 |
dash |
17 |
no-host |
bin-true |
746,285 |
0 |
0 |
0 |
8 |
0 |
2,006 |
282 |
osh-cpython |
25 |
no-host |
bin-true |
128,379 |
0 |
0 |
0 |
16 |
0 |
2,001 |
76 |
osh-native |
2 |
no-host |
configure.cpython |
2,228,284 |
0 |
0 |
0 |
32,928 |
0 |
14,265 |
1,365 |
bash |
10 |
no-host |
configure.cpython |
2,239,179 |
0 |
0 |
0 |
32,992 |
0 |
14,526 |
1,623 |
dash |
18 |
no-host |
configure.cpython |
6,161,753 |
0 |
0 |
0 |
27,512 |
0 |
13,987 |
2,040 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,376 |
1 |
0 |
0 |
27,520 |
0 |
16,300 |
4,666 |
osh-native |
4 |
no-host |
configure.ocaml |
410,411 |
0 |
0 |
0 |
5,120 |
0 |
1,909 |
274 |
bash |
12 |
no-host |
configure.ocaml |
391,691 |
0 |
0 |
0 |
5,112 |
0 |
1,917 |
261 |
dash |
20 |
no-host |
configure.ocaml |
639,156 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
253 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,727 |
0 |
0 |
0 |
5,120 |
0 |
1,872 |
305 |
osh-native |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,494 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
dash |
21 |
no-host |
configure.tcc |
23,190 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,982 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,963 |
0 |
0 |
0 |
42,400 |
0 |
20,699 |
4,198 |
bash |
11 |
no-host |
configure.util-linux |
2,264,100 |
0 |
0 |
0 |
42,584 |
0 |
19,454 |
3,784 |
dash |
19 |
no-host |
configure.util-linux |
5,340,767 |
0 |
0 |
0 |
39,120 |
0 |
17,091 |
1,890 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,020,241 |
1 |
0 |
0 |
39,128 |
0 |
17,135 |
1,216 |
osh-native |
6 |
no-host |
configure.yash |
256,526 |
0 |
0 |
0 |
4,120 |
0 |
871 |
81 |
bash |
14 |
no-host |
configure.yash |
244,916 |
0 |
0 |
0 |
3,720 |
0 |
870 |
75 |
dash |
22 |
no-host |
configure.yash |
385,885 |
0 |
0 |
0 |
3,728 |
0 |
859 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
259,132 |
0 |
0 |
0 |
3,736 |
0 |
853 |
97 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,656 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host