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 491 23 22 25.32 1.18
bin-true no-host 675 547 2,413 834 833 3.57 1.23
configure.cpython no-host 15,449 15,430 31,217 16,236 16,169 2.02 1.05
configure.ocaml no-host 3,826 3,930 4,944 4,015 4,016 1.29 1.05
configure.tcc no-host 48 44 209 51 50 4.33 1.05
configure.util-linux no-host 14,664 15,865 34,274 15,199 15,349 2.34 1.04
configure.yash no-host 1,848 1,886 2,634 1,956 1,931 1.43 1.06
hello-world no-host 2 1 55 3 3 32.69 1.79

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,501 1,119 23,370 3,148 3,102 9.34 1.26
bin-true no-host 104,348 66,407 771,831 128,851 123,785 7.40 1.23
configure.cpython no-host 2,232,513 2,239,947 6,228,681 2,220,752 2,218,375 2.79 0.99
configure.ocaml no-host 410,002 390,996 646,761 412,619 412,181 1.58 1.01
configure.tcc no-host 6,541 5,501 23,730 7,003 6,894 3.63 1.07
configure.util-linux no-host 2,100,289 2,257,216 5,339,719 2,008,134 1,999,594 2.54 0.96
configure.yash no-host 256,446 244,486 387,440 257,930 257,610 1.51 1.01
hello-world no-host 155 82 3,748 352 344 24.18 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.4 21.9 9.0 8.7 5.06 2.09
bin-true no-host 2.9 1.6 17.7 7.9 7.7 6.12 2.73
configure.cpython no-host 27.4 27.4 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.3 20.6 1.00 0.99
configure.tcc no-host 19.3 19.4 19.4 19.5 19.3 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.3 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 24.4 0.99 0.99
hello-world no-host 2.9 1.4 17.6 6.0 5.8 6.09 2.09

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.0 3,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 834 1 2 2.6 7.9 154,745 13,282 2,884 9,745 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 16,236 1 67 15.0 27.5 1,772,727 49,952 28,593 86,398 908,077 778,252 25,733 60 50,000 0
configure.util-linux no-host 15,199 3 67 21.3 30.1 2,703,495 29,752 65,877 109,676 1,320,583 1,273,236 32,239 41 131,754 1
configure.ocaml no-host 4,015 1 2 2.6 20.3 150,101 11,129 5,223 7,532 71,610 70,959 1,695 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.5 30,586 30,586 0 1,521 14,780 14,285 271 0 50,000 0
configure.yash no-host 1,956 1 3 2.6 24.2 139,754 8,027 6,686 6,337 70,285 63,132 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,329 64,537 42,747 4,572 54,525 57,232 277 3 85,494 1
hello-world no-host 3 0 0 0.2 5.8 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 833 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 16,169 1 67 15.0 27.4 1,772,726 49,112 28,531 86,399 908,077 778,250 25,733 60 50,000 0
configure.util-linux no-host 15,349 4 70 21.3 30.3 2,703,495 44,712 65,815 109,678 1,320,583 1,273,234 32,239 41 131,630 1
configure.ocaml no-host 4,016 1 2 2.6 20.6 150,101 11,067 5,161 7,534 71,610 70,957 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,586 30,586 0 1,523 14,780 14,283 271 0 50,000 0
configure.yash no-host 1,931 1 2 2.6 24.4 139,754 7,965 6,624 6,339 70,285 63,130 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.7 116,328 64,475 42,685 4,573 54,525 57,230 277 3 85,370 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 12 8 4.3 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 491 453 41 21.9 osh-cpython
31 no-host abuild-print-help 23 23 0 9.0 osh-native
39 no-host abuild-print-help 22 16 6 8.7 osh-native-souffle
1 no-host bin-true 675 498 208 2.9 bash
9 no-host bin-true 547 419 138 1.6 dash
17 no-host bin-true 2,413 1,552 1,141 17.7 osh-cpython
25 no-host bin-true 834 573 276 7.9 osh-native
33 no-host bin-true 833 586 261 7.7 osh-native-souffle
2 no-host configure.cpython 15,449 9,427 6,429 27.4 bash
10 no-host configure.cpython 15,430 9,210 6,644 27.4 dash
18 no-host configure.cpython 31,217 18,766 14,487 27.4 osh-cpython
26 no-host configure.cpython 16,236 9,527 6,975 27.5 osh-native
34 no-host configure.cpython 16,169 9,303 6,996 27.4 osh-native-souffle
4 no-host configure.ocaml 3,826 1,625 1,228 20.6 bash
12 no-host configure.ocaml 3,930 1,679 1,270 20.6 dash
20 no-host configure.ocaml 4,944 2,522 1,657 20.6 osh-cpython
28 no-host configure.ocaml 4,015 1,730 1,324 20.3 osh-native
36 no-host configure.ocaml 4,016 1,689 1,364 20.6 osh-native-souffle
5 no-host configure.tcc 48 33 16 19.3 bash
13 no-host configure.tcc 44 26 18 19.4 dash
21 no-host configure.tcc 209 157 56 19.4 osh-cpython
29 no-host configure.tcc 51 35 17 19.5 osh-native
37 no-host configure.tcc 50 27 24 19.3 osh-native-souffle
3 no-host configure.util-linux 14,664 9,160 5,983 30.1 bash
11 no-host configure.util-linux 15,865 9,580 6,770 30.1 dash
19 no-host configure.util-linux 34,274 22,930 12,479 30.3 osh-cpython
27 no-host configure.util-linux 15,199 8,946 6,439 30.1 osh-native
35 no-host configure.util-linux 15,349 9,229 6,307 30.3 osh-native-souffle
6 no-host configure.yash 1,848 1,123 734 24.4 bash
14 no-host configure.yash 1,886 1,073 817 24.4 dash
22 no-host configure.yash 2,634 1,667 1,014 24.2 osh-cpython
30 no-host configure.yash 1,956 1,124 836 24.2 osh-native
38 no-host configure.yash 1,931 1,124 811 24.4 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 55 45 9 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.0 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,501 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,119 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,370 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,148 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,102 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,348 0 0 0 8 0 1,982 61 bash
9 no-host bin-true 66,407 0 0 0 8 0 1,986 69 dash
17 no-host bin-true 771,831 0 0 0 8 0 1,996 254 osh-cpython
25 no-host bin-true 128,851 0 0 0 16 0 1,993 60 osh-native
33 no-host bin-true 123,785 0 0 0 16 0 1,990 107 osh-native-souffle
2 no-host configure.cpython 2,232,513 0 0 0 32,928 0 14,503 1,015 bash
10 no-host configure.cpython 2,239,947 0 0 0 32,992 0 14,601 1,033 dash
18 no-host configure.cpython 6,228,681 0 0 0 27,512 0 13,250 1,361 osh-cpython
26 no-host configure.cpython 2,220,752 0 0 0 27,520 0 13,145 977 osh-native
34 no-host configure.cpython 2,218,375 0 0 0 27,520 0 13,187 1,071 osh-native-souffle
4 no-host configure.ocaml 410,002 0 0 0 5,120 0 1,949 163 bash
12 no-host configure.ocaml 390,996 0 0 0 5,112 0 1,866 134 dash
20 no-host configure.ocaml 646,761 0 0 0 5,112 0 1,853 195 osh-cpython
28 no-host configure.ocaml 412,619 0 0 0 5,120 0 1,933 157 osh-native
36 no-host configure.ocaml 412,181 0 0 0 5,120 0 1,931 153 osh-native-souffle
5 no-host configure.tcc 6,541 0 0 0 104 0 49 9 bash
13 no-host configure.tcc 5,501 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,730 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 7,003 0 0 0 104 0 47 0 osh-native
37 no-host configure.tcc 6,894 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,100,289 0 0 0 42,400 0 18,626 1,177 bash
11 no-host configure.util-linux 2,257,216 0 0 0 42,592 0 17,563 1,069 dash
19 no-host configure.util-linux 5,339,719 8 0 0 39,128 0 16,948 1,250 osh-cpython
27 no-host configure.util-linux 2,008,134 0 0 0 39,128 0 16,935 1,022 osh-native
35 no-host configure.util-linux 1,999,594 2 0 0 39,136 0 16,961 1,044 osh-native-souffle
6 no-host configure.yash 256,446 0 0 0 4,120 0 869 89 bash
14 no-host configure.yash 244,486 0 0 0 3,720 0 867 78 dash
22 no-host configure.yash 387,440 0 0 0 3,728 0 854 88 osh-cpython
30 no-host configure.yash 257,930 0 0 0 3,736 0 849 90 osh-native
38 no-host configure.yash 257,610 0 0 0 3,736 0 848 76 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,748 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 344 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-bce88a19
dash dash-0ebcf347
osh-cpython osh-f7a72244
osh-native osh-172a023e
osh-native-souffle osh-7b0baa9d
host label host id
no-host no-host-556df3ee