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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 10 471 22 21 24.60 1.15
bin-true no-host 668 546 2,338 818 807 3.50 1.22
configure.cpython no-host 15,047 15,240 30,295 15,722 15,558 2.01 1.04
configure.ocaml no-host 3,859 3,846 4,722 3,943 3,858 1.22 1.02
configure.tcc no-host 48 43 206 51 48 4.29 1.06
configure.util-linux no-host 13,909 15,058 32,751 14,855 14,532 2.35 1.07
configure.yash no-host 1,838 1,823 2,497 1,875 1,838 1.36 1.02
hello-world no-host 1 1 61 3 3 40.73 1.92

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,521 1,124 23,775 3,151 3,120 9.43 1.25
bin-true no-host 104,330 65,460 774,274 127,270 123,192 7.42 1.22
configure.cpython no-host 2,223,981 2,242,746 6,229,623 2,217,850 2,214,075 2.80 1.00
configure.ocaml no-host 410,675 391,065 648,161 412,343 412,703 1.58 1.00
configure.tcc no-host 6,564 5,492 24,089 6,977 6,908 3.67 1.06
configure.util-linux no-host 2,105,436 2,259,092 5,381,937 1,990,559 1,997,828 2.56 0.95
configure.yash no-host 256,245 243,563 389,862 257,946 258,111 1.52 1.01
hello-world no-host 151 80 3,940 343 340 26.09 2.27

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 22.6 9.0 8.7 5.22 2.09
bin-true no-host 2.9 1.4 18.4 8.0 7.6 6.37 2.77
configure.cpython no-host 27.5 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.3 19.4 19.3 19.1 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.5 1.00 0.99
hello-world no-host 2.8 1.4 18.2 6.3 6.0 6.62 2.29

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.2 6.3 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.0 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,722 1 64 14.9 27.4 1,771,747 49,125 28,512 85,415 908,079 778,253 25,733 60 50,000 0
configure.util-linux no-host 14,855 3 64 21.2 30.1 2,702,513 53,766 65,691 108,691 1,320,585 1,273,237 32,239 41 131,382 1
configure.ocaml no-host 3,943 1 2 2.6 20.6 150,080 11,112 5,207 7,508 71,612 70,960 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,875 1 2 2.5 24.2 139,412 8,024 6,686 5,989 70,287 63,136 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,403 42,613 4,532 54,527 57,233 277 3 85,226 1
hello-world no-host 3 0 0 0.2 6.0 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.6 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,558 1 62 14.9 27.5 1,771,746 44,577 28,450 85,416 908,079 778,251 25,733 60 50,000 0
configure.util-linux no-host 14,532 3 63 21.2 30.1 2,702,513 53,693 65,629 108,693 1,320,585 1,273,235 32,239 41 131,258 1
configure.ocaml no-host 3,858 1 2 2.6 20.6 150,080 11,050 5,145 7,510 71,612 70,958 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.1 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,838 1 2 2.5 24.5 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,291 64,341 42,551 4,533 54,527 57,231 277 3 85,102 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 15 5 4.3 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 471 434 40 22.6 osh-cpython
31 no-host abuild-print-help 22 18 5 9.0 osh-native
39 no-host abuild-print-help 21 21 0 8.7 osh-native-souffle
1 no-host bin-true 668 493 205 2.9 bash
9 no-host bin-true 546 413 141 1.4 dash
17 no-host bin-true 2,338 1,504 1,099 18.4 osh-cpython
25 no-host bin-true 818 558 274 8.0 osh-native
33 no-host bin-true 807 554 267 7.6 osh-native-souffle
2 no-host configure.cpython 15,047 9,077 6,358 27.5 bash
10 no-host configure.cpython 15,240 9,231 6,434 27.4 dash
18 no-host configure.cpython 30,295 17,967 14,298 27.4 osh-cpython
26 no-host configure.cpython 15,722 9,293 6,701 27.4 osh-native
34 no-host configure.cpython 15,558 8,954 6,740 27.5 osh-native-souffle
4 no-host configure.ocaml 3,859 1,614 1,285 20.6 bash
12 no-host configure.ocaml 3,846 1,633 1,232 20.4 dash
20 no-host configure.ocaml 4,722 2,199 1,740 20.6 osh-cpython
28 no-host configure.ocaml 3,943 1,660 1,322 20.6 osh-native
36 no-host configure.ocaml 3,858 1,612 1,280 20.6 osh-native-souffle
5 no-host configure.tcc 48 19 29 19.1 bash
13 no-host configure.tcc 43 36 7 19.3 dash
21 no-host configure.tcc 206 141 68 19.4 osh-cpython
29 no-host configure.tcc 51 38 13 19.3 osh-native
37 no-host configure.tcc 48 26 23 19.1 osh-native-souffle
3 no-host configure.util-linux 13,909 8,791 5,590 30.3 bash
11 no-host configure.util-linux 15,058 9,317 6,243 30.1 dash
19 no-host configure.util-linux 32,751 21,861 12,006 30.1 osh-cpython
27 no-host configure.util-linux 14,855 8,911 6,142 30.1 osh-native
35 no-host configure.util-linux 14,532 8,670 6,055 30.1 osh-native-souffle
6 no-host configure.yash 1,838 1,056 791 24.4 bash
14 no-host configure.yash 1,823 1,087 740 24.4 dash
22 no-host configure.yash 2,497 1,541 997 24.4 osh-cpython
30 no-host configure.yash 1,875 1,129 749 24.2 osh-native
38 no-host configure.yash 1,838 1,069 773 24.5 osh-native-souffle
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 61 38 22 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 6.0 osh-native-souffle

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,521 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,124 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,775 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,151 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,120 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,330 0 0 0 8 0 1,993 49 bash
9 no-host bin-true 65,460 0 0 0 8 0 1,991 39 dash
17 no-host bin-true 774,274 0 0 0 8 0 1,998 198 osh-cpython
25 no-host bin-true 127,270 0 0 0 16 0 1,994 56 osh-native
33 no-host bin-true 123,192 0 0 0 16 0 1,985 71 osh-native-souffle
2 no-host configure.cpython 2,223,981 0 0 0 32,952 0 14,528 1,109 bash
10 no-host configure.cpython 2,242,746 0 0 0 32,992 0 14,665 1,053 dash
18 no-host configure.cpython 6,229,623 0 0 0 27,512 0 13,228 1,148 osh-cpython
26 no-host configure.cpython 2,217,850 0 0 0 27,520 0 13,198 1,059 osh-native
34 no-host configure.cpython 2,214,075 0 0 0 27,520 0 13,190 887 osh-native-souffle
4 no-host configure.ocaml 410,675 0 0 0 5,120 0 1,943 150 bash
12 no-host configure.ocaml 391,065 0 0 0 5,112 0 1,898 149 dash
20 no-host configure.ocaml 648,161 0 0 0 5,112 0 1,851 172 osh-cpython
28 no-host configure.ocaml 412,343 0 0 0 5,120 0 1,918 172 osh-native
36 no-host configure.ocaml 412,703 0 0 0 5,120 0 1,936 141 osh-native-souffle
5 no-host configure.tcc 6,564 0 0 0 104 0 49 6 bash
13 no-host configure.tcc 5,492 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,089 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,977 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,908 0 0 0 104 0 47 0 osh-native-souffle
3 no-host configure.util-linux 2,105,436 0 0 0 42,400 0 18,568 1,089 bash
11 no-host configure.util-linux 2,259,092 0 0 0 42,584 0 17,411 1,108 dash
19 no-host configure.util-linux 5,381,937 3 0 0 39,136 0 16,971 1,190 osh-cpython
27 no-host configure.util-linux 1,990,559 0 0 0 39,120 0 16,975 936 osh-native
35 no-host configure.util-linux 1,997,828 0 0 0 39,136 0 16,994 1,075 osh-native-souffle
6 no-host configure.yash 256,245 0 0 0 4,120 0 873 81 bash
14 no-host configure.yash 243,563 0 0 0 3,720 0 872 71 dash
22 no-host configure.yash 389,862 0 0 0 3,728 0 852 99 osh-cpython
30 no-host configure.yash 257,946 0 0 0 3,736 0 850 77 osh-native
38 no-host configure.yash 258,111 0 0 0 3,736 0 852 68 osh-native-souffle
0 no-host hello-world 151 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,940 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8f3fca79
dash dash-0ebcf347
osh-cpython osh-66dda9a9
osh-native osh-aa8e7864
osh-native-souffle osh-7898b431
host label host id
no-host no-host-556df3ee