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 19 9 487 22 21 25.88 1.18
bin-true no-host 662 531 2,361 796 791 3.57 1.20
configure.cpython no-host 15,053 15,313 29,896 15,330 15,332 1.99 1.02
configure.ocaml no-host 3,844 3,840 4,728 3,906 3,851 1.23 1.02
configure.tcc no-host 47 41 210 48 48 4.49 1.03
configure.util-linux no-host 13,962 15,084 32,464 14,472 14,352 2.33 1.04
configure.yash no-host 1,850 1,803 2,526 1,857 1,846 1.37 1.00
hello-world no-host 1 1 61 3 3 46.11 2.14

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,563 1,080 24,352 3,190 3,062 9.50 1.24
bin-true no-host 106,387 65,420 794,165 127,211 126,251 7.46 1.20
configure.cpython no-host 1,999,467 2,019,382 6,116,799 2,016,111 2,003,231 3.06 1.01
configure.ocaml no-host 373,192 353,494 618,599 376,671 376,166 1.66 1.01
configure.tcc no-host 6,065 5,002 23,973 6,479 6,452 3.95 1.07
configure.util-linux no-host 1,914,972 2,069,151 5,340,909 1,821,751 1,812,640 2.79 0.95
configure.yash no-host 233,952 222,267 368,768 234,610 235,485 1.58 1.00
hello-world no-host 145 78 3,986 348 341 27.49 2.40

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.5 22.9 9.2 8.8 5.29 2.12
bin-true no-host 2.9 1.6 18.3 8.1 7.7 6.34 2.82
configure.cpython no-host 29.1 29.2 29.2 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.6 1.01 1.01
configure.tcc no-host 19.5 19.4 19.7 19.4 19.6 1.01 0.99
configure.util-linux no-host 30.3 30.2 30.2 30.2 29.8 1.00 1.00
configure.yash no-host 26.4 26.5 26.3 26.3 26.3 1.00 1.00
hello-world no-host 2.8 1.6 18.4 6.6 5.9 6.69 2.38

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.6 3,810 3,810 0 702 1,870 1,238 2 0 50,000 0
bin-true no-host 796 1 2 2.6 8.1 156,777 15,416 2,903 8,754 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 15,330 1 74 15.2 29.2 1,785,027 49,179 25,898 91,515 886,574 806,938 25,736 62 50,000 0
configure.util-linux no-host 14,472 3 70 21.6 30.2 2,709,226 56,216 66,561 114,377 1,295,038 1,299,811 32,241 42 133,122 1
configure.ocaml no-host 3,906 1 2 2.7 22.6 149,879 12,467 6,510 7,749 70,874 71,256 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,580 30,580 0 1,544 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,857 1 2 2.6 26.3 139,886 8,047 6,702 6,399 68,339 65,148 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,340 64,422 42,627 4,546 54,461 57,333 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,809 3,809 0 703 1,870 1,236 2 0 50,000 0
bin-true no-host 791 1 2 2.6 7.7 156,776 15,411 2,898 8,755 77,337 70,684 3,008 3 50,000 0
configure.cpython no-host 15,332 1 74 15.2 29.2 1,785,026 49,166 25,885 91,516 886,574 806,936 25,736 62 50,000 0
configure.util-linux no-host 14,352 3 71 21.6 29.8 2,709,226 56,191 66,554 114,379 1,295,038 1,299,809 32,241 42 133,108 1
configure.ocaml no-host 3,851 1 2 2.7 22.6 149,879 12,461 6,504 7,751 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,580 30,580 0 1,546 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,846 1 2 2.6 26.3 139,886 8,036 6,691 6,401 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,339 64,417 42,622 4,547 54,461 57,331 277 3 85,244 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 19 10 10 4.3 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 487 433 57 22.9 osh-cpython
31 no-host abuild-print-help 22 11 12 9.2 osh-native
39 no-host abuild-print-help 21 11 11 8.8 osh-native-souffle
1 no-host bin-true 662 306 389 2.9 bash
9 no-host bin-true 531 271 271 1.6 dash
17 no-host bin-true 2,361 856 1,784 18.3 osh-cpython
25 no-host bin-true 796 306 505 8.1 osh-native
33 no-host bin-true 791 310 498 7.7 osh-native-souffle
2 no-host configure.cpython 15,053 6,869 8,612 29.1 bash
10 no-host configure.cpython 15,313 6,897 8,865 29.2 dash
18 no-host configure.cpython 29,896 15,241 16,654 29.2 osh-cpython
26 no-host configure.cpython 15,330 6,813 8,814 29.2 osh-native
34 no-host configure.cpython 15,332 6,773 8,738 29.2 osh-native-souffle
4 no-host configure.ocaml 3,844 1,344 1,528 22.5 bash
12 no-host configure.ocaml 3,840 1,317 1,543 22.6 dash
20 no-host configure.ocaml 4,728 1,943 2,004 22.6 osh-cpython
28 no-host configure.ocaml 3,906 1,363 1,584 22.6 osh-native
36 no-host configure.ocaml 3,851 1,345 1,546 22.6 osh-native-souffle
5 no-host configure.tcc 47 23 25 19.5 bash
13 no-host configure.tcc 41 21 21 19.4 dash
21 no-host configure.tcc 210 141 74 19.7 osh-cpython
29 no-host configure.tcc 48 20 29 19.4 osh-native
37 no-host configure.tcc 48 19 29 19.6 osh-native-souffle
3 no-host configure.util-linux 13,962 6,046 8,423 30.3 bash
11 no-host configure.util-linux 15,084 6,108 9,516 30.2 dash
19 no-host configure.util-linux 32,464 18,702 14,912 30.2 osh-cpython
27 no-host configure.util-linux 14,472 5,684 9,022 30.2 osh-native
35 no-host configure.util-linux 14,352 5,851 8,744 29.8 osh-native-souffle
6 no-host configure.yash 1,850 941 920 26.4 bash
14 no-host configure.yash 1,803 900 906 26.5 dash
22 no-host configure.yash 2,526 1,376 1,198 26.3 osh-cpython
30 no-host configure.yash 1,857 915 946 26.3 osh-native
38 no-host configure.yash 1,846 914 936 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 61 42 19 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.6 osh-native
32 no-host hello-world 3 2 1 5.9 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,563 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,080 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 24,352 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,062 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,387 0 0 0 8 0 1,980 164 bash
9 no-host bin-true 65,420 0 0 0 8 0 1,974 100 dash
17 no-host bin-true 794,165 0 0 0 8 0 1,993 299 osh-cpython
25 no-host bin-true 127,211 0 0 0 16 0 1,979 202 osh-native
33 no-host bin-true 126,251 0 0 0 16 0 1,979 264 osh-native-souffle
2 no-host configure.cpython 1,999,467 1 0 0 32,928 0 14,224 1,129 bash
10 no-host configure.cpython 2,019,382 0 0 0 32,992 0 14,325 1,196 dash
18 no-host configure.cpython 6,116,799 0 0 0 27,512 0 13,109 1,092 osh-cpython
26 no-host configure.cpython 2,016,111 0 0 0 27,520 0 13,023 1,107 osh-native
34 no-host configure.cpython 2,003,231 0 0 0 27,520 0 13,026 1,013 osh-native-souffle
4 no-host configure.ocaml 373,192 0 0 0 5,120 0 1,944 219 bash
12 no-host configure.ocaml 353,494 0 0 0 5,112 0 1,929 167 dash
20 no-host configure.ocaml 618,599 0 0 0 5,112 0 1,847 187 osh-cpython
28 no-host configure.ocaml 376,671 0 0 0 5,120 0 1,932 200 osh-native
36 no-host configure.ocaml 376,166 0 0 0 5,120 0 1,928 191 osh-native-souffle
5 no-host configure.tcc 6,065 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,002 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,973 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,479 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,452 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,914,972 1 0 0 42,400 0 18,498 1,213 bash
11 no-host configure.util-linux 2,069,151 0 0 0 42,584 0 17,334 1,330 dash
19 no-host configure.util-linux 5,340,909 9 0 0 39,112 0 17,025 1,300 osh-cpython
27 no-host configure.util-linux 1,821,751 1 0 0 39,128 0 16,986 1,227 osh-native
35 no-host configure.util-linux 1,812,640 1 0 0 39,136 0 17,012 1,116 osh-native-souffle
6 no-host configure.yash 233,952 0 0 0 4,120 0 869 105 bash
14 no-host configure.yash 222,267 0 0 0 3,720 0 867 105 dash
22 no-host configure.yash 368,768 0 0 0 3,728 0 852 69 osh-cpython
30 no-host configure.yash 234,610 0 0 0 3,736 0 850 104 osh-native
38 no-host configure.yash 235,485 0 0 0 3,736 0 848 101 osh-native-souffle
0 no-host hello-world 145 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,986 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 341 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-41a38913
dash dash-0ebcf347
osh-cpython osh-982b4a8b
osh-native osh-83e80e3c
osh-native-souffle osh-0b9b1ef9
host label host id
no-host no-host-20fc69f9