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 |
20 |
10 |
461 |
22 |
23.10 |
1.12 |
bin-true |
no-host |
684 |
543 |
2,215 |
817 |
3.24 |
1.19 |
configure.cpython |
no-host |
15,049 |
15,000 |
28,393 |
15,151 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,786 |
3,734 |
4,614 |
3,829 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
192 |
49 |
4.03 |
1.03 |
configure.util-linux |
no-host |
13,911 |
14,815 |
30,912 |
14,351 |
2.22 |
1.03 |
configure.yash |
no-host |
1,831 |
1,761 |
2,418 |
1,833 |
1.32 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.43 |
1.82 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,557 |
1,106 |
23,485 |
3,226 |
9.18 |
1.26 |
bin-true |
no-host |
105,376 |
67,475 |
755,557 |
127,166 |
7.17 |
1.21 |
configure.cpython |
no-host |
2,226,104 |
2,245,185 |
6,170,566 |
2,232,440 |
2.77 |
1.00 |
configure.ocaml |
no-host |
410,664 |
390,912 |
640,065 |
413,736 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,536 |
5,477 |
23,355 |
6,986 |
3.57 |
1.07 |
configure.util-linux |
no-host |
2,095,229 |
2,262,662 |
5,354,258 |
2,018,679 |
2.56 |
0.96 |
configure.yash |
no-host |
256,582 |
243,979 |
385,218 |
258,666 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
81 |
3,689 |
351 |
23.95 |
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.2 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,151 |
1 |
59 |
15.8 |
27.4 |
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,351 |
2 |
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,829 |
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,833 |
1 |
2 |
2.6 |
24.4 |
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.8 |
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 |
20 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
461 |
401 |
64 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
684 |
501 |
211 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
411 |
141 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,215 |
1,442 |
1,029 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
817 |
570 |
263 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,049 |
9,013 |
6,431 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,000 |
9,121 |
6,299 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,393 |
17,256 |
12,982 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,151 |
8,671 |
6,752 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,786 |
1,582 |
1,245 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,734 |
1,506 |
1,243 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,614 |
2,251 |
1,566 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,829 |
1,607 |
1,263 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
144 |
51 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
20 |
30 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,911 |
8,842 |
5,544 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,815 |
9,085 |
6,216 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,912 |
20,864 |
11,129 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,351 |
8,598 |
5,949 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,831 |
1,016 |
822 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,761 |
1,036 |
729 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,418 |
1,523 |
938 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,833 |
1,103 |
734 |
24.4 |
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 |
49 |
35 |
14 |
17.2 |
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,557 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,485 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,226 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
105,376 |
0 |
0 |
0 |
8 |
0 |
1,990 |
183 |
bash |
9 |
no-host |
bin-true |
67,475 |
0 |
0 |
0 |
8 |
0 |
1,984 |
48 |
dash |
17 |
no-host |
bin-true |
755,557 |
0 |
0 |
0 |
8 |
0 |
1,988 |
94 |
osh-cpython |
25 |
no-host |
bin-true |
127,166 |
0 |
0 |
0 |
16 |
0 |
1,992 |
134 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,104 |
0 |
0 |
0 |
32,928 |
0 |
14,452 |
1,072 |
bash |
10 |
no-host |
configure.cpython |
2,245,185 |
0 |
0 |
0 |
32,992 |
0 |
14,564 |
1,206 |
dash |
18 |
no-host |
configure.cpython |
6,170,566 |
1 |
0 |
0 |
27,512 |
0 |
13,329 |
1,149 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,440 |
0 |
0 |
0 |
27,520 |
0 |
13,399 |
997 |
osh-native |
4 |
no-host |
configure.ocaml |
410,664 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
162 |
bash |
12 |
no-host |
configure.ocaml |
390,912 |
0 |
0 |
0 |
5,112 |
0 |
1,905 |
155 |
dash |
20 |
no-host |
configure.ocaml |
640,065 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
179 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,736 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
155 |
osh-native |
5 |
no-host |
configure.tcc |
6,536 |
0 |
0 |
0 |
104 |
0 |
49 |
8 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,355 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,986 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,229 |
2 |
0 |
0 |
42,400 |
0 |
18,575 |
1,049 |
bash |
11 |
no-host |
configure.util-linux |
2,262,662 |
1 |
0 |
0 |
42,592 |
0 |
17,376 |
1,141 |
dash |
19 |
no-host |
configure.util-linux |
5,354,258 |
7 |
0 |
0 |
39,112 |
0 |
17,049 |
1,208 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,018,679 |
2 |
0 |
0 |
39,120 |
0 |
17,049 |
952 |
osh-native |
6 |
no-host |
configure.yash |
256,582 |
0 |
0 |
0 |
4,120 |
0 |
877 |
147 |
bash |
14 |
no-host |
configure.yash |
243,979 |
0 |
0 |
0 |
3,720 |
0 |
868 |
81 |
dash |
22 |
no-host |
configure.yash |
385,218 |
0 |
0 |
0 |
3,728 |
0 |
855 |
71 |
osh-cpython |
30 |
no-host |
configure.yash |
258,666 |
0 |
0 |
0 |
3,744 |
0 |
851 |
93 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,689 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host