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 16 9 532 22 20 33.96 1.39
bin-true no-host 612 443 2,454 801 797 4.01 1.31
configure.cpython no-host 13,947 14,172 29,441 14,725 14,758 2.11 1.06
configure.ocaml no-host 3,718 3,656 4,657 3,769 3,708 1.25 1.01
configure.tcc no-host 46 41 224 49 48 4.91 1.07
configure.util-linux no-host 12,754 13,490 32,121 13,751 13,671 2.52 1.08
configure.yash no-host 1,713 1,668 2,458 1,750 1,715 1.44 1.02
hello-world no-host 1 1 61 3 3 51.23 2.36

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,368 1,154 24,925 3,442 3,363 10.53 1.45
bin-true no-host 101,924 49,436 837,094 136,300 135,285 8.21 1.34
configure.cpython no-host 1,618,570 1,640,966 5,964,182 1,804,346 1,796,168 3.68 1.11
configure.ocaml no-host 298,826 280,455 557,146 316,256 316,653 1.86 1.06
configure.tcc no-host 5,203 4,194 23,729 5,982 5,886 4.56 1.15
configure.util-linux no-host 1,534,378 1,694,553 4,967,115 1,727,387 1,703,236 3.24 1.13
configure.yash no-host 173,515 159,483 315,520 178,964 178,957 1.82 1.03
hello-world no-host 151 87 3,872 386 374 25.64 2.56

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.7 3.9 22.8 9.8 9.2 4.83 2.08
bin-true no-host 3.1 1.4 18.2 8.8 8.3 5.79 2.79
configure.cpython no-host 34.4 34.7 34.3 34.7 34.4 1.00 1.01
configure.ocaml no-host 28.8 28.8 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.3 26.1 26.3 26.2 1.00 1.01
configure.util-linux no-host 39.5 39.7 39.7 39.8 39.7 1.01 1.01
configure.yash no-host 33.4 33.5 33.1 33.3 33.3 0.99 1.00
hello-world no-host 3.1 1.6 18.1 7.1 6.3 5.74 2.25

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 7.1 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 801 1 2 2.6 8.8 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,725 1 66 15.2 34.7 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,751 3 62 21.4 39.8 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,769 1 2 2.7 28.7 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,750 1 2 2.6 33.3 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.3 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.3 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,758 1 65 15.2 34.4 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,671 3 59 21.4 39.7 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,708 1 2 2.7 28.7 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.2 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,715 1 2 2.6 33.3 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.2 116,367 64,433 42,634 4,563 54,472 57,332 277 3 85,268 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 16 9 7 4.7 bash
15 no-host abuild-print-help 9 7 2 3.9 dash
23 no-host abuild-print-help 532 475 60 22.8 osh-cpython
31 no-host abuild-print-help 22 13 10 9.8 osh-native
39 no-host abuild-print-help 20 10 11 9.2 osh-native-souffle
1 no-host bin-true 612 310 342 3.1 bash
9 no-host bin-true 443 279 168 1.4 dash
17 no-host bin-true 2,454 893 1,827 18.2 osh-cpython
25 no-host bin-true 801 309 510 8.8 osh-native
33 no-host bin-true 797 295 516 8.3 osh-native-souffle
2 no-host configure.cpython 13,947 7,521 6,803 34.4 bash
10 no-host configure.cpython 14,172 7,658 6,912 34.7 dash
18 no-host configure.cpython 29,441 16,219 15,191 34.3 osh-cpython
26 no-host configure.cpython 14,725 7,523 7,491 34.7 osh-native
34 no-host configure.cpython 14,758 7,347 7,569 34.4 osh-native-souffle
4 no-host configure.ocaml 3,718 1,494 1,259 28.8 bash
12 no-host configure.ocaml 3,656 1,454 1,224 28.8 dash
20 no-host configure.ocaml 4,657 2,090 1,789 28.8 osh-cpython
28 no-host configure.ocaml 3,769 1,496 1,313 28.7 osh-native
36 no-host configure.ocaml 3,708 1,439 1,309 28.7 osh-native-souffle
5 no-host configure.tcc 46 20 26 26.2 bash
13 no-host configure.tcc 41 20 22 26.3 dash
21 no-host configure.tcc 224 156 72 26.1 osh-cpython
29 no-host configure.tcc 49 23 26 26.3 osh-native
37 no-host configure.tcc 48 25 24 26.2 osh-native-souffle
3 no-host configure.util-linux 12,754 6,584 6,635 39.5 bash
11 no-host configure.util-linux 13,490 6,631 7,344 39.7 dash
19 no-host configure.util-linux 32,121 20,036 13,154 39.7 osh-cpython
27 no-host configure.util-linux 13,751 6,440 7,539 39.8 osh-native
35 no-host configure.util-linux 13,671 6,239 7,505 39.7 osh-native-souffle
6 no-host configure.yash 1,713 969 752 33.4 bash
14 no-host configure.yash 1,668 933 736 33.5 dash
22 no-host configure.yash 2,458 1,475 1,025 33.1 osh-cpython
30 no-host configure.yash 1,750 964 789 33.3 osh-native
38 no-host configure.yash 1,715 943 773 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 61 38 23 18.1 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 0 3 6.3 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,368 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,925 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,442 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,363 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 101,924 0 0 0 8 0 1,990 63 bash
9 no-host bin-true 49,436 0 0 0 8 0 2,950 60 dash
17 no-host bin-true 837,094 0 0 0 8 0 1,994 123 osh-cpython
25 no-host bin-true 136,300 0 0 0 16 0 1,985 78 osh-native
33 no-host bin-true 135,285 0 0 0 16 0 1,959 116 osh-native-souffle
2 no-host configure.cpython 1,618,570 0 0 0 25,272 0 14,057 1,055 bash
10 no-host configure.cpython 1,640,966 0 0 0 25,272 0 14,058 1,010 dash
18 no-host configure.cpython 5,964,182 0 0 0 25,272 0 12,871 856 osh-cpython
26 no-host configure.cpython 1,804,346 0 0 0 25,280 0 12,829 1,081 osh-native
34 no-host configure.cpython 1,796,168 0 0 0 25,280 0 12,830 1,114 osh-native-souffle
4 no-host configure.ocaml 298,826 0 0 0 4,432 0 2,016 193 bash
12 no-host configure.ocaml 280,455 0 0 0 4,432 0 2,097 193 dash
20 no-host configure.ocaml 557,146 0 0 0 4,432 0 1,912 187 osh-cpython
28 no-host configure.ocaml 316,256 0 0 0 4,440 0 1,996 209 osh-native
36 no-host configure.ocaml 316,653 0 0 0 4,440 0 1,998 204 osh-native-souffle
5 no-host configure.tcc 5,203 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,194 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,729 0 0 0 88 0 53 7 osh-cpython
29 no-host configure.tcc 5,982 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,886 0 0 0 96 0 46 4 osh-native-souffle
3 no-host configure.util-linux 1,534,378 0 0 0 35,944 0 18,961 1,037 bash
11 no-host configure.util-linux 1,694,553 0 0 0 35,936 0 17,075 1,288 dash
19 no-host configure.util-linux 4,967,115 1 0 0 35,944 0 17,519 933 osh-cpython
27 no-host configure.util-linux 1,727,387 1 0 0 35,944 0 17,457 1,186 osh-native
35 no-host configure.util-linux 1,703,236 0 0 0 35,944 0 17,527 1,123 osh-native-souffle
6 no-host configure.yash 173,515 0 0 0 3,616 0 873 93 bash
14 no-host configure.yash 159,483 0 0 0 3,624 0 998 113 dash
22 no-host configure.yash 315,520 0 0 0 3,616 0 858 105 osh-cpython
30 no-host configure.yash 178,964 0 0 0 3,624 0 854 114 osh-native
38 no-host configure.yash 178,957 0 0 0 3,624 0 855 96 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,872 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 374 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-7f38f958
dash dash-cea41b3e
osh-cpython osh-511ad0df
osh-native osh-94b9799b
osh-native-souffle osh-46b7ab3e
host label host id
no-host no-host-2411472