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 490 21 20 25.89 1.13
bin-true no-host 652 529 2,386 777 760 3.66 1.19
configure.cpython no-host 15,058 15,113 29,964 14,611 14,715 1.99 0.97
configure.ocaml no-host 3,871 3,775 4,566 3,722 3,705 1.18 0.96
configure.tcc no-host 47 41 203 47 47 4.32 1.00
configure.util-linux no-host 14,113 14,866 31,799 13,925 13,586 2.25 0.99
configure.yash no-host 1,855 1,790 2,449 1,781 1,760 1.32 0.96
hello-world no-host 1 1 60 3 3 44.74 2.12

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,534 1,094 24,471 3,166 3,082 9.66 1.25
bin-true no-host 104,382 65,421 797,284 127,279 124,127 7.64 1.22
configure.cpython no-host 1,995,824 2,021,392 6,131,128 2,009,446 2,002,968 3.07 1.01
configure.ocaml no-host 372,778 353,527 619,701 376,783 376,178 1.66 1.01
configure.tcc no-host 6,107 5,013 24,032 6,520 6,455 3.94 1.07
configure.util-linux no-host 1,911,744 2,069,376 5,363,494 1,825,903 1,812,916 2.81 0.96
configure.yash no-host 233,387 221,236 369,070 234,780 234,643 1.58 1.01
hello-world no-host 146 77 4,005 347 340 27.43 2.38

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.5 3.5 22.9 9.2 8.7 5.13 2.06
bin-true no-host 2.9 1.4 18.6 8.0 7.7 6.43 2.77
configure.cpython no-host 29.1 29.2 29.1 29.2 28.9 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.5 22.6 22.5 1.00 1.01
configure.tcc no-host 19.7 19.6 19.7 19.7 19.7 1.00 1.00
configure.util-linux no-host 30.4 30.3 30.2 30.3 30.5 1.00 1.00
configure.yash no-host 26.4 26.4 26.5 26.3 26.5 1.00 1.00
hello-world no-host 2.8 1.4 18.4 6.4 5.9 6.69 2.33

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.4 3,810 3,810 0 702 1,870 1,238 2 0 50,000 0
bin-true no-host 777 1 2 2.6 8.0 156,777 15,416 2,903 8,754 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 14,611 2 70 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 13,925 3 65 21.6 30.3 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,722 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 47 0 0 1.3 19.7 30,580 30,580 0 1,544 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,781 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 21 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 760 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 14,715 1 67 15.2 28.9 1,785,026 49,166 25,885 91,516 886,574 806,936 25,736 62 50,000 0
configure.util-linux no-host 13,586 3 63 21.6 30.5 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,705 1 2 2.7 22.5 149,879 12,461 6,504 7,751 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,580 30,580 0 1,546 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,760 1 2 2.6 26.5 139,886 8,036 6,691 6,401 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 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 9 11 4.5 bash
15 no-host abuild-print-help 9 5 4 3.5 dash
23 no-host abuild-print-help 490 436 58 22.9 osh-cpython
31 no-host abuild-print-help 21 11 11 9.2 osh-native
39 no-host abuild-print-help 20 8 12 8.7 osh-native-souffle
1 no-host bin-true 652 299 386 2.9 bash
9 no-host bin-true 529 265 276 1.4 dash
17 no-host bin-true 2,386 868 1,801 18.6 osh-cpython
25 no-host bin-true 777 298 494 8.0 osh-native
33 no-host bin-true 760 311 465 7.7 osh-native-souffle
2 no-host configure.cpython 15,058 6,927 8,556 29.1 bash
10 no-host configure.cpython 15,113 6,927 8,633 29.2 dash
18 no-host configure.cpython 29,964 15,152 16,812 29.1 osh-cpython
26 no-host configure.cpython 14,611 6,505 8,397 29.2 osh-native
34 no-host configure.cpython 14,715 6,462 8,409 28.9 osh-native-souffle
4 no-host configure.ocaml 3,871 1,343 1,568 22.5 bash
12 no-host configure.ocaml 3,775 1,344 1,453 22.6 dash
20 no-host configure.ocaml 4,566 1,843 1,938 22.5 osh-cpython
28 no-host configure.ocaml 3,722 1,293 1,468 22.6 osh-native
36 no-host configure.ocaml 3,705 1,286 1,457 22.5 osh-native-souffle
5 no-host configure.tcc 47 26 22 19.7 bash
13 no-host configure.tcc 41 19 23 19.6 dash
21 no-host configure.tcc 203 140 66 19.7 osh-cpython
29 no-host configure.tcc 47 21 26 19.7 osh-native
37 no-host configure.tcc 47 19 28 19.7 osh-native-souffle
3 no-host configure.util-linux 14,113 6,022 8,603 30.4 bash
11 no-host configure.util-linux 14,866 6,164 9,227 30.3 dash
19 no-host configure.util-linux 31,799 18,266 14,670 30.2 osh-cpython
27 no-host configure.util-linux 13,925 5,665 8,497 30.3 osh-native
35 no-host configure.util-linux 13,586 5,561 8,260 30.5 osh-native-souffle
6 no-host configure.yash 1,855 919 947 26.4 bash
14 no-host configure.yash 1,790 910 885 26.4 dash
22 no-host configure.yash 2,449 1,376 1,119 26.5 osh-cpython
30 no-host configure.yash 1,781 898 888 26.3 osh-native
38 no-host configure.yash 1,760 891 874 26.5 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 60 42 17 18.4 osh-cpython
24 no-host hello-world 3 2 1 6.4 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,534 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 24,471 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,166 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,082 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,382 0 0 0 8 0 1,983 182 bash
9 no-host bin-true 65,421 0 0 0 8 0 1,983 64 dash
17 no-host bin-true 797,284 0 0 0 8 0 1,985 267 osh-cpython
25 no-host bin-true 127,279 0 0 0 16 0 1,987 303 osh-native
33 no-host bin-true 124,127 0 0 0 16 0 1,988 116 osh-native-souffle
2 no-host configure.cpython 1,995,824 0 0 0 32,928 0 14,232 1,239 bash
10 no-host configure.cpython 2,021,392 0 0 0 32,992 0 14,356 1,210 dash
18 no-host configure.cpython 6,131,128 0 0 0 27,512 0 13,036 1,103 osh-cpython
26 no-host configure.cpython 2,009,446 0 0 0 27,520 0 13,061 1,300 osh-native
34 no-host configure.cpython 2,002,968 0 0 0 27,520 0 13,095 1,264 osh-native-souffle
4 no-host configure.ocaml 372,778 0 0 0 5,120 0 1,959 177 bash
12 no-host configure.ocaml 353,527 0 0 0 5,112 0 1,938 201 dash
20 no-host configure.ocaml 619,701 0 0 0 5,112 0 1,847 207 osh-cpython
28 no-host configure.ocaml 376,783 0 0 0 5,120 0 1,927 216 osh-native
36 no-host configure.ocaml 376,178 0 0 0 5,120 0 1,929 180 osh-native-souffle
5 no-host configure.tcc 6,107 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,013 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,032 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,520 0 0 0 104 0 47 5 osh-native
37 no-host configure.tcc 6,455 0 0 0 104 0 46 2 osh-native-souffle
3 no-host configure.util-linux 1,911,744 2 0 0 42,400 0 18,350 1,305 bash
11 no-host configure.util-linux 2,069,376 1 0 0 42,584 0 17,320 1,365 dash
19 no-host configure.util-linux 5,363,494 7 0 0 39,120 0 17,117 1,253 osh-cpython
27 no-host configure.util-linux 1,825,903 0 0 0 39,128 0 17,020 1,347 osh-native
35 no-host configure.util-linux 1,812,916 1 0 0 39,136 0 16,933 1,211 osh-native-souffle
6 no-host configure.yash 233,387 0 0 0 4,120 0 869 83 bash
14 no-host configure.yash 221,236 0 0 0 3,720 0 867 103 dash
22 no-host configure.yash 369,070 0 0 0 3,728 0 854 91 osh-cpython
30 no-host configure.yash 234,780 0 0 0 3,736 0 847 98 osh-native
38 no-host configure.yash 234,643 0 0 0 3,736 0 851 114 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 77 0 0 0 8 0 1 1 dash
16 no-host hello-world 4,005 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-4445998b
dash dash-0ebcf347
osh-cpython osh-56da9aaf
osh-native osh-c685c256
osh-native-souffle osh-01e6e9f4
host label host id
no-host no-host-20fc69f9