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 |
452 |
22 |
23.92 |
1.15 |
bin-true |
no-host |
679 |
544 |
2,292 |
808 |
3.37 |
1.19 |
configure.cpython |
no-host |
15,050 |
15,288 |
28,740 |
15,136 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,827 |
3,811 |
4,679 |
3,884 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
193 |
49 |
3.99 |
1.02 |
configure.util-linux |
no-host |
14,185 |
14,965 |
31,535 |
14,262 |
2.22 |
1.01 |
configure.yash |
no-host |
1,842 |
1,820 |
2,405 |
1,850 |
1.31 |
1.00 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
33.63 |
1.93 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,537 |
1,090 |
22,827 |
3,172 |
9.00 |
1.25 |
bin-true |
no-host |
107,332 |
66,416 |
752,130 |
127,392 |
7.01 |
1.19 |
configure.cpython |
no-host |
2,216,189 |
2,238,451 |
6,124,621 |
2,216,538 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,365 |
391,538 |
638,293 |
413,557 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,476 |
23,290 |
6,981 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,103,014 |
2,263,206 |
5,298,034 |
1,994,333 |
2.52 |
0.95 |
configure.yash |
no-host |
255,744 |
245,077 |
383,392 |
258,001 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
79 |
3,687 |
351 |
23.94 |
2.28 |
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,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
8.0 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,136 |
1 |
58 |
15.0 |
27.4 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,262 |
3 |
58 |
21.3 |
30.1 |
2,703,413 |
42,779 |
65,820 |
109,640 |
1,320,605 |
1,273,168 |
49,081 |
41 |
131,640 |
1 |
configure.ocaml |
no-host |
3,884 |
1 |
2 |
2.6 |
20.6 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,850 |
1 |
2 |
2.6 |
24.4 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
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 |
19 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
452 |
410 |
45 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
679 |
483 |
226 |
3.0 |
bash |
9 |
no-host |
bin-true |
544 |
411 |
142 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,292 |
1,515 |
1,048 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
566 |
256 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,050 |
9,159 |
6,290 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,288 |
9,129 |
6,556 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,740 |
17,707 |
12,899 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,136 |
8,837 |
6,535 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,827 |
1,667 |
1,190 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,811 |
1,680 |
1,151 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,679 |
2,151 |
1,736 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,884 |
1,612 |
1,281 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
25 |
24 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
148 |
49 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,185 |
8,909 |
5,761 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,965 |
9,267 |
6,189 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,535 |
20,925 |
11,699 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,262 |
8,622 |
5,835 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,842 |
1,063 |
789 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,820 |
1,084 |
739 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,405 |
1,471 |
975 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,850 |
1,065 |
788 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
30 |
21 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,090 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,827 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
107,332 |
0 |
0 |
0 |
8 |
0 |
1,991 |
61 |
bash |
9 |
no-host |
bin-true |
66,416 |
0 |
0 |
0 |
8 |
0 |
1,991 |
39 |
dash |
17 |
no-host |
bin-true |
752,130 |
0 |
0 |
0 |
8 |
0 |
1,991 |
189 |
osh-cpython |
25 |
no-host |
bin-true |
127,392 |
0 |
0 |
0 |
16 |
0 |
1,992 |
53 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,189 |
0 |
0 |
0 |
32,928 |
0 |
14,467 |
970 |
bash |
10 |
no-host |
configure.cpython |
2,238,451 |
1 |
0 |
0 |
32,992 |
0 |
14,613 |
1,028 |
dash |
18 |
no-host |
configure.cpython |
6,124,621 |
1 |
0 |
0 |
27,512 |
0 |
13,175 |
1,229 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,216,538 |
0 |
0 |
0 |
27,520 |
0 |
13,192 |
1,024 |
osh-native |
4 |
no-host |
configure.ocaml |
410,365 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
166 |
bash |
12 |
no-host |
configure.ocaml |
391,538 |
0 |
0 |
0 |
5,112 |
0 |
1,947 |
156 |
dash |
20 |
no-host |
configure.ocaml |
638,293 |
1 |
0 |
0 |
5,112 |
0 |
1,852 |
223 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,557 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
274 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
14 |
bash |
13 |
no-host |
configure.tcc |
5,476 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,290 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
45 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,014 |
0 |
0 |
0 |
42,400 |
0 |
18,654 |
1,010 |
bash |
11 |
no-host |
configure.util-linux |
2,263,206 |
0 |
0 |
0 |
42,584 |
0 |
17,429 |
1,108 |
dash |
19 |
no-host |
configure.util-linux |
5,298,034 |
12 |
0 |
0 |
39,112 |
0 |
16,930 |
1,311 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,333 |
0 |
0 |
0 |
39,128 |
0 |
16,954 |
1,021 |
osh-native |
6 |
no-host |
configure.yash |
255,744 |
0 |
0 |
0 |
4,120 |
0 |
869 |
87 |
bash |
14 |
no-host |
configure.yash |
245,077 |
0 |
0 |
0 |
3,720 |
0 |
867 |
87 |
dash |
22 |
no-host |
configure.yash |
383,392 |
0 |
0 |
0 |
3,728 |
0 |
852 |
87 |
osh-cpython |
30 |
no-host |
configure.yash |
258,001 |
0 |
0 |
0 |
3,736 |
0 |
847 |
85 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,687 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host