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 543 22 21 33.39 1.35
bin-true no-host 612 440 2,467 820 806 4.03 1.34
configure.cpython no-host 13,566 14,093 31,176 15,226 15,319 2.30 1.12
configure.ocaml no-host 3,615 3,711 4,812 3,794 3,819 1.33 1.05
configure.tcc no-host 45 42 227 49 49 5.01 1.09
configure.util-linux no-host 12,347 13,631 34,961 14,102 14,065 2.83 1.14
configure.yash no-host 1,723 1,700 2,522 1,784 1,772 1.46 1.04
hello-world no-host 1 1 65 3 3 53.19 2.44

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,399 1,156 24,906 3,479 3,341 10.38 1.45
bin-true no-host 101,915 49,423 833,659 139,283 136,318 8.18 1.37
configure.cpython no-host 1,617,261 1,639,926 5,994,101 1,820,790 1,795,176 3.71 1.13
configure.ocaml no-host 298,585 280,802 557,406 316,580 316,629 1.87 1.06
configure.tcc no-host 5,213 4,209 23,913 5,922 5,836 4.59 1.14
configure.util-linux no-host 1,535,119 1,696,855 5,004,526 1,711,560 1,696,494 3.26 1.11
configure.yash no-host 173,555 159,535 316,204 179,631 178,613 1.82 1.04
hello-world no-host 154 83 3,884 387 374 25.22 2.51

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.6 3.9 22.7 9.8 9.2 4.94 2.14
bin-true no-host 3.1 1.6 18.2 8.9 8.5 5.79 2.83
configure.cpython no-host 34.5 34.7 34.4 34.5 34.5 1.00 1.00
configure.ocaml no-host 28.5 28.7 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.0 26.2 1.00 0.99
configure.util-linux no-host 39.6 39.5 39.7 39.7 39.5 1.00 1.00
configure.yash no-host 33.1 33.4 33.4 33.1 33.5 1.01 1.00
hello-world no-host 3.3 1.6 18.1 7.1 6.4 5.51 2.16

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 820 1 2 2.6 8.9 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 15,226 1 69 15.2 34.5 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,102 3 65 21.4 39.7 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,794 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.0 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,784 1 2 2.6 33.1 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.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 806 1 2 2.6 8.5 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 15,319 2 69 15.2 34.5 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,065 3 64 21.4 39.5 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,819 1 2 2.7 28.6 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 49 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,772 1 2 2.6 33.5 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 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.6 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 543 486 61 22.7 osh-cpython
31 no-host abuild-print-help 22 12 10 9.8 osh-native
39 no-host abuild-print-help 21 14 8 9.2 osh-native-souffle
1 no-host bin-true 612 298 351 3.1 bash
9 no-host bin-true 440 271 175 1.6 dash
17 no-host bin-true 2,467 862 1,883 18.2 osh-cpython
25 no-host bin-true 820 291 545 8.9 osh-native
33 no-host bin-true 806 313 510 8.5 osh-native-souffle
2 no-host configure.cpython 13,566 7,374 6,553 34.5 bash
10 no-host configure.cpython 14,093 7,759 6,729 34.7 dash
18 no-host configure.cpython 31,176 16,960 16,315 34.4 osh-cpython
26 no-host configure.cpython 15,226 7,551 7,987 34.5 osh-native
34 no-host configure.cpython 15,319 7,680 7,788 34.5 osh-native-souffle
4 no-host configure.ocaml 3,615 1,394 1,259 28.5 bash
12 no-host configure.ocaml 3,711 1,477 1,257 28.7 dash
20 no-host configure.ocaml 4,812 2,152 1,892 28.7 osh-cpython
28 no-host configure.ocaml 3,794 1,528 1,308 28.7 osh-native
36 no-host configure.ocaml 3,819 1,510 1,349 28.6 osh-native-souffle
5 no-host configure.tcc 45 22 24 26.2 bash
13 no-host configure.tcc 42 23 19 26.2 dash
21 no-host configure.tcc 227 165 65 26.2 osh-cpython
29 no-host configure.tcc 49 28 22 26.0 osh-native
37 no-host configure.tcc 49 28 21 26.2 osh-native-souffle
3 no-host configure.util-linux 12,347 6,495 6,301 39.6 bash
11 no-host configure.util-linux 13,631 6,584 7,534 39.5 dash
19 no-host configure.util-linux 34,961 21,679 14,469 39.7 osh-cpython
27 no-host configure.util-linux 14,102 6,581 7,761 39.7 osh-native
35 no-host configure.util-linux 14,065 6,456 7,685 39.5 osh-native-souffle
6 no-host configure.yash 1,723 964 767 33.1 bash
14 no-host configure.yash 1,700 979 720 33.4 dash
22 no-host configure.yash 2,522 1,481 1,086 33.4 osh-cpython
30 no-host configure.yash 1,784 964 818 33.1 osh-native
38 no-host configure.yash 1,772 978 795 33.5 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 65 49 15 18.1 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 3 0 6.4 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,399 0 0 0 8 0 40 0 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,906 0 0 0 8 0 46 6 osh-cpython
31 no-host abuild-print-help 3,479 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,341 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 101,915 0 0 0 8 0 1,988 76 bash
9 no-host bin-true 49,423 0 0 0 8 0 2,970 59 dash
17 no-host bin-true 833,659 0 0 0 8 0 1,997 154 osh-cpython
25 no-host bin-true 139,283 0 0 0 16 0 1,976 99 osh-native
33 no-host bin-true 136,318 0 0 0 16 0 1,975 76 osh-native-souffle
2 no-host configure.cpython 1,617,261 0 0 0 25,272 0 14,023 1,240 bash
10 no-host configure.cpython 1,639,926 0 0 0 25,272 0 14,080 1,057 dash
18 no-host configure.cpython 5,994,101 0 0 0 25,272 0 12,861 931 osh-cpython
26 no-host configure.cpython 1,820,790 0 0 0 25,280 0 12,835 1,079 osh-native
34 no-host configure.cpython 1,795,176 0 0 0 25,280 0 12,820 1,119 osh-native-souffle
4 no-host configure.ocaml 298,585 0 0 0 4,432 0 2,015 186 bash
12 no-host configure.ocaml 280,802 0 0 0 4,432 0 2,094 205 dash
20 no-host configure.ocaml 557,406 0 0 0 4,432 0 1,910 175 osh-cpython
28 no-host configure.ocaml 316,580 0 0 0 4,440 0 2,000 212 osh-native
36 no-host configure.ocaml 316,629 0 0 0 4,440 0 2,000 200 osh-native-souffle
5 no-host configure.tcc 5,213 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,209 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,913 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,922 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,836 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,535,119 0 0 0 35,944 0 18,964 1,068 bash
11 no-host configure.util-linux 1,696,855 0 0 0 35,944 0 17,104 1,276 dash
19 no-host configure.util-linux 5,004,526 4 0 0 35,952 0 17,510 849 osh-cpython
27 no-host configure.util-linux 1,711,560 1 0 0 35,952 0 17,504 1,048 osh-native
35 no-host configure.util-linux 1,696,494 1 0 0 35,952 0 17,496 1,063 osh-native-souffle
6 no-host configure.yash 173,555 0 0 0 3,616 0 878 101 bash
14 no-host configure.yash 159,535 0 0 0 3,616 0 991 99 dash
22 no-host configure.yash 316,204 0 0 0 3,616 0 858 95 osh-cpython
30 no-host configure.yash 179,631 0 0 0 3,624 0 855 89 osh-native
38 no-host configure.yash 178,613 0 0 0 3,624 0 853 97 osh-native-souffle
0 no-host hello-world 154 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,884 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 387 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-36183ffb
dash dash-cea41b3e
osh-cpython osh-8c1a7ab0
osh-native osh-5fc96691
osh-native-souffle osh-09e42367
host label host id
no-host no-host-2411472