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 537 22 21 34.46 1.41
bin-true no-host 613 434 2,450 797 792 4.00 1.30
configure.cpython no-host 13,843 13,830 29,294 14,725 15,196 2.12 1.06
configure.ocaml no-host 3,646 3,598 4,643 3,767 3,711 1.27 1.03
configure.tcc no-host 46 42 222 48 48 4.83 1.05
configure.util-linux no-host 12,556 13,291 32,316 13,796 13,803 2.57 1.10
configure.yash no-host 1,704 1,646 2,428 1,718 1,715 1.42 1.01
hello-world no-host 1 1 60 3 3 50.97 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,416 1,151 24,728 3,474 3,362 10.24 1.44
bin-true no-host 101,940 49,406 843,515 136,295 134,260 8.27 1.34
configure.cpython no-host 1,629,080 1,643,344 5,980,659 1,792,784 1,793,512 3.67 1.10
configure.ocaml no-host 298,765 280,589 557,566 316,413 316,041 1.87 1.06
configure.tcc no-host 5,220 4,221 23,942 5,942 5,845 4.59 1.14
configure.util-linux no-host 1,539,762 1,701,678 4,982,888 1,713,712 1,709,286 3.24 1.11
configure.yash no-host 173,473 159,558 315,985 179,123 178,894 1.82 1.03
hello-world no-host 152 86 3,871 386 378 25.47 2.54

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 5.0 3.9 22.8 9.8 9.2 4.57 1.97
bin-true no-host 3.1 1.6 18.3 8.5 8.3 5.83 2.71
configure.cpython no-host 34.4 34.6 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.5 28.8 28.6 28.6 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.2 26.2 26.1 1.00 1.00
configure.util-linux no-host 39.9 39.9 39.7 39.9 39.5 1.00 1.00
configure.yash no-host 33.4 33.4 33.5 33.4 33.1 1.00 1.00
hello-world no-host 3.1 1.6 18.1 7.2 6.4 5.74 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 7.2 3,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.5 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,725 1 65 15.2 34.5 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 13,796 3 60 21.4 39.9 2,707,123 126,355 66,587 113,463 1,294,568 1,299,092 32,539 41 133,174 1
configure.ocaml no-host 3,767 1 2 2.7 28.6 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.2 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,718 1 2 2.6 33.4 140,018 8,081 6,715 6,526 68,348 65,144 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,369 64,439 42,640 4,562 54,472 57,335 277 3 85,280 1
hello-world no-host 3 0 0 0.3 6.4 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 792 1 2 2.6 8.3 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 15,196 1 66 15.2 34.4 1,782,989 46,088 25,353 91,623 885,112 806,254 25,789 62 50,000 0
configure.util-linux no-host 13,803 3 60 21.4 39.5 2,707,123 126,348 66,580 113,465 1,294,568 1,299,090 32,539 41 133,160 1
configure.ocaml no-host 3,711 1 2 2.7 28.7 149,874 12,471 6,514 7,821 70,840 71,213 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.1 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,715 1 2 2.6 33.1 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,368 64,434 42,635 4,563 54,472 57,333 277 3 85,270 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 5.0 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 537 481 60 22.8 osh-cpython
31 no-host abuild-print-help 22 12 11 9.8 osh-native
39 no-host abuild-print-help 21 11 10 9.2 osh-native-souffle
1 no-host bin-true 613 298 350 3.1 bash
9 no-host bin-true 434 270 169 1.6 dash
17 no-host bin-true 2,450 897 1,818 18.3 osh-cpython
25 no-host bin-true 797 313 500 8.5 osh-native
33 no-host bin-true 792 302 505 8.3 osh-native-souffle
2 no-host configure.cpython 13,843 7,435 6,778 34.4 bash
10 no-host configure.cpython 13,830 7,569 6,645 34.6 dash
18 no-host configure.cpython 29,294 16,042 15,183 34.5 osh-cpython
26 no-host configure.cpython 14,725 7,424 7,587 34.5 osh-native
34 no-host configure.cpython 15,196 7,469 7,631 34.4 osh-native-souffle
4 no-host configure.ocaml 3,646 1,433 1,250 28.5 bash
12 no-host configure.ocaml 3,598 1,465 1,156 28.8 dash
20 no-host configure.ocaml 4,643 2,141 1,723 28.6 osh-cpython
28 no-host configure.ocaml 3,767 1,473 1,332 28.6 osh-native
36 no-host configure.ocaml 3,711 1,522 1,227 28.7 osh-native-souffle
5 no-host configure.tcc 46 22 25 26.2 bash
13 no-host configure.tcc 42 21 22 26.2 dash
21 no-host configure.tcc 222 153 73 26.2 osh-cpython
29 no-host configure.tcc 48 23 26 26.2 osh-native
37 no-host configure.tcc 48 27 22 26.1 osh-native-souffle
3 no-host configure.util-linux 12,556 6,550 6,453 39.9 bash
11 no-host configure.util-linux 13,291 6,357 7,412 39.9 dash
19 no-host configure.util-linux 32,316 20,190 13,189 39.7 osh-cpython
27 no-host configure.util-linux 13,796 6,441 7,582 39.9 osh-native
35 no-host configure.util-linux 13,803 6,192 7,681 39.5 osh-native-souffle
6 no-host configure.yash 1,704 922 790 33.4 bash
14 no-host configure.yash 1,646 965 682 33.4 dash
22 no-host configure.yash 2,428 1,421 1,046 33.5 osh-cpython
30 no-host configure.yash 1,718 977 742 33.4 osh-native
38 no-host configure.yash 1,715 917 800 33.1 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 60 45 15 18.1 osh-cpython
24 no-host hello-world 3 3 0 7.2 osh-native
32 no-host hello-world 3 1 2 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,416 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,151 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,728 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,474 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,362 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 101,940 0 0 0 8 0 1,981 78 bash
9 no-host bin-true 49,406 0 0 0 8 0 2,979 52 dash
17 no-host bin-true 843,515 0 0 0 8 0 1,998 151 osh-cpython
25 no-host bin-true 136,295 0 0 0 16 0 1,988 103 osh-native
33 no-host bin-true 134,260 0 0 0 16 0 1,987 113 osh-native-souffle
2 no-host configure.cpython 1,629,080 0 0 0 25,272 0 14,060 1,054 bash
10 no-host configure.cpython 1,643,344 0 0 0 25,272 0 14,073 1,062 dash
18 no-host configure.cpython 5,980,659 0 0 0 25,272 0 12,886 836 osh-cpython
26 no-host configure.cpython 1,792,784 0 0 0 25,280 0 12,833 1,092 osh-native
34 no-host configure.cpython 1,793,512 0 0 0 25,280 0 12,827 1,023 osh-native-souffle
4 no-host configure.ocaml 298,765 0 0 0 4,432 0 2,007 205 bash
12 no-host configure.ocaml 280,589 0 0 0 4,432 0 2,097 200 dash
20 no-host configure.ocaml 557,566 0 0 0 4,432 0 1,914 199 osh-cpython
28 no-host configure.ocaml 316,413 0 0 0 4,440 0 1,995 198 osh-native
36 no-host configure.ocaml 316,041 0 0 0 4,440 0 1,998 203 osh-native-souffle
5 no-host configure.tcc 5,220 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,221 0 0 0 88 0 51 3 dash
21 no-host configure.tcc 23,942 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,942 0 0 0 96 0 46 3 osh-native
37 no-host configure.tcc 5,845 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,539,762 0 0 0 35,944 0 18,942 1,121 bash
11 no-host configure.util-linux 1,701,678 4 0 0 35,936 0 17,082 1,187 dash
19 no-host configure.util-linux 4,982,888 4 0 0 35,944 0 17,549 942 osh-cpython
27 no-host configure.util-linux 1,713,712 2 0 0 35,944 0 17,516 1,126 osh-native
35 no-host configure.util-linux 1,709,286 3 0 0 35,944 0 17,528 1,051 osh-native-souffle
6 no-host configure.yash 173,473 0 0 0 3,616 0 879 105 bash
14 no-host configure.yash 159,558 0 0 0 3,624 0 997 134 dash
22 no-host configure.yash 315,985 0 0 0 3,616 0 862 112 osh-cpython
30 no-host configure.yash 179,123 0 0 0 3,624 0 861 243 osh-native
38 no-host configure.yash 178,894 0 0 0 3,624 0 859 108 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,871 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 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d0341d56
dash dash-cea41b3e
osh-cpython osh-2050e43e
osh-native osh-29a00a9b
osh-native-souffle osh-fc2a9154
host label host id
no-host no-host-31404de8