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 9 475 22 21 24.45 1.14
bin-true no-host 667 546 2,290 814 809 3.43 1.22
configure.cpython no-host 15,141 15,284 28,771 15,245 15,377 1.90 1.01
configure.ocaml no-host 3,807 3,765 4,684 3,830 3,834 1.23 1.01
configure.tcc no-host 48 42 205 50 48 4.30 1.04
configure.util-linux no-host 14,001 14,983 31,589 14,408 14,450 2.26 1.03
configure.yash no-host 1,846 1,788 2,490 1,824 1,836 1.35 0.99
hello-world no-host 2 1 56 3 3 36.70 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,558 1,094 23,752 3,188 3,098 9.29 1.25
bin-true no-host 105,350 65,474 766,586 128,317 125,274 7.28 1.22
configure.cpython no-host 2,228,161 2,242,946 6,227,395 2,214,759 2,206,930 2.79 0.99
configure.ocaml no-host 410,546 390,995 646,821 412,414 412,398 1.58 1.00
configure.tcc no-host 6,532 5,482 24,028 6,981 6,918 3.68 1.07
configure.util-linux no-host 2,100,417 2,258,197 5,360,398 1,997,837 1,990,498 2.55 0.95
configure.yash no-host 256,276 244,434 388,120 256,241 258,376 1.51 1.00
hello-world no-host 153 84 3,926 341 336 25.66 2.23

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 9.0 8.4 5.06 2.03
bin-true no-host 3.0 1.4 18.4 8.0 7.7 6.11 2.65
configure.cpython no-host 27.3 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.4 19.3 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.0 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.5 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.6 18.4 6.2 5.9 6.67 2.24

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.2 3,782 3,782 0 694 1,858 1,230 2 0 50,000 0
bin-true no-host 814 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,245 1 63 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,408 3 62 21.2 30.1 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,830 1 2 2.6 20.4 150,080 11,112 5,207 7,508 71,612 70,960 1,695 3 50,000 0
configure.tcc no-host 50 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,824 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 5.9 3,781 3,781 0 695 1,858 1,228 2 0 50,000 0
bin-true no-host 809 1 2 2.6 7.7 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,377 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,450 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,834 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,836 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.4 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 13 7 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 475 427 51 22.6 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 21 11 11 8.4 osh-native-souffle
1 no-host bin-true 667 486 212 3.0 bash
9 no-host bin-true 546 425 132 1.4 dash
17 no-host bin-true 2,290 1,499 1,043 18.4 osh-cpython
25 no-host bin-true 814 582 248 8.0 osh-native
33 no-host bin-true 809 566 257 7.7 osh-native-souffle
2 no-host configure.cpython 15,141 9,233 6,276 27.3 bash
10 no-host configure.cpython 15,284 9,292 6,410 27.4 dash
18 no-host configure.cpython 28,771 17,527 13,092 27.3 osh-cpython
26 no-host configure.cpython 15,245 9,157 6,353 27.4 osh-native
34 no-host configure.cpython 15,377 8,932 6,575 27.4 osh-native-souffle
4 no-host configure.ocaml 3,807 1,638 1,207 20.6 bash
12 no-host configure.ocaml 3,765 1,546 1,235 20.6 dash
20 no-host configure.ocaml 4,684 2,289 1,607 20.6 osh-cpython
28 no-host configure.ocaml 3,830 1,619 1,251 20.4 osh-native
36 no-host configure.ocaml 3,834 1,673 1,191 20.6 osh-native-souffle
5 no-host configure.tcc 48 22 26 19.4 bash
13 no-host configure.tcc 42 26 16 19.3 dash
21 no-host configure.tcc 205 140 68 19.4 osh-cpython
29 no-host configure.tcc 50 19 31 19.3 osh-native
37 no-host configure.tcc 48 30 19 19.3 osh-native-souffle
3 no-host configure.util-linux 14,001 8,810 5,662 30.1 bash
11 no-host configure.util-linux 14,983 9,352 6,123 30.0 dash
19 no-host configure.util-linux 31,589 21,413 11,265 30.3 osh-cpython
27 no-host configure.util-linux 14,408 8,785 5,819 30.1 osh-native
35 no-host configure.util-linux 14,450 8,702 5,947 30.1 osh-native-souffle
6 no-host configure.yash 1,846 1,064 792 24.4 bash
14 no-host configure.yash 1,788 1,056 735 24.5 dash
22 no-host configure.yash 2,490 1,559 972 24.2 osh-cpython
30 no-host configure.yash 1,824 1,018 810 24.2 osh-native
38 no-host configure.yash 1,836 1,103 737 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 32 24 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.2 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,558 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,752 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,188 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,098 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 105,350 0 0 0 8 0 1,991 43 bash
9 no-host bin-true 65,474 0 0 0 8 0 1,981 39 dash
17 no-host bin-true 766,586 0 0 0 8 0 1,997 407 osh-cpython
25 no-host bin-true 128,317 0 0 0 16 0 1,988 57 osh-native
33 no-host bin-true 125,274 0 0 0 16 0 1,992 58 osh-native-souffle
2 no-host configure.cpython 2,228,161 0 0 0 32,952 0 14,587 1,048 bash
10 no-host configure.cpython 2,242,946 0 0 0 32,992 0 14,680 881 dash
18 no-host configure.cpython 6,227,395 0 0 0 27,512 0 13,257 1,101 osh-cpython
26 no-host configure.cpython 2,214,759 0 0 0 27,520 0 13,211 894 osh-native
34 no-host configure.cpython 2,206,930 0 0 0 27,520 0 13,271 1,086 osh-native-souffle
4 no-host configure.ocaml 410,546 0 0 0 5,120 0 1,951 146 bash
12 no-host configure.ocaml 390,995 0 0 0 5,112 0 1,902 289 dash
20 no-host configure.ocaml 646,821 0 0 0 5,112 0 1,855 175 osh-cpython
28 no-host configure.ocaml 412,414 0 0 0 5,120 0 1,927 173 osh-native
36 no-host configure.ocaml 412,398 0 0 0 5,120 0 1,933 167 osh-native-souffle
5 no-host configure.tcc 6,532 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,028 0 0 0 96 0 52 16 osh-cpython
29 no-host configure.tcc 6,981 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,918 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,100,417 0 0 0 42,400 0 18,587 947 bash
11 no-host configure.util-linux 2,258,197 0 0 0 42,584 0 17,421 1,014 dash
19 no-host configure.util-linux 5,360,398 18 0 0 39,120 0 16,953 1,434 osh-cpython
27 no-host configure.util-linux 1,997,837 1 0 0 39,128 0 16,961 938 osh-native
35 no-host configure.util-linux 1,990,498 0 0 0 39,136 0 16,941 955 osh-native-souffle
6 no-host configure.yash 256,276 0 0 0 4,120 0 867 80 bash
14 no-host configure.yash 244,434 0 0 0 3,720 0 864 78 dash
22 no-host configure.yash 388,120 0 0 0 3,728 0 851 81 osh-cpython
30 no-host configure.yash 256,241 0 0 0 3,736 0 849 84 osh-native
38 no-host configure.yash 258,376 0 0 0 3,736 0 846 83 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,926 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 336 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-590996b4
dash dash-0ebcf347
osh-cpython osh-872668cd
osh-native osh-d257ecb5
osh-native-souffle osh-392fee16
host label host id
no-host no-host-556df3ee