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 |
457 |
23 |
23.73 |
1.18 |
bin-true |
no-host |
678 |
545 |
2,232 |
816 |
3.29 |
1.20 |
configure.cpython |
no-host |
15,114 |
15,396 |
28,785 |
15,506 |
1.90 |
1.03 |
configure.ocaml |
no-host |
3,896 |
3,801 |
4,706 |
3,880 |
1.21 |
1.00 |
configure.tcc |
no-host |
49 |
43 |
195 |
50 |
3.97 |
1.02 |
configure.util-linux |
no-host |
14,125 |
15,229 |
31,586 |
14,667 |
2.24 |
1.04 |
configure.yash |
no-host |
1,886 |
1,772 |
2,450 |
1,838 |
1.30 |
0.97 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.13 |
1.94 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,544 |
1,098 |
23,451 |
3,255 |
9.22 |
1.28 |
bin-true |
no-host |
107,375 |
66,361 |
750,763 |
128,168 |
6.99 |
1.19 |
configure.cpython |
no-host |
2,222,596 |
2,245,980 |
6,135,594 |
2,231,103 |
2.76 |
1.00 |
configure.ocaml |
no-host |
409,980 |
390,744 |
639,545 |
413,308 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,555 |
5,490 |
23,259 |
6,985 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,094,942 |
2,259,198 |
5,326,291 |
2,020,143 |
2.54 |
0.96 |
configure.yash |
no-host |
256,337 |
245,112 |
383,955 |
258,999 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
79 |
3,684 |
351 |
24.24 |
2.31 |
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.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,506 |
1 |
62 |
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,667 |
3 |
63 |
22.2 |
30.1 |
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,880 |
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 |
50 |
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,838 |
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 |
23 |
1 |
2 |
2.8 |
9.0 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
457 |
419 |
41 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
678 |
503 |
208 |
2.8 |
bash |
9 |
no-host |
bin-true |
545 |
425 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,232 |
1,488 |
1,004 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
574 |
257 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,114 |
8,971 |
6,542 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,396 |
9,231 |
6,590 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,785 |
17,479 |
13,186 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,506 |
9,015 |
6,754 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,896 |
1,708 |
1,228 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,801 |
1,546 |
1,274 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,706 |
2,122 |
1,801 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,880 |
1,650 |
1,268 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
23 |
20 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
129 |
68 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
35 |
16 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,125 |
8,801 |
5,794 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,229 |
9,292 |
6,455 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,586 |
21,012 |
11,699 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,667 |
8,679 |
6,190 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,886 |
1,059 |
836 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,772 |
1,001 |
772 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,450 |
1,444 |
1,049 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,838 |
1,041 |
801 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
49 |
44 |
4 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,544 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,098 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,451 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,255 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,375 |
0 |
0 |
0 |
8 |
0 |
1,989 |
111 |
bash |
9 |
no-host |
bin-true |
66,361 |
0 |
0 |
0 |
8 |
0 |
1,994 |
95 |
dash |
17 |
no-host |
bin-true |
750,763 |
0 |
0 |
0 |
8 |
0 |
1,992 |
170 |
osh-cpython |
25 |
no-host |
bin-true |
128,168 |
0 |
0 |
0 |
16 |
0 |
1,985 |
44 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,596 |
0 |
0 |
0 |
32,928 |
0 |
14,433 |
1,034 |
bash |
10 |
no-host |
configure.cpython |
2,245,980 |
0 |
0 |
0 |
32,992 |
0 |
14,570 |
1,104 |
dash |
18 |
no-host |
configure.cpython |
6,135,594 |
0 |
0 |
0 |
27,512 |
0 |
13,292 |
1,198 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,103 |
0 |
0 |
0 |
27,520 |
0 |
13,340 |
1,172 |
osh-native |
4 |
no-host |
configure.ocaml |
409,980 |
0 |
0 |
0 |
5,120 |
0 |
1,956 |
163 |
bash |
12 |
no-host |
configure.ocaml |
390,744 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
157 |
dash |
20 |
no-host |
configure.ocaml |
639,545 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
186 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,308 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
180 |
osh-native |
5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,259 |
0 |
0 |
0 |
96 |
0 |
52 |
11 |
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,094,942 |
0 |
0 |
0 |
42,400 |
0 |
18,715 |
1,146 |
bash |
11 |
no-host |
configure.util-linux |
2,259,198 |
1 |
0 |
0 |
42,592 |
0 |
17,530 |
1,211 |
dash |
19 |
no-host |
configure.util-linux |
5,326,291 |
16 |
0 |
0 |
39,112 |
0 |
17,129 |
1,273 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,020,143 |
1 |
0 |
0 |
39,128 |
0 |
17,061 |
1,059 |
osh-native |
6 |
no-host |
configure.yash |
256,337 |
0 |
0 |
0 |
4,120 |
0 |
871 |
85 |
bash |
14 |
no-host |
configure.yash |
245,112 |
0 |
0 |
0 |
3,720 |
0 |
868 |
99 |
dash |
22 |
no-host |
configure.yash |
383,955 |
0 |
0 |
0 |
3,728 |
0 |
858 |
87 |
osh-cpython |
30 |
no-host |
configure.yash |
258,999 |
0 |
0 |
0 |
3,736 |
0 |
851 |
77 |
osh-native |
0 |
no-host |
hello-world |
152 |
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,684 |
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