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 |
460 |
22 |
24.00 |
1.17 |
bin-true |
no-host |
672 |
541 |
2,219 |
821 |
3.30 |
1.22 |
configure.cpython |
no-host |
15,092 |
15,340 |
28,606 |
15,431 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,786 |
3,759 |
4,700 |
3,848 |
1.24 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
201 |
49 |
4.21 |
1.03 |
configure.util-linux |
no-host |
14,224 |
15,056 |
31,247 |
14,569 |
2.20 |
1.02 |
configure.yash |
no-host |
1,815 |
1,771 |
2,503 |
1,857 |
1.38 |
1.02 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.43 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,510 |
1,111 |
23,494 |
3,203 |
9.36 |
1.28 |
bin-true |
no-host |
104,293 |
66,406 |
747,907 |
128,230 |
7.17 |
1.23 |
configure.cpython |
no-host |
2,218,337 |
2,242,368 |
6,133,132 |
2,233,973 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,774 |
390,851 |
640,087 |
413,714 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,554 |
5,481 |
23,210 |
6,981 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,093,996 |
2,266,751 |
5,316,004 |
2,017,065 |
2.54 |
0.96 |
configure.yash |
no-host |
256,521 |
244,479 |
385,288 |
258,859 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,657 |
347 |
24.22 |
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.2 |
3,725 |
3,725 |
0 |
684 |
1,877 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.7 |
7.9 |
154,690 |
12,993 |
2,800 |
11,737 |
78,346 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,431 |
1 |
61 |
15.8 |
27.4 |
1,772,606 |
49,198 |
28,509 |
101,770 |
908,053 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,569 |
3 |
61 |
22.2 |
30.4 |
2,703,270 |
44,767 |
65,793 |
126,121 |
1,320,497 |
1,256,652 |
49,081 |
41 |
131,586 |
1 |
configure.ocaml |
no-host |
3,848 |
1 |
2 |
2.7 |
20.4 |
150,032 |
11,046 |
5,139 |
8,602 |
71,631 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,525 |
30,525 |
0 |
1,599 |
14,801 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,857 |
1 |
2 |
2.6 |
24.4 |
139,689 |
7,965 |
6,601 |
7,554 |
70,303 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,268 |
64,456 |
42,664 |
4,610 |
54,546 |
57,112 |
478 |
3 |
85,328 |
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 |
460 |
401 |
63 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
3 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
672 |
495 |
207 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
414 |
138 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,219 |
1,442 |
1,038 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
576 |
260 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,092 |
9,136 |
6,347 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,340 |
9,200 |
6,554 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,606 |
17,417 |
13,026 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,431 |
8,965 |
6,720 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,786 |
1,619 |
1,208 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,759 |
1,622 |
1,154 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,700 |
2,268 |
1,644 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,848 |
1,676 |
1,209 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
36 |
6 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
201 |
139 |
65 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
21 |
28 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,224 |
8,976 |
5,724 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,056 |
9,071 |
6,465 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,247 |
20,748 |
11,588 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,569 |
8,809 |
5,951 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,815 |
1,014 |
807 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,771 |
975 |
800 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,503 |
1,538 |
1,009 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,857 |
1,095 |
761 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
35 |
13 |
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,510 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,111 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,494 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,203 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
104,293 |
0 |
0 |
0 |
8 |
0 |
1,986 |
98 |
bash |
9 |
no-host |
bin-true |
66,406 |
0 |
0 |
0 |
8 |
0 |
1,991 |
64 |
dash |
17 |
no-host |
bin-true |
747,907 |
0 |
0 |
0 |
8 |
0 |
1,998 |
92 |
osh-cpython |
25 |
no-host |
bin-true |
128,230 |
0 |
0 |
0 |
16 |
0 |
1,990 |
112 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,337 |
0 |
0 |
0 |
32,928 |
0 |
14,518 |
1,198 |
bash |
10 |
no-host |
configure.cpython |
2,242,368 |
0 |
0 |
0 |
32,992 |
0 |
14,643 |
1,235 |
dash |
18 |
no-host |
configure.cpython |
6,133,132 |
1 |
0 |
0 |
27,512 |
0 |
13,397 |
1,236 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,973 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,021 |
osh-native |
4 |
no-host |
configure.ocaml |
410,774 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
162 |
bash |
12 |
no-host |
configure.ocaml |
390,851 |
0 |
0 |
0 |
5,112 |
0 |
1,874 |
154 |
dash |
20 |
no-host |
configure.ocaml |
640,087 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
169 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,714 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
50 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,210 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
47 |
11 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,996 |
1 |
0 |
0 |
42,408 |
0 |
18,725 |
1,170 |
bash |
11 |
no-host |
configure.util-linux |
2,266,751 |
1 |
0 |
0 |
42,592 |
0 |
17,447 |
1,016 |
dash |
19 |
no-host |
configure.util-linux |
5,316,004 |
16 |
0 |
0 |
39,120 |
0 |
17,130 |
1,286 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,065 |
1 |
0 |
0 |
39,128 |
0 |
17,072 |
1,095 |
osh-native |
6 |
no-host |
configure.yash |
256,521 |
0 |
0 |
0 |
4,120 |
0 |
873 |
95 |
bash |
14 |
no-host |
configure.yash |
244,479 |
0 |
0 |
0 |
3,720 |
0 |
870 |
78 |
dash |
22 |
no-host |
configure.yash |
385,288 |
0 |
0 |
0 |
3,728 |
0 |
855 |
121 |
osh-cpython |
30 |
no-host |
configure.yash |
258,859 |
0 |
0 |
0 |
3,736 |
0 |
848 |
86 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,657 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
2 |
osh-native |
Shell and Host