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 551 22 21 34.78 1.38
bin-true no-host 613 436 2,461 801 791 4.02 1.31
configure.cpython no-host 13,915 13,955 29,513 14,795 14,808 2.12 1.06
configure.ocaml no-host 3,679 3,619 4,678 3,728 3,766 1.27 1.01
configure.tcc no-host 46 42 223 49 49 4.83 1.06
configure.util-linux no-host 12,580 13,412 32,287 13,622 13,837 2.57 1.08
configure.yash no-host 1,726 1,643 2,431 1,725 1,749 1.41 1.00
hello-world no-host 1 1 60 3 3 51.91 2.48

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,412 1,173 24,682 3,478 3,383 10.23 1.44
bin-true no-host 102,963 49,392 829,671 137,238 135,282 8.06 1.33
configure.cpython no-host 1,626,787 1,640,622 5,971,174 1,800,266 1,785,620 3.67 1.11
configure.ocaml no-host 299,202 280,491 554,805 316,839 315,764 1.85 1.06
configure.tcc no-host 5,218 4,191 23,753 5,945 5,899 4.55 1.14
configure.util-linux no-host 1,534,739 1,699,010 4,959,009 1,716,154 1,702,866 3.23 1.12
configure.yash no-host 173,766 159,553 314,968 179,094 179,158 1.81 1.03
hello-world no-host 150 86 3,889 386 380 25.93 2.57

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.7 9.8 9.3 4.55 1.97
bin-true no-host 3.3 1.6 18.1 8.8 8.4 5.51 2.68
configure.cpython no-host 34.5 34.5 34.5 34.4 34.7 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.5 1.00 1.00
configure.tcc no-host 26.1 26.0 26.2 26.1 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.7 39.7 39.5 39.5 1.00 1.00
configure.yash no-host 33.1 33.1 33.5 33.4 33.3 1.01 1.01
hello-world no-host 3.1 1.6 18.1 6.8 6.6 5.74 2.17

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 703 1,880 1,243 2 0 50,000 0
bin-true no-host 801 1 2 2.6 8.8 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 14,795 2 70 15.2 34.4 1,782,989 46,101 25,356 91,621 885,111 806,257 25,789 62 50,000 0
configure.util-linux no-host 13,622 3 63 21.4 39.5 2,707,122 126,354 66,586 113,462 1,294,567 1,299,093 32,539 41 133,172 1
configure.ocaml no-host 3,728 1 2 2.7 28.7 149,873 12,476 6,519 7,818 70,839 71,216 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.1 30,628 30,628 0 1,581 14,645 14,402 271 0 50,000 0
configure.yash no-host 1,725 1 2 2.6 33.4 140,017 8,080 6,714 6,525 68,347 65,145 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,561 54,471 57,336 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.6 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 791 1 2 2.6 8.4 156,797 15,423 2,910 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,808 1 65 15.2 34.7 1,782,988 46,087 25,352 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,837 3 62 21.4 39.5 2,707,122 126,347 66,579 113,464 1,294,567 1,299,091 32,539 41 133,158 1
configure.ocaml no-host 3,766 1 2 2.7 28.5 149,873 12,470 6,513 7,820 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,628 30,628 0 1,583 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,749 1 2 2.6 33.3 140,017 8,069 6,703 6,527 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,367 64,433 42,634 4,562 54,471 57,334 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 8 9 5.0 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 551 502 52 22.7 osh-cpython
31 no-host abuild-print-help 22 13 10 9.8 osh-native
39 no-host abuild-print-help 21 9 13 9.3 osh-native-souffle
1 no-host bin-true 613 299 352 3.3 bash
9 no-host bin-true 436 273 166 1.6 dash
17 no-host bin-true 2,461 898 1,835 18.1 osh-cpython
25 no-host bin-true 801 311 505 8.8 osh-native
33 no-host bin-true 791 312 496 8.4 osh-native-souffle
2 no-host configure.cpython 13,915 7,571 6,721 34.5 bash
10 no-host configure.cpython 13,955 7,619 6,723 34.5 dash
18 no-host configure.cpython 29,513 16,074 15,403 34.5 osh-cpython
26 no-host configure.cpython 14,795 7,398 7,697 34.4 osh-native
34 no-host configure.cpython 14,808 7,345 7,585 34.7 osh-native-souffle
4 no-host configure.ocaml 3,679 1,461 1,256 28.7 bash
12 no-host configure.ocaml 3,619 1,466 1,176 28.6 dash
20 no-host configure.ocaml 4,678 2,099 1,802 28.7 osh-cpython
28 no-host configure.ocaml 3,728 1,458 1,310 28.7 osh-native
36 no-host configure.ocaml 3,766 1,457 1,348 28.5 osh-native-souffle
5 no-host configure.tcc 46 27 20 26.1 bash
13 no-host configure.tcc 42 23 19 26.0 dash
21 no-host configure.tcc 223 163 64 26.2 osh-cpython
29 no-host configure.tcc 49 27 23 26.1 osh-native
37 no-host configure.tcc 49 25 25 26.3 osh-native-souffle
3 no-host configure.util-linux 12,580 6,513 6,522 39.6 bash
11 no-host configure.util-linux 13,412 6,431 7,460 39.7 dash
19 no-host configure.util-linux 32,287 20,230 13,121 39.7 osh-cpython
27 no-host configure.util-linux 13,622 6,299 7,550 39.5 osh-native
35 no-host configure.util-linux 13,837 6,337 7,573 39.5 osh-native-souffle
6 no-host configure.yash 1,726 935 800 33.1 bash
14 no-host configure.yash 1,643 937 707 33.1 dash
22 no-host configure.yash 2,431 1,411 1,062 33.5 osh-cpython
30 no-host configure.yash 1,725 955 773 33.4 osh-native
38 no-host configure.yash 1,749 979 772 33.3 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 46 15 18.1 osh-cpython
24 no-host hello-world 3 1 1 6.8 osh-native
32 no-host hello-world 3 0 3 6.6 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,412 0 0 0 8 0 40 1 bash
15 no-host abuild-print-help 1,173 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,682 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,478 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,383 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 102,963 0 0 0 8 0 1,980 71 bash
9 no-host bin-true 49,392 0 0 0 8 0 2,965 61 dash
17 no-host bin-true 829,671 0 0 0 8 0 1,997 142 osh-cpython
25 no-host bin-true 137,238 0 0 0 16 0 1,972 95 osh-native
33 no-host bin-true 135,282 0 0 0 16 0 1,982 80 osh-native-souffle
2 no-host configure.cpython 1,626,787 0 0 0 25,272 0 14,049 1,043 bash
10 no-host configure.cpython 1,640,622 0 0 0 25,272 0 14,079 1,054 dash
18 no-host configure.cpython 5,971,174 0 0 0 25,272 0 12,881 893 osh-cpython
26 no-host configure.cpython 1,800,266 0 0 0 25,280 0 12,841 992 osh-native
34 no-host configure.cpython 1,785,620 0 0 0 25,280 0 12,831 1,064 osh-native-souffle
4 no-host configure.ocaml 299,202 0 0 0 4,432 0 2,012 190 bash
12 no-host configure.ocaml 280,491 0 0 0 4,432 0 2,099 190 dash
20 no-host configure.ocaml 554,805 0 0 0 4,432 0 1,916 183 osh-cpython
28 no-host configure.ocaml 316,839 0 0 0 4,440 0 1,993 187 osh-native
36 no-host configure.ocaml 315,764 0 0 0 4,440 0 1,993 215 osh-native-souffle
5 no-host configure.tcc 5,218 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,191 0 0 0 88 0 51 3 dash
21 no-host configure.tcc 23,753 0 0 0 88 0 53 6 osh-cpython
29 no-host configure.tcc 5,945 0 0 0 96 0 47 4 osh-native
37 no-host configure.tcc 5,899 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,534,739 0 0 0 35,944 0 18,960 1,087 bash
11 no-host configure.util-linux 1,699,010 0 0 0 35,936 0 17,118 1,142 dash
19 no-host configure.util-linux 4,959,009 2 0 0 35,960 0 17,540 861 osh-cpython
27 no-host configure.util-linux 1,716,154 0 0 0 35,944 0 17,527 1,116 osh-native
35 no-host configure.util-linux 1,702,866 1 0 0 35,944 0 17,325 1,221 osh-native-souffle
6 no-host configure.yash 173,766 0 0 0 3,616 0 878 95 bash
14 no-host configure.yash 159,553 0 0 0 3,616 0 995 87 dash
22 no-host configure.yash 314,968 0 0 0 3,616 0 852 157 osh-cpython
30 no-host configure.yash 179,094 0 0 0 3,624 0 859 94 osh-native
38 no-host configure.yash 179,158 0 0 0 3,624 0 856 98 osh-native-souffle
0 no-host hello-world 150 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,889 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 380 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-1b78a768
dash dash-cea41b3e
osh-cpython osh-722b6fdc
osh-native osh-c1a26096
osh-native-souffle osh-2ca7b0e2
host label host id
no-host no-host-31404de8