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 |
483 |
23 |
24.30 |
1.15 |
bin-true |
no-host |
679 |
560 |
2,429 |
838 |
3.57 |
1.23 |
configure.cpython |
no-host |
15,690 |
15,967 |
31,124 |
16,079 |
1.98 |
1.02 |
configure.ocaml |
no-host |
3,918 |
3,925 |
4,936 |
3,966 |
1.26 |
1.01 |
configure.tcc |
no-host |
49 |
44 |
208 |
49 |
4.26 |
1.01 |
configure.util-linux |
no-host |
14,478 |
15,869 |
34,564 |
14,932 |
2.39 |
1.03 |
configure.yash |
no-host |
1,892 |
1,903 |
2,615 |
1,897 |
1.38 |
1.00 |
hello-world |
no-host |
2 |
1 |
55 |
3 |
34.08 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,542 |
1,104 |
23,523 |
3,210 |
9.25 |
1.26 |
bin-true |
no-host |
106,300 |
66,454 |
754,232 |
127,222 |
7.10 |
1.20 |
configure.cpython |
no-host |
2,214,103 |
2,247,598 |
6,153,335 |
2,236,054 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,691 |
391,096 |
640,010 |
413,804 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,548 |
5,466 |
23,330 |
6,985 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,097,433 |
2,268,001 |
5,332,876 |
2,017,279 |
2.54 |
0.96 |
configure.yash |
no-host |
256,442 |
245,144 |
385,445 |
258,747 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
82 |
3,682 |
350 |
23.91 |
2.27 |
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 |
838 |
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 |
16,079 |
2 |
68 |
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,932 |
3 |
64 |
22.2 |
30.4 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,966 |
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.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,897 |
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 |
23 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
483 |
428 |
59 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
20 |
3 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
679 |
511 |
199 |
2.9 |
bash |
9 |
no-host |
bin-true |
560 |
420 |
149 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,429 |
1,542 |
1,163 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
838 |
597 |
255 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,690 |
9,408 |
6,670 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,967 |
9,647 |
6,750 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
31,124 |
18,389 |
14,739 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,079 |
9,322 |
7,019 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,918 |
1,734 |
1,220 |
20.3 |
bash |
12 |
no-host |
configure.ocaml |
3,925 |
1,719 |
1,228 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,936 |
2,377 |
1,781 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,966 |
1,655 |
1,351 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
44 |
33 |
11 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
208 |
144 |
68 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
31 |
19 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,478 |
8,988 |
5,969 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,869 |
9,721 |
6,660 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
34,564 |
22,795 |
12,983 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,932 |
9,073 |
6,052 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,892 |
1,088 |
813 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,903 |
1,129 |
777 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,615 |
1,612 |
1,050 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,897 |
1,135 |
768 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
55 |
30 |
25 |
17.3 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,523 |
0 |
0 |
0 |
8 |
0 |
47 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,210 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
106,300 |
0 |
0 |
0 |
8 |
0 |
1,991 |
52 |
bash |
9 |
no-host |
bin-true |
66,454 |
0 |
0 |
0 |
8 |
0 |
1,987 |
66 |
dash |
17 |
no-host |
bin-true |
754,232 |
0 |
0 |
0 |
8 |
0 |
1,997 |
218 |
osh-cpython |
25 |
no-host |
bin-true |
127,222 |
0 |
0 |
0 |
16 |
0 |
1,992 |
71 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,103 |
1 |
0 |
0 |
32,928 |
0 |
14,574 |
1,065 |
bash |
10 |
no-host |
configure.cpython |
2,247,598 |
0 |
0 |
0 |
32,992 |
0 |
14,653 |
998 |
dash |
18 |
no-host |
configure.cpython |
6,153,335 |
0 |
0 |
0 |
27,512 |
0 |
13,298 |
1,417 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,054 |
0 |
0 |
0 |
27,520 |
0 |
13,328 |
1,043 |
osh-native |
4 |
no-host |
configure.ocaml |
410,691 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
179 |
bash |
12 |
no-host |
configure.ocaml |
391,096 |
0 |
0 |
0 |
5,112 |
0 |
1,881 |
154 |
dash |
20 |
no-host |
configure.ocaml |
640,010 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
192 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,804 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
191 |
osh-native |
5 |
no-host |
configure.tcc |
6,548 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,330 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,985 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,097,433 |
1 |
0 |
0 |
42,400 |
0 |
18,618 |
1,045 |
bash |
11 |
no-host |
configure.util-linux |
2,268,001 |
0 |
0 |
0 |
42,584 |
0 |
17,483 |
1,175 |
dash |
19 |
no-host |
configure.util-linux |
5,332,876 |
13 |
0 |
0 |
39,128 |
0 |
17,038 |
1,497 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,279 |
5 |
0 |
0 |
39,128 |
0 |
17,085 |
1,045 |
osh-native |
6 |
no-host |
configure.yash |
256,442 |
0 |
0 |
0 |
4,120 |
0 |
868 |
89 |
bash |
14 |
no-host |
configure.yash |
245,144 |
0 |
0 |
0 |
3,720 |
0 |
868 |
89 |
dash |
22 |
no-host |
configure.yash |
385,445 |
0 |
0 |
0 |
3,728 |
0 |
852 |
112 |
osh-cpython |
30 |
no-host |
configure.yash |
258,747 |
0 |
0 |
0 |
3,736 |
0 |
853 |
75 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,682 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host