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 467 22 22 24.18 1.14
bin-true no-host 696 544 2,262 808 810 3.25 1.16
configure.cpython no-host 14,996 15,005 28,710 15,176 15,257 1.91 1.01
configure.ocaml no-host 3,783 3,724 4,633 3,811 3,872 1.22 1.01
configure.tcc no-host 47 41 203 48 48 4.30 1.02
configure.util-linux no-host 13,980 14,810 31,460 14,286 14,284 2.25 1.02
configure.yash no-host 1,817 1,765 2,464 1,819 1,813 1.36 1.00
hello-world no-host 1 1 59 3 3 40.29 1.93

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,517 1,091 23,751 3,217 3,106 9.44 1.28
bin-true no-host 106,371 65,447 764,384 125,341 126,254 7.19 1.18
configure.cpython no-host 2,222,621 2,236,088 6,216,130 2,224,847 2,210,971 2.80 1.00
configure.ocaml no-host 410,779 391,265 646,417 412,884 412,217 1.57 1.01
configure.tcc no-host 6,573 5,478 24,034 6,974 6,915 3.66 1.06
configure.util-linux no-host 2,105,548 2,261,747 5,374,280 1,993,447 1,992,497 2.55 0.95
configure.yash no-host 256,330 243,012 387,625 258,438 258,142 1.51 1.01
hello-world no-host 151 83 3,941 341 338 26.10 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.4 9.0 8.5 5.03 2.03
bin-true no-host 2.9 1.4 18.4 7.9 7.5 6.37 2.73
configure.cpython no-host 27.4 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.3 20.4 20.6 0.99 0.99
configure.tcc no-host 19.3 19.3 19.3 19.4 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.0 30.3 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.8 1.6 18.4 6.3 5.9 6.67 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 808 1 2 2.6 7.9 153,746 12,267 2,887 8,743 78,327 66,676 3,008 3 50,000 0
configure.cpython no-host 15,176 1 61 14.9 27.5 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,286 2 59 21.2 30.0 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,811 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 48 0 0 1.3 19.4 30,586 30,586 0 1,518 14,782 14,286 271 0 50,000 0
configure.yash no-host 1,819 1 2 2.5 24.4 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 810 1 2 2.6 7.5 153,745 12,111 2,825 8,744 78,327 66,674 3,008 3 50,000 0
configure.cpython no-host 15,257 1 61 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,284 3 60 21.2 30.3 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,872 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.4 30,586 30,586 0 1,520 14,782 14,284 271 0 50,000 0
configure.yash no-host 1,813 1 2 2.5 24.4 139,412 7,962 6,624 5,991 70,287 63,134 2,095 3 50,000 0
abuild-print-help no-host 22 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 10 10 4.5 bash
15 no-host abuild-print-help 9 8 1 3.5 dash
23 no-host abuild-print-help 467 433 37 22.4 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
39 no-host abuild-print-help 22 15 7 8.5 osh-native-souffle
1 no-host bin-true 696 487 241 2.9 bash
9 no-host bin-true 544 418 135 1.4 dash
17 no-host bin-true 2,262 1,475 1,039 18.4 osh-cpython
25 no-host bin-true 808 554 270 7.9 osh-native
33 no-host bin-true 810 567 258 7.5 osh-native-souffle
2 no-host configure.cpython 14,996 9,070 6,321 27.4 bash
10 no-host configure.cpython 15,005 9,104 6,305 27.4 dash
18 no-host configure.cpython 28,710 17,509 13,048 27.4 osh-cpython
26 no-host configure.cpython 15,176 9,048 6,396 27.5 osh-native
34 no-host configure.cpython 15,257 8,811 6,572 27.5 osh-native-souffle
4 no-host configure.ocaml 3,783 1,679 1,140 20.6 bash
12 no-host configure.ocaml 3,724 1,564 1,179 20.6 dash
20 no-host configure.ocaml 4,633 2,179 1,665 20.3 osh-cpython
28 no-host configure.ocaml 3,811 1,650 1,199 20.4 osh-native
36 no-host configure.ocaml 3,872 1,641 1,249 20.6 osh-native-souffle
5 no-host configure.tcc 47 19 29 19.3 bash
13 no-host configure.tcc 41 24 18 19.3 dash
21 no-host configure.tcc 203 154 52 19.3 osh-cpython
29 no-host configure.tcc 48 41 7 19.4 osh-native
37 no-host configure.tcc 48 25 24 19.4 osh-native-souffle
3 no-host configure.util-linux 13,980 8,795 5,655 30.1 bash
11 no-host configure.util-linux 14,810 9,045 6,261 30.1 dash
19 no-host configure.util-linux 31,460 20,936 11,578 30.1 osh-cpython
27 no-host configure.util-linux 14,286 8,686 5,785 30.0 osh-native
35 no-host configure.util-linux 14,284 8,580 5,897 30.3 osh-native-souffle
6 no-host configure.yash 1,817 1,073 752 24.2 bash
14 no-host configure.yash 1,765 971 797 24.2 dash
22 no-host configure.yash 2,464 1,608 895 24.4 osh-cpython
30 no-host configure.yash 1,819 1,057 765 24.4 osh-native
38 no-host configure.yash 1,813 1,070 747 24.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 59 38 21 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 0 3 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,517 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,751 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,106 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,371 0 0 0 8 0 1,991 117 bash
9 no-host bin-true 65,447 0 0 0 8 0 1,993 31 dash
17 no-host bin-true 764,384 0 0 0 8 0 1,994 99 osh-cpython
25 no-host bin-true 125,341 0 0 0 16 0 1,991 78 osh-native
33 no-host bin-true 126,254 0 0 0 16 0 1,984 131 osh-native-souffle
2 no-host configure.cpython 2,222,621 1 0 0 32,928 0 14,553 1,070 bash
10 no-host configure.cpython 2,236,088 0 0 0 32,992 0 14,685 920 dash
18 no-host configure.cpython 6,216,130 0 0 0 27,512 0 13,291 1,251 osh-cpython
26 no-host configure.cpython 2,224,847 1 0 0 27,520 0 13,252 939 osh-native
34 no-host configure.cpython 2,210,971 0 0 0 27,520 0 13,257 994 osh-native-souffle
4 no-host configure.ocaml 410,779 0 0 0 5,120 0 1,957 149 bash
12 no-host configure.ocaml 391,265 0 0 0 5,112 0 1,937 146 dash
20 no-host configure.ocaml 646,417 1 0 0 5,112 0 1,856 193 osh-cpython
28 no-host configure.ocaml 412,884 0 0 0 5,120 0 1,931 143 osh-native
36 no-host configure.ocaml 412,217 0 0 0 5,120 0 1,937 149 osh-native-souffle
5 no-host configure.tcc 6,573 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,034 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,974 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,915 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,105,548 0 0 0 42,400 0 18,577 1,229 bash
11 no-host configure.util-linux 2,261,747 1 0 0 42,584 0 17,522 1,043 dash
19 no-host configure.util-linux 5,374,280 6 0 0 39,112 0 16,953 1,219 osh-cpython
27 no-host configure.util-linux 1,993,447 0 0 0 39,128 0 16,978 967 osh-native
35 no-host configure.util-linux 1,992,497 0 0 0 39,136 0 16,933 958 osh-native-souffle
6 no-host configure.yash 256,330 0 0 0 4,120 0 872 78 bash
14 no-host configure.yash 243,012 0 0 0 3,720 0 862 82 dash
22 no-host configure.yash 387,625 0 0 0 3,728 0 852 229 osh-cpython
30 no-host configure.yash 258,438 0 0 0 3,736 0 850 84 osh-native
38 no-host configure.yash 258,142 0 0 0 3,736 0 853 65 osh-native-souffle
0 no-host hello-world 151 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,941 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ea52d70e
dash dash-0ebcf347
osh-cpython osh-c5e4fd2a
osh-native osh-61a2e385
osh-native-souffle osh-77d4d523
host label host id
no-host no-host-556df3ee