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 |
463 |
23 |
23.75 |
1.18 |
bin-true |
no-host |
681 |
555 |
2,269 |
820 |
3.33 |
1.21 |
configure.cpython |
no-host |
15,458 |
15,557 |
29,228 |
15,464 |
1.89 |
1.00 |
configure.ocaml |
no-host |
3,879 |
3,825 |
4,690 |
3,894 |
1.21 |
1.00 |
configure.tcc |
no-host |
49 |
43 |
198 |
49 |
4.04 |
1.01 |
configure.util-linux |
no-host |
14,308 |
15,409 |
31,816 |
14,708 |
2.22 |
1.03 |
configure.yash |
no-host |
1,849 |
1,813 |
2,481 |
1,886 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
32.04 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,531 |
1,094 |
23,398 |
3,233 |
9.24 |
1.28 |
bin-true |
no-host |
107,394 |
65,507 |
743,317 |
127,241 |
6.92 |
1.18 |
configure.cpython |
no-host |
2,215,925 |
2,246,741 |
6,133,579 |
2,232,770 |
2.77 |
1.01 |
configure.ocaml |
no-host |
411,166 |
391,260 |
639,343 |
414,477 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,593 |
5,479 |
23,186 |
6,993 |
3.52 |
1.06 |
configure.util-linux |
no-host |
2,095,749 |
2,264,740 |
5,328,518 |
2,009,316 |
2.54 |
0.96 |
configure.yash |
no-host |
255,792 |
244,074 |
384,978 |
259,087 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
82 |
3,667 |
348 |
24.12 |
2.29 |
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,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.7 |
8.1 |
154,694 |
12,996 |
2,803 |
11,737 |
78,350 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,464 |
2 |
62 |
15.8 |
27.4 |
1,772,610 |
49,201 |
28,512 |
101,770 |
908,057 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,708 |
3 |
62 |
22.2 |
30.1 |
2,703,274 |
42,775 |
65,816 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,632 |
1 |
configure.ocaml |
no-host |
3,894 |
1 |
2 |
2.7 |
20.6 |
150,036 |
11,049 |
5,142 |
8,602 |
71,635 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,529 |
30,529 |
0 |
1,599 |
14,805 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,886 |
1 |
2 |
2.6 |
24.4 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,272 |
64,459 |
42,667 |
4,610 |
54,550 |
57,112 |
478 |
3 |
85,334 |
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 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
463 |
409 |
57 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
16 |
8 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
681 |
497 |
214 |
3.0 |
bash |
9 |
no-host |
bin-true |
555 |
427 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,269 |
1,451 |
1,079 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
584 |
252 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,458 |
9,171 |
6,678 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,557 |
9,323 |
6,666 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,228 |
17,532 |
13,585 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,464 |
9,050 |
6,684 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,879 |
1,634 |
1,271 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,825 |
1,648 |
1,196 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,690 |
2,282 |
1,615 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,894 |
1,686 |
1,247 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
33 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
24 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
198 |
132 |
69 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
19 |
31 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,308 |
9,057 |
5,723 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,409 |
9,332 |
6,568 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,816 |
20,973 |
11,945 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,708 |
8,750 |
6,147 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,849 |
1,066 |
789 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,813 |
1,076 |
738 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,481 |
1,517 |
1,008 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,886 |
1,100 |
788 |
24.4 |
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 |
37 |
13 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,094 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,398 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,233 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,394 |
0 |
0 |
0 |
8 |
0 |
1,990 |
52 |
bash |
9 |
no-host |
bin-true |
65,507 |
0 |
0 |
0 |
8 |
0 |
1,983 |
46 |
dash |
17 |
no-host |
bin-true |
743,317 |
0 |
0 |
0 |
8 |
0 |
1,997 |
255 |
osh-cpython |
25 |
no-host |
bin-true |
127,241 |
0 |
0 |
0 |
16 |
0 |
1,991 |
211 |
osh-native |
2 |
no-host |
configure.cpython |
2,215,925 |
0 |
0 |
0 |
32,928 |
0 |
14,510 |
1,116 |
bash |
10 |
no-host |
configure.cpython |
2,246,741 |
1 |
0 |
0 |
32,992 |
0 |
14,639 |
1,215 |
dash |
18 |
no-host |
configure.cpython |
6,133,579 |
0 |
0 |
0 |
27,512 |
0 |
13,263 |
1,337 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,770 |
0 |
0 |
0 |
27,520 |
0 |
13,321 |
1,167 |
osh-native |
4 |
no-host |
configure.ocaml |
411,166 |
0 |
0 |
0 |
5,120 |
0 |
1,949 |
166 |
bash |
12 |
no-host |
configure.ocaml |
391,260 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
128 |
dash |
20 |
no-host |
configure.ocaml |
639,343 |
1 |
0 |
0 |
5,112 |
0 |
1,860 |
185 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,477 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
172 |
osh-native |
5 |
no-host |
configure.tcc |
6,593 |
0 |
0 |
0 |
104 |
0 |
49 |
13 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,186 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,749 |
0 |
0 |
0 |
42,400 |
0 |
18,659 |
1,057 |
bash |
11 |
no-host |
configure.util-linux |
2,264,740 |
1 |
0 |
0 |
42,592 |
0 |
17,477 |
1,162 |
dash |
19 |
no-host |
configure.util-linux |
5,328,518 |
6 |
0 |
0 |
39,112 |
0 |
17,168 |
1,261 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,316 |
0 |
0 |
0 |
39,128 |
0 |
17,060 |
1,093 |
osh-native |
6 |
no-host |
configure.yash |
255,792 |
0 |
0 |
0 |
4,120 |
0 |
870 |
86 |
bash |
14 |
no-host |
configure.yash |
244,074 |
0 |
0 |
0 |
3,720 |
0 |
868 |
66 |
dash |
22 |
no-host |
configure.yash |
384,978 |
0 |
0 |
0 |
3,728 |
0 |
860 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
259,087 |
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 |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,667 |
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