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 469 21 20 25.22 1.14
bin-true no-host 645 520 2,288 777 764 3.55 1.21
configure.cpython no-host 14,382 14,422 28,123 14,527 14,654 1.96 1.01
configure.ocaml no-host 3,710 3,630 4,554 3,719 3,707 1.23 1.00
configure.tcc no-host 48 40 201 47 46 4.17 0.98
configure.util-linux no-host 13,429 14,230 30,893 13,714 13,606 2.30 1.02
configure.yash no-host 1,790 1,702 2,391 1,766 1,754 1.34 0.99
hello-world no-host 1 1 55 3 3 43.51 2.15

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,528 1,146 24,360 3,184 3,114 9.64 1.26
bin-true no-host 109,344 66,527 790,888 127,156 124,185 7.23 1.16
configure.cpython no-host 1,996,458 2,023,624 6,118,365 2,011,448 2,007,381 3.06 1.01
configure.ocaml no-host 373,343 354,195 618,010 376,966 376,396 1.66 1.01
configure.tcc no-host 6,082 5,011 24,049 6,491 6,445 3.95 1.07
configure.util-linux no-host 1,911,095 2,074,904 5,350,303 1,826,543 1,804,697 2.80 0.96
configure.yash no-host 233,647 221,701 368,542 235,800 235,512 1.58 1.01
hello-world no-host 148 75 4,005 347 343 27.06 2.34

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.9 9.2 8.7 5.13 2.06
bin-true no-host 3.0 1.6 18.7 8.0 7.7 6.20 2.65
configure.cpython no-host 29.1 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.4 19.7 19.8 19.5 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.1 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.3 26.4 26.5 26.4 1.00 1.01
hello-world no-host 2.8 1.4 18.3 6.4 5.9 6.65 2.33

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.4 3,810 3,810 0 702 1,870 1,238 2 0 50,000 0
bin-true no-host 777 1 2 2.6 8.0 156,777 15,416 2,903 8,754 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 14,527 1 68 15.2 29.2 1,785,027 49,179 25,898 91,515 886,574 806,938 25,736 62 50,000 0
configure.util-linux no-host 13,714 3 65 21.6 30.3 2,709,226 56,216 66,561 114,377 1,295,038 1,299,811 32,241 42 133,122 1
configure.ocaml no-host 3,719 1 2 2.7 22.6 149,879 12,467 6,510 7,749 70,874 71,256 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.8 30,580 30,580 0 1,544 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,766 1 2 2.6 26.5 139,886 8,047 6,702 6,399 68,339 65,148 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,340 64,422 42,627 4,546 54,461 57,333 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,809 3,809 0 703 1,870 1,236 2 0 50,000 0
bin-true no-host 764 1 2 2.6 7.7 156,776 15,411 2,898 8,755 77,337 70,684 3,008 3 50,000 0
configure.cpython no-host 14,654 2 72 15.2 29.2 1,785,026 49,166 25,885 91,516 886,574 806,936 25,736 62 50,000 0
configure.util-linux no-host 13,606 3 65 21.6 30.3 2,709,226 56,191 66,554 114,379 1,295,038 1,299,809 32,241 42 133,108 1
configure.ocaml no-host 3,707 1 2 2.7 22.6 149,879 12,461 6,504 7,751 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 46 0 0 1.3 19.5 30,580 30,580 0 1,546 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,754 1 2 2.6 26.4 139,886 8,036 6,691 6,401 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,339 64,417 42,622 4,547 54,461 57,331 277 3 85,244 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 8 11 4.5 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 469 411 61 22.9 osh-cpython
31 no-host abuild-print-help 21 12 10 9.2 osh-native
39 no-host abuild-print-help 20 11 10 8.7 osh-native-souffle
1 no-host bin-true 645 308 370 3.0 bash
9 no-host bin-true 520 288 244 1.6 dash
17 no-host bin-true 2,288 838 1,707 18.7 osh-cpython
25 no-host bin-true 777 299 495 8.0 osh-native
33 no-host bin-true 764 305 477 7.7 osh-native-souffle
2 no-host configure.cpython 14,382 6,585 8,210 29.1 bash
10 no-host configure.cpython 14,422 6,584 8,275 29.2 dash
18 no-host configure.cpython 28,123 14,168 15,823 29.2 osh-cpython
26 no-host configure.cpython 14,527 6,391 8,429 29.2 osh-native
34 no-host configure.cpython 14,654 6,491 8,333 29.2 osh-native-souffle
4 no-host configure.ocaml 3,710 1,284 1,466 22.6 bash
12 no-host configure.ocaml 3,630 1,272 1,379 22.5 dash
20 no-host configure.ocaml 4,554 1,794 1,971 22.6 osh-cpython
28 no-host configure.ocaml 3,719 1,291 1,469 22.6 osh-native
36 no-host configure.ocaml 3,707 1,283 1,463 22.6 osh-native-souffle
5 no-host configure.tcc 48 22 27 19.7 bash
13 no-host configure.tcc 40 22 19 19.4 dash
21 no-host configure.tcc 201 140 64 19.7 osh-cpython
29 no-host configure.tcc 47 23 25 19.8 osh-native
37 no-host configure.tcc 46 22 25 19.5 osh-native-souffle
3 no-host configure.util-linux 13,429 5,849 8,083 30.2 bash
11 no-host configure.util-linux 14,230 5,738 9,010 30.2 dash
19 no-host configure.util-linux 30,893 17,759 14,219 30.1 osh-cpython
27 no-host configure.util-linux 13,714 5,502 8,447 30.3 osh-native
35 no-host configure.util-linux 13,606 5,528 8,315 30.3 osh-native-souffle
6 no-host configure.yash 1,790 905 873 26.3 bash
14 no-host configure.yash 1,702 899 808 26.3 dash
22 no-host configure.yash 2,391 1,331 1,102 26.4 osh-cpython
30 no-host configure.yash 1,766 910 862 26.5 osh-native
38 no-host configure.yash 1,754 879 881 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 55 40 16 18.3 osh-cpython
24 no-host hello-world 3 3 0 6.4 osh-native
32 no-host hello-world 3 1 2 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,528 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,146 0 0 0 8 0 39 4 dash
23 no-host abuild-print-help 24,360 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,184 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,114 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 109,344 0 0 0 8 0 1,991 57 bash
9 no-host bin-true 66,527 0 0 0 8 0 1,986 58 dash
17 no-host bin-true 790,888 0 0 0 8 0 1,992 274 osh-cpython
25 no-host bin-true 127,156 0 0 0 16 0 1,992 205 osh-native
33 no-host bin-true 124,185 0 0 0 16 0 1,991 64 osh-native-souffle
2 no-host configure.cpython 1,996,458 0 0 0 32,928 0 14,257 1,399 bash
10 no-host configure.cpython 2,023,624 0 0 0 32,992 0 14,343 1,476 dash
18 no-host configure.cpython 6,118,365 0 0 0 27,512 0 13,046 1,134 osh-cpython
26 no-host configure.cpython 2,011,448 0 0 0 27,520 0 12,994 1,139 osh-native
34 no-host configure.cpython 2,007,381 0 0 0 27,520 0 13,090 1,251 osh-native-souffle
4 no-host configure.ocaml 373,343 0 0 0 5,120 0 1,946 218 bash
12 no-host configure.ocaml 354,195 0 0 0 5,112 0 1,944 325 dash
20 no-host configure.ocaml 618,010 0 0 0 5,112 0 1,852 222 osh-cpython
28 no-host configure.ocaml 376,966 0 0 0 5,120 0 1,917 224 osh-native
36 no-host configure.ocaml 376,396 0 0 0 5,120 0 1,935 204 osh-native-souffle
5 no-host configure.tcc 6,082 0 0 0 104 0 47 1 bash
13 no-host configure.tcc 5,011 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 24,049 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,491 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,445 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,911,095 1 0 0 42,400 0 18,437 1,345 bash
11 no-host configure.util-linux 2,074,904 0 0 0 42,584 0 17,356 1,411 dash
19 no-host configure.util-linux 5,350,303 0 0 0 39,120 0 17,023 1,402 osh-cpython
27 no-host configure.util-linux 1,826,543 0 0 0 39,128 0 17,001 1,158 osh-native
35 no-host configure.util-linux 1,804,697 0 0 0 39,136 0 17,038 1,194 osh-native-souffle
6 no-host configure.yash 233,647 0 0 0 4,120 0 886 98 bash
14 no-host configure.yash 221,701 0 0 0 3,720 0 872 80 dash
22 no-host configure.yash 368,542 0 0 0 3,728 0 855 107 osh-cpython
30 no-host configure.yash 235,800 0 0 0 3,736 0 850 84 osh-native
38 no-host configure.yash 235,512 0 0 0 3,736 0 851 95 osh-native-souffle
0 no-host hello-world 148 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 4,005 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 343 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-110931f8
dash dash-0ebcf347
osh-cpython osh-49234e9e
osh-native osh-396431ec
osh-native-souffle osh-7517cae4
host label host id
no-host no-host-20fc69f9