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 468 22 21 24.03 1.11
bin-true no-host 679 543 2,281 807 803 3.36 1.19
configure.cpython no-host 15,019 15,134 28,861 15,248 15,470 1.92 1.02
configure.ocaml no-host 3,868 3,726 4,690 3,826 3,786 1.21 0.99
configure.tcc no-host 49 41 203 49 48 4.13 0.99
configure.util-linux no-host 14,029 15,107 31,680 14,340 14,328 2.26 1.02
configure.yash no-host 1,867 1,764 2,465 1,834 1,819 1.32 0.98
hello-world no-host 2 1 55 3 3 36.14 1.84

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,568 1,096 23,828 3,199 3,073 9.28 1.25
bin-true no-host 108,317 65,405 769,583 123,264 126,193 7.10 1.14
configure.cpython no-host 2,224,995 2,241,967 6,242,091 2,221,182 2,204,984 2.81 1.00
configure.ocaml no-host 410,450 390,903 647,799 413,383 412,270 1.58 1.01
configure.tcc no-host 6,567 5,481 24,128 6,964 6,924 3.67 1.06
configure.util-linux no-host 2,104,503 2,259,669 5,384,404 1,996,440 1,985,213 2.56 0.95
configure.yash no-host 256,828 245,003 389,471 258,305 257,018 1.52 1.01
hello-world no-host 152 79 3,941 344 337 25.93 2.26

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.7 9.0 8.5 5.09 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.9 6.09 2.70
configure.cpython no-host 27.3 27.5 27.3 27.5 27.4 1.00 1.01
configure.ocaml no-host 20.7 20.6 20.6 20.6 20.6 0.99 0.99
configure.tcc no-host 19.3 19.3 19.4 19.3 19.4 1.01 1.00
configure.util-linux no-host 30.0 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.2 24.2 1.00 0.99
hello-world no-host 2.8 1.4 18.2 6.3 5.8 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 807 1 2 2.6 8.1 153,746 12,267 2,887 8,743 76,322 68,681 3,008 3 50,000 0
configure.cpython no-host 15,248 1 61 14.9 27.5 1,771,747 49,125 28,512 85,415 878,115 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,340 3 60 21.2 30.1 2,702,513 45,898 65,711 108,691 1,290,640 1,303,182 32,239 41 131,422 1
configure.ocaml no-host 3,826 1 2 2.6 20.6 150,080 11,112 5,207 7,508 70,969 71,603 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,641 14,427 271 0 50,000 0
configure.yash no-host 1,834 1 2 2.5 24.2 139,412 8,024 6,686 5,989 67,942 65,481 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,436 57,324 277 3 85,226 1
hello-world no-host 3 0 0 0.2 5.8 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 803 1 2 2.6 7.9 153,745 12,111 2,825 8,744 76,322 68,679 3,008 3 50,000 0
configure.cpython no-host 15,470 2 61 14.9 27.4 1,771,746 44,577 28,450 85,416 878,115 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,328 3 59 21.2 30.3 2,702,513 53,693 65,649 108,693 1,290,640 1,303,180 32,239 41 131,298 1
configure.ocaml no-host 3,786 1 2 2.6 20.6 150,080 11,050 5,145 7,510 70,969 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,586 30,586 0 1,520 14,641 14,425 271 0 50,000 0
configure.yash no-host 1,819 1 2 2.5 24.2 139,412 7,962 6,624 5,991 67,942 65,479 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,436 57,322 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 14 6 4.5 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 468 404 67 22.7 osh-cpython
31 no-host abuild-print-help 22 19 3 9.0 osh-native
39 no-host abuild-print-help 21 18 3 8.5 osh-native-souffle
1 no-host bin-true 679 506 204 3.0 bash
9 no-host bin-true 543 420 133 1.4 dash
17 no-host bin-true 2,281 1,453 1,087 18.4 osh-cpython
25 no-host bin-true 807 568 255 8.1 osh-native
33 no-host bin-true 803 584 235 7.9 osh-native-souffle
2 no-host configure.cpython 15,019 9,003 6,412 27.3 bash
10 no-host configure.cpython 15,134 9,017 6,544 27.5 dash
18 no-host configure.cpython 28,861 17,509 13,205 27.3 osh-cpython
26 no-host configure.cpython 15,248 9,086 6,427 27.5 osh-native
34 no-host configure.cpython 15,470 8,981 6,572 27.4 osh-native-souffle
4 no-host configure.ocaml 3,868 1,640 1,254 20.7 bash
12 no-host configure.ocaml 3,726 1,594 1,152 20.6 dash
20 no-host configure.ocaml 4,690 2,290 1,599 20.6 osh-cpython
28 no-host configure.ocaml 3,826 1,589 1,276 20.6 osh-native
36 no-host configure.ocaml 3,786 1,618 1,205 20.6 osh-native-souffle
5 no-host configure.tcc 49 36 14 19.3 bash
13 no-host configure.tcc 41 26 15 19.3 dash
21 no-host configure.tcc 203 153 54 19.4 osh-cpython
29 no-host configure.tcc 49 28 21 19.3 osh-native
37 no-host configure.tcc 48 26 23 19.4 osh-native-souffle
3 no-host configure.util-linux 14,029 8,748 5,734 30.0 bash
11 no-host configure.util-linux 15,107 9,297 6,299 30.3 dash
19 no-host configure.util-linux 31,680 21,116 11,645 30.1 osh-cpython
27 no-host configure.util-linux 14,340 8,671 5,868 30.1 osh-native
35 no-host configure.util-linux 14,328 8,496 6,012 30.3 osh-native-souffle
6 no-host configure.yash 1,867 1,111 761 24.4 bash
14 no-host configure.yash 1,764 1,014 753 24.4 dash
22 no-host configure.yash 2,465 1,541 966 24.4 osh-cpython
30 no-host configure.yash 1,834 1,049 788 24.2 osh-native
38 no-host configure.yash 1,819 1,072 750 24.2 osh-native-souffle
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 55 40 16 18.2 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 5.8 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,568 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,828 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,199 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,073 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 108,317 0 0 0 8 0 1,990 169 bash
9 no-host bin-true 65,405 0 0 0 8 0 1,989 42 dash
17 no-host bin-true 769,583 0 0 0 8 0 1,997 146 osh-cpython
25 no-host bin-true 123,264 0 0 0 16 0 1,997 148 osh-native
33 no-host bin-true 126,193 0 0 0 16 0 1,997 48 osh-native-souffle
2 no-host configure.cpython 2,224,995 0 0 0 32,928 0 14,579 1,137 bash
10 no-host configure.cpython 2,241,967 0 0 0 32,992 0 14,656 1,069 dash
18 no-host configure.cpython 6,242,091 0 0 0 27,512 0 13,210 1,357 osh-cpython
26 no-host configure.cpython 2,221,182 0 0 0 27,520 0 13,208 1,070 osh-native
34 no-host configure.cpython 2,204,984 0 0 0 27,520 0 13,259 1,063 osh-native-souffle
4 no-host configure.ocaml 410,450 0 0 0 5,120 0 1,954 180 bash
12 no-host configure.ocaml 390,903 0 0 0 5,112 0 1,875 144 dash
20 no-host configure.ocaml 647,799 0 0 0 5,112 0 1,858 169 osh-cpython
28 no-host configure.ocaml 413,383 0 0 0 5,120 0 1,922 177 osh-native
36 no-host configure.ocaml 412,270 0 0 0 5,120 0 1,926 152 osh-native-souffle
5 no-host configure.tcc 6,567 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,128 0 0 0 96 0 53 15 osh-cpython
29 no-host configure.tcc 6,964 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,924 0 0 0 104 0 47 10 osh-native-souffle
3 no-host configure.util-linux 2,104,503 0 0 0 42,400 0 18,522 1,032 bash
11 no-host configure.util-linux 2,259,669 1 0 0 42,584 0 17,496 1,049 dash
19 no-host configure.util-linux 5,384,404 17 0 0 39,112 0 16,985 1,251 osh-cpython
27 no-host configure.util-linux 1,996,440 0 0 0 39,120 0 16,971 1,039 osh-native
35 no-host configure.util-linux 1,985,213 0 0 0 39,136 0 16,950 950 osh-native-souffle
6 no-host configure.yash 256,828 0 0 0 4,120 0 871 84 bash
14 no-host configure.yash 245,003 0 0 0 3,720 0 868 88 dash
22 no-host configure.yash 389,471 0 0 0 3,728 0 853 97 osh-cpython
30 no-host configure.yash 258,305 0 0 0 3,736 0 849 82 osh-native
38 no-host configure.yash 257,018 0 0 0 3,736 0 851 99 osh-native-souffle
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,941 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 344 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-8583d197
dash dash-0ebcf347
osh-cpython osh-1eb2ee44
osh-native osh-dbd0fbf2
osh-native-souffle osh-56daed3a
host label host id
no-host no-host-556df3ee