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 8 362 18 16 22.32 1.12
bin-true no-host 568 404 2,099 648 641 3.70 1.14
configure.cpython no-host 12,394 13,105 25,386 12,043 11,427 2.05 0.97
configure.ocaml no-host 3,287 3,259 3,976 3,038 3,180 1.21 0.92
configure.tcc no-host 38 36 161 36 39 4.28 0.95
configure.util-linux no-host 11,973 12,701 26,788 10,921 10,856 2.24 0.91
configure.yash no-host 1,467 1,428 1,989 1,312 1,384 1.36 0.89
hello-world no-host 1 1 45 2 2 41.91 2.07

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,559 1,091 25,191 3,176 3,140 9.84 1.24
bin-true no-host 106,358 66,421 811,337 131,008 129,033 7.63 1.23
configure.cpython no-host 2,232,611 2,236,507 6,340,529 2,244,082 2,226,551 2.84 1.01
configure.ocaml no-host 410,428 391,584 654,590 414,894 414,462 1.59 1.01
configure.tcc no-host 6,541 5,504 24,496 6,999 6,983 3.74 1.07
configure.util-linux no-host 2,104,200 2,261,654 5,496,832 2,009,818 2,002,709 2.61 0.96
configure.yash no-host 256,020 244,458 392,484 258,017 258,270 1.53 1.01
hello-world no-host 152 83 3,983 351 342 26.20 2.31

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.6 23.0 9.2 8.7 4.97 1.99
bin-true no-host 3.0 1.5 18.8 8.3 7.9 6.36 2.81
configure.cpython no-host 27.7 27.5 27.5 27.5 27.6 0.99 0.99
configure.ocaml no-host 20.7 20.8 20.7 20.7 20.8 1.00 1.00
configure.tcc no-host 19.5 19.5 19.5 19.5 19.5 1.00 1.00
configure.util-linux no-host 30.3 30.3 30.4 30.3 30.3 1.00 1.00
configure.yash no-host 24.5 24.6 24.5 24.6 24.6 1.00 1.00
hello-world no-host 3.0 1.7 18.6 6.5 6.0 6.24 2.19

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 2 0 0 0.3 6.5 3,817 3,817 0 702 1,878 1,237 2 0 50,000 0
bin-true no-host 648 1 2 2.6 8.3 156,784 15,421 2,908 8,754 77,345 70,685 3,008 3 50,000 0
configure.cpython no-host 12,043 2 64 15.5 27.5 1,785,025 30,567 28,534 91,507 886,582 806,936 25,736 61 50,000 0
configure.util-linux no-host 10,921 3 60 21.6 30.3 2,709,224 53,768 65,732 114,374 1,295,044 1,299,806 32,241 41 131,464 1
configure.ocaml no-host 3,038 0 2 2.6 20.7 149,871 11,186 5,229 7,735 70,882 71,254 1,695 3 50,000 0
configure.tcc no-host 36 0 0 1.3 19.5 30,587 30,587 0 1,544 14,644 14,399 271 0 50,000 0
configure.yash no-host 1,312 1 2 2.6 24.6 139,893 8,052 6,707 6,399 68,347 65,147 2,095 3 50,000 0
abuild-print-help no-host 18 1 2 2.8 9.2 116,347 64,424 42,632 4,545 54,469 57,333 277 3 85,264 1
hello-world no-host 2 0 0 0.3 6.0 3,816 3,816 0 703 1,878 1,235 2 0 50,000 0
bin-true no-host 641 1 2 2.6 7.9 156,783 15,416 2,903 8,755 77,345 70,683 3,008 3 50,000 0
configure.cpython no-host 11,427 2 61 15.5 27.6 1,785,024 30,553 28,528 91,508 886,582 806,934 25,736 61 50,000 0
configure.util-linux no-host 10,856 3 57 21.6 30.3 2,709,224 53,743 65,725 114,376 1,295,044 1,299,804 32,241 41 131,450 1
configure.ocaml no-host 3,180 1 2 2.6 20.8 149,871 11,180 5,223 7,737 70,882 71,252 1,695 3 50,000 0
configure.tcc no-host 39 0 0 1.3 19.5 30,587 30,587 0 1,546 14,644 14,397 271 0 50,000 0
configure.yash no-host 1,384 1 2 2.6 24.6 139,893 8,041 6,696 6,401 68,347 65,145 2,095 3 50,000 0
abuild-print-help no-host 16 0 2 2.8 8.7 116,346 64,419 42,627 4,546 54,469 57,331 277 3 85,254 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 11 6 4.6 bash
15 no-host abuild-print-help 8 9 0 3.6 dash
23 no-host abuild-print-help 362 322 43 23.0 osh-cpython
31 no-host abuild-print-help 18 9 9 9.2 osh-native
39 no-host abuild-print-help 16 9 8 8.7 osh-native-souffle
1 no-host bin-true 568 417 171 3.0 bash
9 no-host bin-true 404 305 99 1.5 dash
17 no-host bin-true 2,099 1,224 1,113 18.8 osh-cpython
25 no-host bin-true 648 448 208 8.3 osh-native
33 no-host bin-true 641 436 213 7.9 osh-native-souffle
2 no-host configure.cpython 12,394 7,924 4,773 27.7 bash
10 no-host configure.cpython 13,105 8,557 4,866 27.5 dash
18 no-host configure.cpython 25,386 15,801 11,346 27.5 osh-cpython
26 no-host configure.cpython 12,043 7,729 4,552 27.5 osh-native
34 no-host configure.cpython 11,427 7,162 4,462 27.6 osh-native-souffle
4 no-host configure.ocaml 3,287 1,435 876 20.7 bash
12 no-host configure.ocaml 3,259 1,332 938 20.8 dash
20 no-host configure.ocaml 3,976 1,854 1,282 20.7 osh-cpython
28 no-host configure.ocaml 3,038 1,274 796 20.7 osh-native
36 no-host configure.ocaml 3,180 1,419 787 20.8 osh-native-souffle
5 no-host configure.tcc 38 25 13 19.5 bash
13 no-host configure.tcc 36 23 13 19.5 dash
21 no-host configure.tcc 161 118 45 19.5 osh-cpython
29 no-host configure.tcc 36 23 13 19.5 osh-native
37 no-host configure.tcc 39 32 7 19.5 osh-native-souffle
3 no-host configure.util-linux 11,973 7,928 4,380 30.3 bash
11 no-host configure.util-linux 12,701 8,271 4,817 30.3 dash
19 no-host configure.util-linux 26,788 17,924 9,831 30.4 osh-cpython
27 no-host configure.util-linux 10,921 7,072 3,971 30.3 osh-native
35 no-host configure.util-linux 10,856 6,911 4,072 30.3 osh-native-souffle
6 no-host configure.yash 1,467 895 579 24.5 bash
14 no-host configure.yash 1,428 891 538 24.6 dash
22 no-host configure.yash 1,989 1,231 795 24.5 osh-cpython
30 no-host configure.yash 1,312 811 504 24.6 osh-native
38 no-host configure.yash 1,384 811 575 24.6 osh-native-souffle
0 no-host hello-world 1 1 0 3.0 bash
8 no-host hello-world 1 1 0 1.7 dash
16 no-host hello-world 45 33 12 18.6 osh-cpython
24 no-host hello-world 2 2 0 6.5 osh-native
32 no-host hello-world 2 2 0 6.0 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,559 2 0 88 16 0 42 2 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,191 0 0 0 8 0 45 14 osh-cpython
31 no-host abuild-print-help 3,176 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,140 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 106,358 2 0 64 8 0 2,001 52 bash
9 no-host bin-true 66,421 0 0 0 8 0 1,998 55 dash
17 no-host bin-true 811,337 0 0 0 8 0 2,006 224 osh-cpython
25 no-host bin-true 131,008 0 0 0 16 0 2,001 61 osh-native
33 no-host bin-true 129,033 0 0 0 16 0 2,000 53 osh-native-souffle
2 no-host configure.cpython 2,232,611 17 0 1,416 32,928 0 14,351 1,376 bash
10 no-host configure.cpython 2,236,507 0 0 0 32,992 0 15,610 2,280 dash
18 no-host configure.cpython 6,340,529 0 0 0 27,512 0 13,176 2,073 osh-cpython
26 no-host configure.cpython 2,244,082 3 0 0 27,520 0 13,780 1,367 osh-native
34 no-host configure.cpython 2,226,551 0 0 0 27,520 0 14,252 1,940 osh-native-souffle
4 no-host configure.ocaml 410,428 1 0 384 5,120 0 1,944 256 bash
12 no-host configure.ocaml 391,584 0 0 0 5,112 0 1,927 234 dash
20 no-host configure.ocaml 654,590 0 0 0 5,112 0 1,879 261 osh-cpython
28 no-host configure.ocaml 414,894 0 0 0 5,120 0 1,893 256 osh-native
36 no-host configure.ocaml 414,462 0 0 0 5,120 0 1,908 256 osh-native-souffle
5 no-host configure.tcc 6,541 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,504 0 0 0 96 0 47 5 dash
21 no-host configure.tcc 24,496 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,983 0 0 0 104 0 47 7 osh-native-souffle
3 no-host configure.util-linux 2,104,200 6 0 1,160 42,400 0 19,668 3,310 bash
11 no-host configure.util-linux 2,261,654 3 0 0 42,584 0 19,610 3,925 dash
19 no-host configure.util-linux 5,496,832 8 0 0 39,144 0 17,163 1,947 osh-cpython
27 no-host configure.util-linux 2,009,818 1 0 0 39,128 0 17,025 1,201 osh-native
35 no-host configure.util-linux 2,002,709 0 0 0 39,128 0 17,048 1,220 osh-native-souffle
6 no-host configure.yash 256,020 0 0 0 4,120 0 868 75 bash
14 no-host configure.yash 244,458 0 0 0 3,720 0 873 86 dash
22 no-host configure.yash 392,484 0 0 0 3,728 0 854 92 osh-cpython
30 no-host configure.yash 258,017 0 0 0 3,736 0 851 84 osh-native
38 no-host configure.yash 258,270 0 0 0 3,736 0 850 94 osh-native-souffle
0 no-host hello-world 152 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,983 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-098e1162
dash dash-0ebcf347
osh-cpython osh-5e7933d8
osh-native osh-fd77ecb2
osh-native-souffle osh-24b37908
host label host id
no-host no-host-6df8bfd3