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 |
454 |
22 |
23.67 |
1.12 |
bin-true |
no-host |
675 |
541 |
2,217 |
813 |
3.29 |
1.20 |
configure.cpython |
no-host |
15,172 |
15,160 |
28,653 |
15,222 |
1.89 |
1.00 |
configure.ocaml |
no-host |
3,795 |
3,759 |
4,650 |
3,847 |
1.23 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
193 |
49 |
4.11 |
1.03 |
configure.util-linux |
no-host |
14,098 |
14,924 |
31,572 |
14,438 |
2.24 |
1.02 |
configure.yash |
no-host |
1,830 |
1,771 |
2,463 |
1,834 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.47 |
1.78 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,538 |
1,102 |
23,429 |
3,144 |
9.23 |
1.24 |
bin-true |
no-host |
103,324 |
65,388 |
748,585 |
128,232 |
7.25 |
1.24 |
configure.cpython |
no-host |
2,216,379 |
2,239,284 |
6,139,060 |
2,224,743 |
2.77 |
1.00 |
configure.ocaml |
no-host |
409,815 |
390,809 |
639,958 |
413,262 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,533 |
5,458 |
23,280 |
6,942 |
3.56 |
1.06 |
configure.util-linux |
no-host |
2,096,208 |
2,254,089 |
5,327,351 |
2,012,009 |
2.54 |
0.96 |
configure.yash |
no-host |
256,306 |
244,988 |
384,767 |
257,877 |
1.50 |
1.01 |
hello-world |
no-host |
155 |
82 |
3,684 |
342 |
23.77 |
2.21 |
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 |
5.8 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.7 |
7.7 |
154,692 |
12,780 |
2,737 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,222 |
1 |
60 |
15.8 |
27.3 |
1,772,668 |
44,567 |
28,446 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,438 |
2 |
59 |
22.2 |
30.4 |
2,703,404 |
45,041 |
65,750 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,500 |
1 |
configure.ocaml |
no-host |
3,847 |
0 |
2 |
2.7 |
20.4 |
150,038 |
10,983 |
5,076 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,834 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,902 |
6,538 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,270 |
64,393 |
42,601 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,202 |
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.2 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
454 |
405 |
52 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
3 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
675 |
498 |
207 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
417 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,217 |
1,401 |
1,072 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
585 |
243 |
7.7 |
osh-native |
2 |
no-host |
configure.cpython |
15,172 |
9,021 |
6,545 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,160 |
9,237 |
6,335 |
27.7 |
dash |
18 |
no-host |
configure.cpython |
28,653 |
17,501 |
13,005 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,222 |
9,089 |
6,386 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,795 |
1,608 |
1,227 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,759 |
1,553 |
1,225 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,650 |
2,139 |
1,717 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,847 |
1,603 |
1,281 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
23 |
25 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
34 |
8 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
145 |
51 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,098 |
8,985 |
5,583 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,924 |
9,108 |
6,308 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,572 |
21,069 |
11,610 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,438 |
8,800 |
5,845 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,830 |
1,063 |
776 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,771 |
1,057 |
717 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,463 |
1,465 |
1,041 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,834 |
1,058 |
780 |
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 |
49 |
36 |
12 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
5.8 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,429 |
0 |
0 |
0 |
8 |
0 |
47 |
4 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,144 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
103,324 |
0 |
0 |
0 |
8 |
0 |
1,992 |
65 |
bash |
9 |
no-host |
bin-true |
65,388 |
0 |
0 |
0 |
8 |
0 |
1,986 |
31 |
dash |
17 |
no-host |
bin-true |
748,585 |
0 |
0 |
0 |
8 |
0 |
1,997 |
112 |
osh-cpython |
25 |
no-host |
bin-true |
128,232 |
0 |
0 |
0 |
16 |
0 |
1,997 |
75 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,379 |
0 |
0 |
0 |
32,928 |
0 |
14,431 |
1,249 |
bash |
10 |
no-host |
configure.cpython |
2,239,284 |
0 |
0 |
0 |
32,992 |
0 |
14,555 |
1,116 |
dash |
18 |
no-host |
configure.cpython |
6,139,060 |
1 |
0 |
0 |
27,512 |
0 |
13,303 |
1,308 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,743 |
0 |
0 |
0 |
27,520 |
0 |
13,175 |
1,121 |
osh-native |
4 |
no-host |
configure.ocaml |
409,815 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
172 |
bash |
12 |
no-host |
configure.ocaml |
390,809 |
0 |
0 |
0 |
5,112 |
0 |
1,876 |
162 |
dash |
20 |
no-host |
configure.ocaml |
639,958 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
167 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,262 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
173 |
osh-native |
5 |
no-host |
configure.tcc |
6,533 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,458 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,280 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,942 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,208 |
0 |
0 |
0 |
42,400 |
0 |
18,621 |
991 |
bash |
11 |
no-host |
configure.util-linux |
2,254,089 |
0 |
0 |
0 |
42,584 |
0 |
17,452 |
1,070 |
dash |
19 |
no-host |
configure.util-linux |
5,327,351 |
7 |
0 |
0 |
39,128 |
0 |
17,199 |
1,527 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,012,009 |
0 |
0 |
0 |
39,120 |
0 |
17,114 |
1,089 |
osh-native |
6 |
no-host |
configure.yash |
256,306 |
0 |
0 |
0 |
4,120 |
0 |
870 |
86 |
bash |
14 |
no-host |
configure.yash |
244,988 |
0 |
0 |
0 |
3,720 |
0 |
868 |
71 |
dash |
22 |
no-host |
configure.yash |
384,767 |
0 |
0 |
0 |
3,728 |
0 |
862 |
100 |
osh-cpython |
30 |
no-host |
configure.yash |
257,877 |
0 |
0 |
0 |
3,736 |
0 |
852 |
76 |
osh-native |
0 |
no-host |
hello-world |
155 |
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,684 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host