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 473 22 21 25.19 1.17
bin-true no-host 658 524 2,393 791 800 3.64 1.20
configure.cpython no-host 14,659 14,713 28,741 15,101 15,229 1.96 1.03
configure.ocaml no-host 3,742 3,657 4,607 3,829 3,817 1.23 1.02
configure.tcc no-host 46 40 205 50 48 4.41 1.07
configure.util-linux no-host 13,758 14,600 31,403 14,170 14,172 2.28 1.03
configure.yash no-host 1,828 1,730 2,455 1,833 1,827 1.34 1.00
hello-world no-host 1 1 56 3 3 40.82 2.04

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,527 1,097 24,253 3,180 3,081 9.60 1.26
bin-true no-host 105,402 65,402 805,297 128,224 126,201 7.64 1.22
configure.cpython no-host 1,994,842 2,019,295 6,106,631 2,008,519 2,004,903 3.06 1.01
configure.ocaml no-host 373,033 353,702 615,497 376,846 376,157 1.65 1.01
configure.tcc no-host 6,091 5,012 24,010 6,515 6,468 3.94 1.07
configure.util-linux no-host 1,918,284 2,073,297 5,305,084 1,818,248 1,806,054 2.77 0.95
configure.yash no-host 233,299 222,146 369,271 235,323 235,088 1.58 1.01
hello-world no-host 148 76 3,979 348 338 26.89 2.35

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 22.7 9.2 8.7 5.25 2.12
bin-true no-host 2.9 1.4 18.5 8.0 7.6 6.43 2.77
configure.cpython no-host 29.2 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.5 19.7 19.7 19.4 1.00 1.00
configure.util-linux no-host 30.2 30.3 30.3 30.2 30.2 1.00 1.00
configure.yash no-host 26.5 26.3 26.3 26.2 26.4 0.99 0.99
hello-world no-host 2.8 1.4 18.4 6.3 5.9 6.69 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.3 6.3 3,807 3,807 0 701 1,871 1,235 2 0 50,000 0
bin-true no-host 791 1 2 2.6 8.0 156,774 15,416 2,903 8,753 77,338 70,683 3,008 3 50,000 0
configure.cpython no-host 15,101 2 72 15.5 29.2 1,785,015 30,561 28,528 91,506 886,576 806,933 25,736 61 50,000 0
configure.util-linux no-host 14,170 3 66 21.6 30.2 2,709,216 53,763 65,727 114,373 1,295,039 1,299,804 32,241 41 131,454 1
configure.ocaml no-host 3,829 1 2 2.6 22.6 149,861 11,180 5,223 7,734 70,875 71,252 1,695 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.7 30,577 30,577 0 1,543 14,637 14,397 271 0 50,000 0
configure.yash no-host 1,833 1 2 2.6 26.2 139,883 8,047 6,702 6,398 68,340 65,145 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,339 64,421 42,629 4,545 54,463 57,331 277 3 85,258 1
hello-world no-host 3 0 0 0.3 5.9 3,806 3,806 0 702 1,871 1,233 2 0 50,000 0
bin-true no-host 800 1 2 2.6 7.6 156,773 15,411 2,898 8,754 77,338 70,681 3,008 3 50,000 0
configure.cpython no-host 15,229 2 73 15.5 29.2 1,785,014 30,548 28,523 91,507 886,576 806,931 25,736 61 50,000 0
configure.util-linux no-host 14,172 3 66 21.6 30.2 2,709,216 53,740 65,722 114,375 1,295,039 1,299,802 32,241 41 131,444 1
configure.ocaml no-host 3,817 1 2 2.6 22.6 149,861 11,175 5,218 7,736 70,875 71,250 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,577 30,577 0 1,545 14,637 14,395 271 0 50,000 0
configure.yash no-host 1,827 1 2 2.6 26.4 139,883 8,036 6,691 6,400 68,340 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,338 64,416 42,624 4,546 54,463 57,329 277 3 85,248 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 9 10 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 473 415 61 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 9.2 osh-native
39 no-host abuild-print-help 21 13 8 8.7 osh-native-souffle
1 no-host bin-true 658 304 387 2.9 bash
9 no-host bin-true 524 276 261 1.4 dash
17 no-host bin-true 2,393 785 1,871 18.5 osh-cpython
25 no-host bin-true 791 307 502 8.0 osh-native
33 no-host bin-true 800 293 523 7.6 osh-native-souffle
2 no-host configure.cpython 14,659 6,564 8,511 29.2 bash
10 no-host configure.cpython 14,713 6,672 8,483 29.2 dash
18 no-host configure.cpython 28,741 14,224 16,422 29.2 osh-cpython
26 no-host configure.cpython 15,101 6,636 8,758 29.2 osh-native
34 no-host configure.cpython 15,229 6,742 8,779 29.2 osh-native-souffle
4 no-host configure.ocaml 3,742 1,293 1,491 22.6 bash
12 no-host configure.ocaml 3,657 1,322 1,356 22.6 dash
20 no-host configure.ocaml 4,607 1,890 1,934 22.6 osh-cpython
28 no-host configure.ocaml 3,829 1,356 1,516 22.6 osh-native
36 no-host configure.ocaml 3,817 1,328 1,528 22.6 osh-native-souffle
5 no-host configure.tcc 46 19 28 19.7 bash
13 no-host configure.tcc 40 17 24 19.5 dash
21 no-host configure.tcc 205 146 62 19.7 osh-cpython
29 no-host configure.tcc 50 23 27 19.7 osh-native
37 no-host configure.tcc 48 23 26 19.4 osh-native-souffle
3 no-host configure.util-linux 13,758 5,815 8,444 30.2 bash
11 no-host configure.util-linux 14,600 5,903 9,223 30.3 dash
19 no-host configure.util-linux 31,403 18,009 14,489 30.3 osh-cpython
27 no-host configure.util-linux 14,170 5,610 8,777 30.2 osh-native
35 no-host configure.util-linux 14,172 5,662 8,734 30.2 osh-native-souffle
6 no-host configure.yash 1,828 928 902 26.5 bash
14 no-host configure.yash 1,730 889 845 26.3 dash
22 no-host configure.yash 2,455 1,311 1,187 26.3 osh-cpython
30 no-host configure.yash 1,833 910 928 26.2 osh-native
38 no-host configure.yash 1,827 930 902 26.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 56 38 18 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 3 2 1 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,527 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 24,253 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,180 0 0 0 16 0 39 6 osh-native
39 no-host abuild-print-help 3,081 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 105,402 0 0 0 8 0 1,989 350 bash
9 no-host bin-true 65,402 0 0 0 8 0 1,980 136 dash
17 no-host bin-true 805,297 0 0 0 8 0 1,997 685 osh-cpython
25 no-host bin-true 128,224 0 0 0 16 0 1,984 114 osh-native
33 no-host bin-true 126,201 0 0 0 16 0 1,992 274 osh-native-souffle
2 no-host configure.cpython 1,994,842 0 0 0 32,928 0 14,211 1,219 bash
10 no-host configure.cpython 2,019,295 1 0 0 32,992 0 14,318 1,109 dash
18 no-host configure.cpython 6,106,631 0 0 0 27,512 0 13,130 1,230 osh-cpython
26 no-host configure.cpython 2,008,519 0 0 0 27,520 0 13,008 1,172 osh-native
34 no-host configure.cpython 2,004,903 0 0 0 27,520 0 13,011 1,046 osh-native-souffle
4 no-host configure.ocaml 373,033 0 0 0 5,120 0 1,949 194 bash
12 no-host configure.ocaml 353,702 0 0 0 5,112 0 1,933 181 dash
20 no-host configure.ocaml 615,497 0 0 0 5,112 0 1,851 197 osh-cpython
28 no-host configure.ocaml 376,846 0 0 0 5,120 0 1,923 211 osh-native
36 no-host configure.ocaml 376,157 0 0 0 5,120 0 1,920 220 osh-native-souffle
5 no-host configure.tcc 6,091 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,012 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,010 0 0 0 96 0 53 14 osh-cpython
29 no-host configure.tcc 6,515 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,468 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,918,284 0 0 0 42,400 0 18,431 1,252 bash
11 no-host configure.util-linux 2,073,297 0 0 0 42,592 0 17,343 1,330 dash
19 no-host configure.util-linux 5,305,084 9 0 0 39,136 0 17,024 1,398 osh-cpython
27 no-host configure.util-linux 1,818,248 0 0 0 39,120 0 17,005 1,164 osh-native
35 no-host configure.util-linux 1,806,054 1 0 0 39,128 0 16,984 1,104 osh-native-souffle
6 no-host configure.yash 233,299 0 0 0 4,120 0 879 92 bash
14 no-host configure.yash 222,146 0 0 0 3,720 0 870 102 dash
22 no-host configure.yash 369,271 0 0 0 3,728 0 852 93 osh-cpython
30 no-host configure.yash 235,323 0 0 0 3,736 0 847 105 osh-native
38 no-host configure.yash 235,088 0 0 0 3,736 0 849 90 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,979 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 338 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-f0290917
dash dash-0ebcf347
osh-cpython osh-e6fe0813
osh-native osh-949ee51f
osh-native-souffle osh-83768f4f
host label host id
no-host no-host-e4839999