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 |
9 |
449 |
22 |
23.28 |
1.15 |
bin-true |
no-host |
676 |
546 |
2,223 |
822 |
3.29 |
1.22 |
configure.cpython |
no-host |
14,861 |
15,023 |
28,122 |
14,978 |
1.89 |
1.01 |
configure.ocaml |
no-host |
4,289 |
3,713 |
4,555 |
3,777 |
1.06 |
0.88 |
configure.tcc |
no-host |
48 |
42 |
191 |
49 |
3.97 |
1.02 |
configure.util-linux |
no-host |
13,953 |
14,693 |
30,582 |
14,226 |
2.19 |
1.02 |
configure.yash |
no-host |
1,821 |
1,792 |
2,395 |
1,805 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.20 |
1.79 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,563 |
1,124 |
23,501 |
3,208 |
9.17 |
1.25 |
bin-true |
no-host |
106,317 |
66,439 |
753,502 |
128,182 |
7.09 |
1.21 |
configure.cpython |
no-host |
2,223,242 |
2,242,877 |
6,172,704 |
2,228,482 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,651 |
390,859 |
640,298 |
413,447 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,523 |
5,479 |
23,369 |
6,991 |
3.58 |
1.07 |
configure.util-linux |
no-host |
2,093,994 |
2,261,884 |
5,346,764 |
2,020,458 |
2.55 |
0.96 |
configure.yash |
no-host |
256,864 |
244,064 |
385,573 |
259,112 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
79 |
3,685 |
352 |
23.93 |
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.3 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
822 |
1 |
2 |
2.7 |
8.3 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,978 |
1 |
58 |
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,226 |
3 |
58 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,777 |
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.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,805 |
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 |
22 |
1 |
2 |
2.8 |
8.9 |
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 |
9 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
449 |
409 |
44 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
676 |
506 |
203 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
415 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,223 |
1,391 |
1,091 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
822 |
596 |
242 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
14,861 |
9,056 |
6,195 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,023 |
9,252 |
6,182 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,122 |
17,238 |
12,701 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,978 |
8,865 |
6,374 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
4,289 |
1,596 |
1,241 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,713 |
1,580 |
1,153 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,555 |
2,188 |
1,574 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,777 |
1,605 |
1,212 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
27 |
22 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
142 |
52 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
33 |
17 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,953 |
8,767 |
5,666 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,693 |
9,121 |
6,063 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,582 |
20,361 |
11,292 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,226 |
8,508 |
5,916 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,821 |
1,060 |
769 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,792 |
991 |
805 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,395 |
1,506 |
931 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,805 |
1,000 |
809 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
30 |
18 |
17.3 |
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,563 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,124 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,501 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,208 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,317 |
0 |
0 |
0 |
8 |
0 |
1,995 |
45 |
bash |
9 |
no-host |
bin-true |
66,439 |
0 |
0 |
0 |
8 |
0 |
1,992 |
50 |
dash |
17 |
no-host |
bin-true |
753,502 |
0 |
0 |
0 |
8 |
0 |
1,999 |
154 |
osh-cpython |
25 |
no-host |
bin-true |
128,182 |
0 |
0 |
0 |
16 |
0 |
1,994 |
184 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,242 |
0 |
0 |
0 |
32,928 |
0 |
14,523 |
1,015 |
bash |
10 |
no-host |
configure.cpython |
2,242,877 |
0 |
0 |
0 |
32,992 |
0 |
14,622 |
1,046 |
dash |
18 |
no-host |
configure.cpython |
6,172,704 |
1 |
0 |
0 |
27,512 |
0 |
13,296 |
1,303 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,482 |
0 |
0 |
0 |
27,520 |
0 |
13,283 |
1,054 |
osh-native |
4 |
no-host |
configure.ocaml |
410,651 |
0 |
0 |
0 |
5,120 |
0 |
1,972 |
159 |
bash |
12 |
no-host |
configure.ocaml |
390,859 |
0 |
0 |
0 |
5,112 |
0 |
1,913 |
145 |
dash |
20 |
no-host |
configure.ocaml |
640,298 |
1 |
0 |
0 |
5,112 |
0 |
1,874 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,447 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,523 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,369 |
0 |
0 |
0 |
96 |
0 |
51 |
10 |
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,093,994 |
0 |
0 |
0 |
42,400 |
0 |
18,623 |
1,081 |
bash |
11 |
no-host |
configure.util-linux |
2,261,884 |
0 |
0 |
0 |
42,584 |
0 |
17,477 |
1,068 |
dash |
19 |
no-host |
configure.util-linux |
5,346,764 |
11 |
0 |
0 |
39,120 |
0 |
17,060 |
1,161 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,020,458 |
1 |
0 |
0 |
39,120 |
0 |
17,098 |
1,059 |
osh-native |
6 |
no-host |
configure.yash |
256,864 |
0 |
0 |
0 |
4,120 |
0 |
866 |
79 |
bash |
14 |
no-host |
configure.yash |
244,064 |
0 |
0 |
0 |
3,720 |
0 |
871 |
73 |
dash |
22 |
no-host |
configure.yash |
385,573 |
0 |
0 |
0 |
3,728 |
0 |
853 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
259,112 |
0 |
0 |
0 |
3,736 |
0 |
855 |
92 |
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,685 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host