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 |
456 |
23 |
23.79 |
1.19 |
bin-true |
no-host |
676 |
546 |
2,269 |
822 |
3.36 |
1.22 |
configure.cpython |
no-host |
15,107 |
15,184 |
28,573 |
15,359 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,800 |
3,755 |
4,623 |
3,853 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
189 |
50 |
3.91 |
1.03 |
configure.util-linux |
no-host |
14,015 |
14,906 |
31,092 |
14,509 |
2.22 |
1.04 |
configure.yash |
no-host |
1,832 |
1,790 |
2,453 |
1,834 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
29.00 |
1.72 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,523 |
1,118 |
23,234 |
3,213 |
9.21 |
1.27 |
bin-true |
no-host |
106,330 |
65,521 |
752,052 |
128,206 |
7.07 |
1.21 |
configure.cpython |
no-host |
2,228,271 |
2,234,533 |
6,137,656 |
2,225,737 |
2.75 |
1.00 |
configure.ocaml |
no-host |
409,696 |
391,240 |
637,623 |
413,154 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,463 |
23,233 |
7,016 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,104,245 |
2,262,768 |
5,330,347 |
2,005,446 |
2.53 |
0.95 |
configure.yash |
no-host |
256,614 |
244,470 |
385,646 |
258,164 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,659 |
344 |
23.92 |
2.25 |
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,717 |
3,717 |
0 |
684 |
1,869 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
822 |
1 |
2 |
2.7 |
8.0 |
154,682 |
12,988 |
2,795 |
11,737 |
78,338 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,359 |
1 |
65 |
15.8 |
27.4 |
1,772,598 |
49,193 |
28,504 |
101,770 |
908,045 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,509 |
3 |
64 |
22.2 |
30.1 |
2,703,262 |
44,762 |
65,788 |
126,121 |
1,320,489 |
1,256,652 |
49,081 |
41 |
131,576 |
1 |
configure.ocaml |
no-host |
3,853 |
1 |
2 |
2.7 |
20.4 |
150,024 |
11,041 |
5,134 |
8,602 |
71,623 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,517 |
30,517 |
0 |
1,599 |
14,793 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,834 |
1 |
2 |
2.6 |
24.5 |
139,681 |
7,960 |
6,596 |
7,554 |
70,295 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,260 |
64,451 |
42,659 |
4,609 |
54,538 |
57,113 |
478 |
3 |
85,318 |
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 |
13 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
456 |
413 |
47 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
676 |
509 |
199 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
429 |
127 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,269 |
1,513 |
1,017 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
822 |
583 |
252 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,107 |
9,118 |
6,373 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,184 |
9,174 |
6,430 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,573 |
17,400 |
13,010 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,359 |
9,202 |
6,420 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,800 |
1,626 |
1,215 |
20.9 |
bash |
12 |
no-host |
configure.ocaml |
3,755 |
1,580 |
1,195 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,623 |
2,230 |
1,596 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,853 |
1,579 |
1,310 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
189 |
133 |
59 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
27 |
23 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,015 |
9,048 |
5,442 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,906 |
9,268 |
6,128 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,092 |
20,861 |
11,317 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,509 |
8,766 |
5,942 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,832 |
1,024 |
815 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,790 |
1,000 |
793 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,453 |
1,562 |
933 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,834 |
1,068 |
770 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
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,523 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,118 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,234 |
0 |
0 |
0 |
8 |
0 |
46 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,213 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,330 |
0 |
0 |
0 |
8 |
0 |
1,988 |
53 |
bash |
9 |
no-host |
bin-true |
65,521 |
0 |
0 |
0 |
8 |
0 |
1,986 |
43 |
dash |
17 |
no-host |
bin-true |
752,052 |
0 |
0 |
0 |
8 |
0 |
1,997 |
297 |
osh-cpython |
25 |
no-host |
bin-true |
128,206 |
0 |
0 |
0 |
16 |
0 |
1,989 |
90 |
osh-native |
2 |
no-host |
configure.cpython |
2,228,271 |
1 |
0 |
0 |
32,928 |
0 |
14,453 |
1,064 |
bash |
10 |
no-host |
configure.cpython |
2,234,533 |
0 |
0 |
0 |
32,992 |
0 |
14,608 |
1,148 |
dash |
18 |
no-host |
configure.cpython |
6,137,656 |
2 |
0 |
0 |
27,512 |
0 |
13,240 |
1,170 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,737 |
0 |
0 |
0 |
27,520 |
0 |
13,275 |
1,055 |
osh-native |
4 |
no-host |
configure.ocaml |
409,696 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
156 |
bash |
12 |
no-host |
configure.ocaml |
391,240 |
0 |
0 |
0 |
5,112 |
0 |
1,936 |
167 |
dash |
20 |
no-host |
configure.ocaml |
637,623 |
0 |
0 |
0 |
5,112 |
0 |
1,864 |
167 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,154 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
176 |
osh-native |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,463 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,233 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,016 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,245 |
0 |
0 |
0 |
42,408 |
0 |
18,643 |
1,121 |
bash |
11 |
no-host |
configure.util-linux |
2,262,768 |
0 |
0 |
0 |
42,592 |
0 |
17,468 |
1,024 |
dash |
19 |
no-host |
configure.util-linux |
5,330,347 |
15 |
0 |
0 |
39,112 |
0 |
17,044 |
1,238 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,446 |
0 |
0 |
0 |
39,120 |
0 |
17,087 |
1,108 |
osh-native |
6 |
no-host |
configure.yash |
256,614 |
0 |
0 |
0 |
4,120 |
0 |
870 |
75 |
bash |
14 |
no-host |
configure.yash |
244,470 |
0 |
0 |
0 |
3,720 |
0 |
866 |
74 |
dash |
22 |
no-host |
configure.yash |
385,646 |
0 |
0 |
0 |
3,728 |
0 |
851 |
121 |
osh-cpython |
30 |
no-host |
configure.yash |
258,164 |
0 |
0 |
0 |
3,736 |
0 |
849 |
84 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,659 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host