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 15 9 527 22 20 34.03 1.40
bin-true no-host 602 435 2,434 796 796 4.05 1.32
configure.cpython no-host 13,661 13,728 29,244 14,447 14,521 2.14 1.06
configure.ocaml no-host 3,638 3,578 4,649 3,696 3,686 1.28 1.02
configure.tcc no-host 45 41 223 48 48 4.92 1.07
configure.util-linux no-host 12,354 13,135 31,960 13,422 13,566 2.59 1.09
configure.yash no-host 1,671 1,616 2,447 1,716 1,689 1.46 1.03
hello-world no-host 1 1 60 3 3 51.23 2.46

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,388 1,182 24,944 3,421 3,272 10.45 1.43
bin-true no-host 98,936 49,414 832,711 136,264 133,310 8.42 1.38
configure.cpython no-host 1,616,968 1,636,961 6,009,370 1,809,733 1,788,136 3.72 1.12
configure.ocaml no-host 298,975 280,819 558,389 316,501 315,290 1.87 1.06
configure.tcc no-host 5,226 4,206 23,878 5,953 5,865 4.57 1.14
configure.util-linux no-host 1,532,745 1,691,331 5,000,166 1,712,494 1,704,276 3.26 1.12
configure.yash no-host 173,482 159,437 316,512 178,973 178,780 1.82 1.03
hello-world no-host 153 85 3,887 384 379 25.41 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.7 3.9 22.8 9.8 9.0 4.83 2.08
bin-true no-host 3.1 1.4 18.1 8.5 8.4 5.74 2.71
configure.cpython no-host 34.3 34.4 34.4 34.5 34.4 1.00 1.01
configure.ocaml no-host 28.8 28.6 28.6 28.6 28.8 0.99 0.99
configure.tcc no-host 26.3 26.3 26.0 26.0 26.3 0.99 0.99
configure.util-linux no-host 39.6 39.9 39.7 39.6 39.9 1.00 1.00
configure.yash no-host 33.4 33.3 33.2 33.3 33.3 1.00 1.00
hello-world no-host 3.3 1.4 18.1 6.8 6.7 5.51 2.08

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.8 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 796 1 2 2.6 8.5 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,447 1 64 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 13,422 2 58 21.4 39.6 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,696 1 2 2.7 28.6 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 48 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,716 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.7 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 796 1 2 2.6 8.4 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,521 1 62 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,566 3 58 21.4 39.9 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,686 1 2 2.7 28.8 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.3 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,689 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.0 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 15 7 10 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 527 467 64 22.8 osh-cpython
31 no-host abuild-print-help 22 9 13 9.8 osh-native
39 no-host abuild-print-help 20 11 9 9.0 osh-native-souffle
1 no-host bin-true 602 312 326 3.1 bash
9 no-host bin-true 435 272 168 1.4 dash
17 no-host bin-true 2,434 913 1,790 18.1 osh-cpython
25 no-host bin-true 796 293 519 8.5 osh-native
33 no-host bin-true 796 297 514 8.4 osh-native-souffle
2 no-host configure.cpython 13,661 7,581 6,450 34.3 bash
10 no-host configure.cpython 13,728 7,354 6,757 34.4 dash
18 no-host configure.cpython 29,244 16,107 15,104 34.4 osh-cpython
26 no-host configure.cpython 14,447 7,345 7,401 34.5 osh-native
34 no-host configure.cpython 14,521 7,325 7,367 34.4 osh-native-souffle
4 no-host configure.ocaml 3,638 1,453 1,224 28.8 bash
12 no-host configure.ocaml 3,578 1,424 1,177 28.6 dash
20 no-host configure.ocaml 4,649 2,054 1,821 28.6 osh-cpython
28 no-host configure.ocaml 3,696 1,458 1,276 28.6 osh-native
36 no-host configure.ocaml 3,686 1,455 1,270 28.8 osh-native-souffle
5 no-host configure.tcc 45 21 25 26.3 bash
13 no-host configure.tcc 41 19 22 26.3 dash
21 no-host configure.tcc 223 163 64 26.0 osh-cpython
29 no-host configure.tcc 48 23 26 26.0 osh-native
37 no-host configure.tcc 48 28 21 26.3 osh-native-souffle
3 no-host configure.util-linux 12,354 6,506 6,303 39.6 bash
11 no-host configure.util-linux 13,135 6,365 7,246 39.9 dash
19 no-host configure.util-linux 31,960 20,072 12,967 39.7 osh-cpython
27 no-host configure.util-linux 13,422 6,359 7,293 39.6 osh-native
35 no-host configure.util-linux 13,566 6,263 7,382 39.9 osh-native-souffle
6 no-host configure.yash 1,671 896 782 33.4 bash
14 no-host configure.yash 1,616 904 714 33.3 dash
22 no-host configure.yash 2,447 1,466 1,023 33.2 osh-cpython
30 no-host configure.yash 1,716 972 747 33.3 osh-native
38 no-host configure.yash 1,689 969 722 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 60 35 25 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 2 1 6.7 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,388 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,182 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,944 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,421 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,272 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 98,936 0 0 0 8 0 1,986 63 bash
9 no-host bin-true 49,414 0 0 0 8 0 2,963 60 dash
17 no-host bin-true 832,711 0 0 0 8 0 1,992 113 osh-cpython
25 no-host bin-true 136,264 0 0 0 16 0 1,978 74 osh-native
33 no-host bin-true 133,310 0 0 0 16 0 1,970 81 osh-native-souffle
2 no-host configure.cpython 1,616,968 0 0 0 25,272 0 14,033 1,033 bash
10 no-host configure.cpython 1,636,961 0 0 0 25,272 0 14,068 1,041 dash
18 no-host configure.cpython 6,009,370 0 0 0 25,272 0 12,870 870 osh-cpython
26 no-host configure.cpython 1,809,733 0 0 0 25,280 0 12,864 1,025 osh-native
34 no-host configure.cpython 1,788,136 0 0 0 25,280 0 12,842 1,029 osh-native-souffle
4 no-host configure.ocaml 298,975 0 0 0 4,432 0 2,008 180 bash
12 no-host configure.ocaml 280,819 0 0 0 4,432 0 2,107 204 dash
20 no-host configure.ocaml 558,389 0 0 0 4,432 0 1,918 184 osh-cpython
28 no-host configure.ocaml 316,501 0 0 0 4,440 0 1,999 205 osh-native
36 no-host configure.ocaml 315,290 0 0 0 4,440 0 2,001 193 osh-native-souffle
5 no-host configure.tcc 5,226 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,206 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,878 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,953 0 0 0 96 0 46 4 osh-native
37 no-host configure.tcc 5,865 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,532,745 1 0 0 35,944 0 18,921 1,041 bash
11 no-host configure.util-linux 1,691,331 1 0 0 35,936 0 17,038 1,282 dash
19 no-host configure.util-linux 5,000,166 0 0 0 35,952 0 17,494 886 osh-cpython
27 no-host configure.util-linux 1,712,494 0 0 0 35,944 0 17,490 1,194 osh-native
35 no-host configure.util-linux 1,704,276 0 0 0 35,952 0 17,478 1,094 osh-native-souffle
6 no-host configure.yash 173,482 0 0 0 3,616 0 874 104 bash
14 no-host configure.yash 159,437 0 0 0 3,624 0 1,000 106 dash
22 no-host configure.yash 316,512 0 0 0 3,616 0 861 109 osh-cpython
30 no-host configure.yash 178,973 0 0 0 3,624 0 855 103 osh-native
38 no-host configure.yash 178,780 0 0 0 3,624 0 858 98 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,887 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-fc98135a
dash dash-cea41b3e
osh-cpython osh-7ea1d4ee
osh-native osh-a9b89d23
osh-native-souffle osh-9925c8e9
host label host id
no-host no-host-2411472