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 |
459 |
23 |
23.78 |
1.18 |
bin-true |
no-host |
679 |
542 |
2,224 |
815 |
3.28 |
1.20 |
configure.cpython |
no-host |
14,821 |
15,232 |
28,834 |
15,338 |
1.95 |
1.03 |
configure.ocaml |
no-host |
3,790 |
3,728 |
4,644 |
3,810 |
1.23 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
194 |
49 |
4.09 |
1.03 |
configure.util-linux |
no-host |
13,858 |
14,899 |
31,145 |
14,411 |
2.25 |
1.04 |
configure.yash |
no-host |
1,823 |
1,770 |
2,442 |
1,826 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
28.83 |
1.74 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,533 |
1,126 |
23,485 |
3,236 |
9.27 |
1.28 |
bin-true |
no-host |
107,358 |
66,430 |
753,895 |
128,195 |
7.02 |
1.19 |
configure.cpython |
no-host |
2,223,291 |
2,240,237 |
6,133,476 |
2,238,489 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,292 |
391,227 |
640,152 |
413,530 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,586 |
5,475 |
23,284 |
6,991 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,098,591 |
2,251,402 |
5,328,782 |
2,019,202 |
2.54 |
0.96 |
configure.yash |
no-host |
256,717 |
245,154 |
384,270 |
257,537 |
1.50 |
1.00 |
hello-world |
no-host |
152 |
81 |
3,686 |
349 |
24.25 |
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 |
3 |
0 |
0 |
0.3 |
6.3 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,338 |
1 |
61 |
15.8 |
27.5 |
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,411 |
3 |
60 |
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,810 |
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 |
49 |
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,826 |
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.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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
459 |
402 |
60 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
8 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
679 |
512 |
200 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
420 |
132 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,224 |
1,449 |
1,029 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
580 |
249 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,821 |
8,993 |
6,227 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,232 |
9,233 |
6,422 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,834 |
17,669 |
13,020 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,338 |
9,060 |
6,551 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,790 |
1,547 |
1,272 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,728 |
1,583 |
1,163 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,644 |
2,294 |
1,559 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,810 |
1,639 |
1,211 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
32 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
164 |
33 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,858 |
8,731 |
5,598 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,899 |
9,134 |
6,245 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,145 |
20,759 |
11,475 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,411 |
8,763 |
5,841 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,823 |
1,082 |
749 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,770 |
1,006 |
766 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,442 |
1,552 |
933 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,826 |
1,056 |
774 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
31 |
17 |
17.1 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
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,533 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,126 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,485 |
0 |
0 |
0 |
8 |
0 |
47 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,236 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,358 |
0 |
0 |
0 |
8 |
0 |
1,996 |
108 |
bash |
9 |
no-host |
bin-true |
66,430 |
0 |
0 |
0 |
8 |
0 |
1,989 |
37 |
dash |
17 |
no-host |
bin-true |
753,895 |
0 |
0 |
0 |
8 |
0 |
1,993 |
191 |
osh-cpython |
25 |
no-host |
bin-true |
128,195 |
0 |
0 |
0 |
16 |
0 |
1,992 |
82 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,291 |
0 |
0 |
0 |
32,928 |
0 |
14,501 |
1,169 |
bash |
10 |
no-host |
configure.cpython |
2,240,237 |
0 |
0 |
0 |
32,992 |
0 |
14,611 |
1,074 |
dash |
18 |
no-host |
configure.cpython |
6,133,476 |
0 |
0 |
0 |
27,512 |
0 |
13,296 |
1,246 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,238,489 |
0 |
0 |
0 |
27,520 |
0 |
13,313 |
1,067 |
osh-native |
4 |
no-host |
configure.ocaml |
410,292 |
0 |
0 |
0 |
5,120 |
0 |
1,976 |
176 |
bash |
12 |
no-host |
configure.ocaml |
391,227 |
0 |
0 |
0 |
5,112 |
0 |
1,886 |
134 |
dash |
20 |
no-host |
configure.ocaml |
640,152 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
164 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,530 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
140 |
osh-native |
5 |
no-host |
configure.tcc |
6,586 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,284 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,591 |
1 |
0 |
0 |
42,400 |
0 |
18,589 |
952 |
bash |
11 |
no-host |
configure.util-linux |
2,251,402 |
0 |
0 |
0 |
42,584 |
0 |
17,398 |
1,074 |
dash |
19 |
no-host |
configure.util-linux |
5,328,782 |
16 |
0 |
0 |
39,112 |
0 |
17,111 |
1,196 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,019,202 |
0 |
0 |
0 |
39,120 |
0 |
17,040 |
1,241 |
osh-native |
6 |
no-host |
configure.yash |
256,717 |
0 |
0 |
0 |
4,120 |
0 |
870 |
79 |
bash |
14 |
no-host |
configure.yash |
245,154 |
0 |
0 |
0 |
3,720 |
0 |
869 |
68 |
dash |
22 |
no-host |
configure.yash |
384,270 |
0 |
0 |
0 |
3,728 |
0 |
858 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
257,537 |
0 |
0 |
0 |
3,736 |
0 |
850 |
95 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,686 |
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