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.40 1.13
bin-true no-host 678 541 2,292 811 810 3.38 1.20
configure.cpython no-host 14,949 15,045 28,704 15,161 15,293 1.92 1.01
configure.ocaml no-host 3,775 3,735 4,635 3,819 3,800 1.23 1.01
configure.tcc no-host 48 42 204 49 48 4.28 1.02
configure.util-linux no-host 13,968 14,839 31,342 14,315 14,262 2.24 1.02
configure.yash no-host 1,823 1,753 2,455 1,821 1,804 1.35 1.00
hello-world no-host 2 1 57 3 3 37.15 2.09

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,552 1,098 23,786 3,189 3,084 9.32 1.25
bin-true no-host 107,386 66,469 763,412 127,235 127,227 7.11 1.18
configure.cpython no-host 2,220,181 2,239,453 6,217,747 2,221,877 2,203,872 2.80 1.00
configure.ocaml no-host 411,037 391,727 646,094 413,259 412,522 1.57 1.01
configure.tcc no-host 6,576 5,492 24,031 6,953 6,912 3.65 1.06
configure.util-linux no-host 2,104,705 2,263,266 5,379,211 2,005,613 1,993,489 2.56 0.95
configure.yash no-host 256,373 245,017 388,094 257,177 256,977 1.51 1.00
hello-world no-host 152 83 3,940 342 337 25.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).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 22.6 8.9 8.5 5.06 2.00
bin-true no-host 3.0 1.4 18.4 8.3 7.6 6.09 2.74
configure.cpython no-host 27.3 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 20.6 0.99 1.00
configure.tcc no-host 19.4 19.4 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.9 1.4 18.2 6.3 5.9 6.32 2.18

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 811 1 2 2.6 8.3 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,161 1 62 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,315 3 59 21.2 30.3 2,702,513 45,898 65,711 108,691 1,320,585 1,273,237 32,239 41 131,422 1
configure.ocaml no-host 3,819 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 49 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,821 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 8.9 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 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 810 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,293 1 61 14.9 27.4 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,262 3 60 21.2 30.1 2,702,513 53,693 65,649 108,693 1,320,585 1,273,235 32,239 41 131,298 1
configure.ocaml no-host 3,800 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.3 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,804 1 2 2.5 24.2 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.5 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 17 3 4.5 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 471 408 66 22.6 osh-cpython
31 no-host abuild-print-help 22 17 5 8.9 osh-native
39 no-host abuild-print-help 21 14 7 8.5 osh-native-souffle
1 no-host bin-true 678 498 211 3.0 bash
9 no-host bin-true 541 414 136 1.4 dash
17 no-host bin-true 2,292 1,447 1,103 18.4 osh-cpython
25 no-host bin-true 811 568 259 8.3 osh-native
33 no-host bin-true 810 575 249 7.6 osh-native-souffle
2 no-host configure.cpython 14,949 9,104 6,251 27.3 bash
10 no-host configure.cpython 15,045 9,299 6,168 27.3 dash
18 no-host configure.cpython 28,704 17,649 12,908 27.4 osh-cpython
26 no-host configure.cpython 15,161 9,041 6,384 27.4 osh-native
34 no-host configure.cpython 15,293 9,025 6,399 27.4 osh-native-souffle
4 no-host configure.ocaml 3,775 1,634 1,178 20.6 bash
12 no-host configure.ocaml 3,735 1,611 1,144 20.6 dash
20 no-host configure.ocaml 4,635 2,224 1,620 20.4 osh-cpython
28 no-host configure.ocaml 3,819 1,601 1,257 20.6 osh-native
36 no-host configure.ocaml 3,800 1,672 1,166 20.6 osh-native-souffle
5 no-host configure.tcc 48 39 10 19.4 bash
13 no-host configure.tcc 42 26 16 19.4 dash
21 no-host configure.tcc 204 168 39 19.4 osh-cpython
29 no-host configure.tcc 49 16 33 19.3 osh-native
37 no-host configure.tcc 48 29 19 19.3 osh-native-souffle
3 no-host configure.util-linux 13,968 8,810 5,626 30.3 bash
11 no-host configure.util-linux 14,839 9,197 6,131 30.1 dash
19 no-host configure.util-linux 31,342 21,176 11,228 30.1 osh-cpython
27 no-host configure.util-linux 14,315 8,646 5,862 30.3 osh-native
35 no-host configure.util-linux 14,262 8,423 6,035 30.1 osh-native-souffle
6 no-host configure.yash 1,823 985 844 24.2 bash
14 no-host configure.yash 1,753 982 774 24.4 dash
22 no-host configure.yash 2,455 1,427 1,069 24.4 osh-cpython
30 no-host configure.yash 1,821 1,055 770 24.2 osh-native
38 no-host configure.yash 1,804 1,059 749 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 57 41 15 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 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,552 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,786 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,084 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,386 0 0 0 8 0 1,989 55 bash
9 no-host bin-true 66,469 0 0 0 8 0 1,987 34 dash
17 no-host bin-true 763,412 0 0 0 8 0 2,000 225 osh-cpython
25 no-host bin-true 127,235 0 0 0 16 0 1,988 73 osh-native
33 no-host bin-true 127,227 0 0 0 16 0 1,992 60 osh-native-souffle
2 no-host configure.cpython 2,220,181 0 0 0 32,928 0 14,448 916 bash
10 no-host configure.cpython 2,239,453 0 0 0 32,992 0 14,551 1,237 dash
18 no-host configure.cpython 6,217,747 0 0 0 27,512 0 13,192 1,287 osh-cpython
26 no-host configure.cpython 2,221,877 0 0 0 27,520 0 13,184 1,043 osh-native
34 no-host configure.cpython 2,203,872 0 0 0 27,520 0 13,210 943 osh-native-souffle
4 no-host configure.ocaml 411,037 0 0 0 5,120 0 1,947 160 bash
12 no-host configure.ocaml 391,727 0 0 0 5,112 0 1,939 128 dash
20 no-host configure.ocaml 646,094 1 0 0 5,112 0 1,857 183 osh-cpython
28 no-host configure.ocaml 413,259 0 0 0 5,120 0 1,927 186 osh-native
36 no-host configure.ocaml 412,522 0 0 0 5,120 0 1,929 174 osh-native-souffle
5 no-host configure.tcc 6,576 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,492 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,031 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,953 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,912 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,104,705 0 0 0 42,400 0 18,608 935 bash
11 no-host configure.util-linux 2,263,266 1 0 0 42,592 0 17,357 1,062 dash
19 no-host configure.util-linux 5,379,211 13 0 0 39,112 0 17,009 1,151 osh-cpython
27 no-host configure.util-linux 2,005,613 0 0 0 39,120 0 17,003 1,190 osh-native
35 no-host configure.util-linux 1,993,489 2 0 0 39,136 0 16,966 959 osh-native-souffle
6 no-host configure.yash 256,373 0 0 0 4,120 0 876 73 bash
14 no-host configure.yash 245,017 0 0 0 3,720 0 869 80 dash
22 no-host configure.yash 388,094 0 0 0 3,728 0 852 81 osh-cpython
30 no-host configure.yash 257,177 0 0 0 3,736 0 847 86 osh-native
38 no-host configure.yash 256,977 0 0 0 3,736 0 850 105 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,940 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 337 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-de3aa1a7
dash dash-0ebcf347
osh-cpython osh-0c8bba7e
osh-native osh-b34f1633
osh-native-souffle osh-9d707ce6
host label host id
no-host no-host-556df3ee