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 18 9 452 21 20 24.51 1.15
bin-true no-host 652 523 2,230 779 785 3.42 1.19
configure.cpython no-host 14,325 14,399 27,542 14,571 14,584 1.92 1.02
configure.ocaml no-host 3,686 3,624 4,498 3,709 3,709 1.22 1.01
configure.tcc no-host 46 40 190 47 47 4.14 1.03
configure.util-linux no-host 13,337 14,220 30,156 13,702 13,623 2.26 1.03
configure.yash no-host 1,754 1,693 2,356 1,762 1,767 1.34 1.00
hello-world no-host 1 1 48 3 3 37.22 2.19

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,538 1,134 22,990 3,162 3,094 9.06 1.25
bin-true no-host 106,321 65,423 763,839 127,265 126,574 7.18 1.20
configure.cpython no-host 2,004,305 2,020,925 5,951,006 2,011,706 1,990,779 2.97 1.00
configure.ocaml no-host 373,847 353,498 603,294 376,593 376,247 1.61 1.01
configure.tcc no-host 6,088 5,007 22,830 6,496 6,493 3.75 1.07
configure.util-linux no-host 1,903,563 2,070,027 5,121,959 1,804,259 1,803,836 2.69 0.95
configure.yash no-host 232,869 222,381 362,255 235,882 235,595 1.56 1.01
hello-world no-host 147 75 3,681 352 341 25.04 2.39

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.3 3.4 21.6 9.0 8.7 5.00 2.09
bin-true no-host 3.0 1.4 17.6 8.0 7.5 5.83 2.65
configure.cpython no-host 29.2 29.3 29.2 29.1 29.3 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.5 1.00 1.00
configure.tcc no-host 19.4 19.4 19.5 19.5 19.6 1.01 1.01
configure.util-linux no-host 30.2 30.3 30.5 30.3 30.3 1.01 1.00
configure.yash no-host 26.3 26.3 26.4 26.3 26.4 1.00 1.00
hello-world no-host 2.8 1.4 17.4 6.3 5.8 6.33 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 6.3 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 779 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 14,571 2 62 15.0 29.1 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 13,702 3 60 21.3 30.3 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,709 0 2 2.6 22.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.5 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,762 1 2 2.6 26.3 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 1
hello-world no-host 3 0 0 0.3 5.8 3,748 3,748 0 685 1,892 1,171 2 0 50,000 0
bin-true no-host 785 1 2 2.6 7.5 154,713 12,949 2,756 9,735 78,361 66,617 3,008 3 50,000 0
configure.cpython no-host 14,584 1 62 15.0 29.3 1,772,689 44,560 28,466 86,382 908,113 778,194 22,694 60 50,000 0
configure.util-linux no-host 13,623 3 60 21.3 30.3 2,703,426 44,646 65,769 109,645 1,320,611 1,273,170 27,391 41 131,538 1
configure.ocaml no-host 3,709 1 2 2.6 22.5 150,060 10,930 5,100 7,515 71,649 70,896 1,448 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.6 30,549 30,549 0 1,506 14,816 14,227 226 0 50,000 0
configure.yash no-host 1,767 1 2 2.6 26.4 139,717 7,899 6,558 6,322 70,321 63,074 1,803 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,291 64,409 42,619 4,556 54,561 57,174 270 3 85,238 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 18 10 9 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 452 398 57 21.6 osh-cpython
31 no-host abuild-print-help 21 15 7 9.0 osh-native
39 no-host abuild-print-help 20 14 7 8.7 osh-native-souffle
1 no-host bin-true 652 287 396 3.0 bash
9 no-host bin-true 523 273 261 1.4 dash
17 no-host bin-true 2,230 770 1,724 17.6 osh-cpython
25 no-host bin-true 779 297 498 8.0 osh-native
33 no-host bin-true 785 299 502 7.5 osh-native-souffle
2 no-host configure.cpython 14,325 6,507 8,231 29.2 bash
10 no-host configure.cpython 14,399 6,620 8,215 29.3 dash
18 no-host configure.cpython 27,542 13,849 15,525 29.2 osh-cpython
26 no-host configure.cpython 14,571 6,357 8,498 29.1 osh-native
34 no-host configure.cpython 14,584 6,337 8,443 29.3 osh-native-souffle
4 no-host configure.ocaml 3,686 1,282 1,446 22.6 bash
12 no-host configure.ocaml 3,624 1,285 1,361 22.6 dash
20 no-host configure.ocaml 4,498 1,833 1,869 22.6 osh-cpython
28 no-host configure.ocaml 3,709 1,310 1,440 22.6 osh-native
36 no-host configure.ocaml 3,709 1,301 1,447 22.5 osh-native-souffle
5 no-host configure.tcc 46 23 24 19.4 bash
13 no-host configure.tcc 40 21 19 19.4 dash
21 no-host configure.tcc 190 132 61 19.5 osh-cpython
29 no-host configure.tcc 47 19 29 19.5 osh-native
37 no-host configure.tcc 47 24 23 19.6 osh-native-souffle
3 no-host configure.util-linux 13,337 5,680 8,150 30.2 bash
11 no-host configure.util-linux 14,220 5,785 8,948 30.3 dash
19 no-host configure.util-linux 30,156 17,295 13,936 30.5 osh-cpython
27 no-host configure.util-linux 13,702 5,485 8,442 30.3 osh-native
35 no-host configure.util-linux 13,623 5,427 8,419 30.3 osh-native-souffle
6 no-host configure.yash 1,754 887 875 26.3 bash
14 no-host configure.yash 1,693 864 834 26.3 dash
22 no-host configure.yash 2,356 1,284 1,114 26.4 osh-cpython
30 no-host configure.yash 1,762 871 896 26.3 osh-native
38 no-host configure.yash 1,767 892 880 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 25 23 17.4 osh-cpython
24 no-host hello-world 3 2 1 6.3 osh-native
32 no-host hello-world 3 1 2 5.8 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,538 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,134 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,990 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,162 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,094 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,321 0 0 0 8 0 1,972 91 bash
9 no-host bin-true 65,423 0 0 0 8 0 1,969 128 dash
17 no-host bin-true 763,839 0 0 0 8 0 1,987 407 osh-cpython
25 no-host bin-true 127,265 0 0 0 16 0 1,974 101 osh-native
33 no-host bin-true 126,574 0 0 0 16 0 1,985 157 osh-native-souffle
2 no-host configure.cpython 2,004,305 0 0 0 32,928 0 14,268 1,260 bash
10 no-host configure.cpython 2,020,925 1 0 0 32,992 0 14,349 1,351 dash
18 no-host configure.cpython 5,951,006 0 0 0 27,512 0 13,038 1,435 osh-cpython
26 no-host configure.cpython 2,011,706 0 0 0 27,520 0 13,077 1,094 osh-native
34 no-host configure.cpython 1,990,779 0 0 0 27,520 0 13,076 1,138 osh-native-souffle
4 no-host configure.ocaml 373,847 0 0 0 5,120 0 1,943 210 bash
12 no-host configure.ocaml 353,498 0 0 0 5,112 0 1,932 177 dash
20 no-host configure.ocaml 603,294 0 0 0 5,112 0 1,850 204 osh-cpython
28 no-host configure.ocaml 376,593 0 0 0 5,120 0 1,925 197 osh-native
36 no-host configure.ocaml 376,247 0 0 0 5,120 0 1,929 185 osh-native-souffle
5 no-host configure.tcc 6,088 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,007 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 22,830 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,496 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,493 0 0 0 104 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,903,563 0 0 0 42,400 0 18,488 1,337 bash
11 no-host configure.util-linux 2,070,027 1 0 0 42,584 0 17,330 1,405 dash
19 no-host configure.util-linux 5,121,959 3 0 0 39,112 0 17,005 1,418 osh-cpython
27 no-host configure.util-linux 1,804,259 1 0 0 39,120 0 16,975 1,277 osh-native
35 no-host configure.util-linux 1,803,836 0 0 0 39,128 0 17,012 1,103 osh-native-souffle
6 no-host configure.yash 232,869 0 0 0 4,120 0 868 117 bash
14 no-host configure.yash 222,381 0 0 0 3,720 0 869 71 dash
22 no-host configure.yash 362,255 0 0 0 3,728 0 852 91 osh-cpython
30 no-host configure.yash 235,882 0 0 0 3,736 0 849 75 osh-native
38 no-host configure.yash 235,595 0 0 0 3,736 0 848 106 osh-native-souffle
0 no-host hello-world 147 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,681 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-ff31f11a
dash dash-0ebcf347
osh-cpython osh-b01f59bb
osh-native osh-7f5418c4
osh-native-souffle osh-cd310c12
host label host id
no-host no-host-e5b8d3ee