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 py bash ratio native bash ratio
abuild-print-help no-host 19 10 466 23 24.63 1.20
bin-true no-host 673 550 2,242 812 3.33 1.21
configure.cpython no-host 15,369 15,267 28,942 15,411 1.88 1.00
configure.ocaml no-host 3,890 3,792 4,659 3,877 1.20 1.00
configure.tcc no-host 49 42 191 51 3.90 1.03
configure.util-linux no-host 14,174 15,114 31,650 14,587 2.23 1.03
configure.yash no-host 1,849 1,815 2,472 1,853 1.34 1.00
hello-world no-host 2 1 50 3 33.06 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,509 1,093 23,588 3,231 9.40 1.29
bin-true no-host 105,372 66,380 754,869 127,247 7.16 1.21
configure.cpython no-host 2,223,081 2,251,712 6,147,095 2,229,827 2.77 1.00
configure.ocaml no-host 410,869 391,130 639,687 414,129 1.56 1.01
configure.tcc no-host 6,539 5,488 23,266 6,971 3.56 1.07
configure.util-linux no-host 2,093,941 2,264,127 5,329,605 2,014,703 2.55 0.96
configure.yash no-host 256,018 244,080 384,896 258,808 1.50 1.01
hello-world no-host 153 83 3,689 346 24.11 2.26

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 py bash ratio native bash ratio
abuild-print-help no-host 4.3 3.5 21.9 9.0 5.06 2.09
bin-true no-host 2.9 1.4 17.4 8.0 6.05 2.77
configure.cpython no-host 27.1 27.5 27.4 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.4 19.4 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.5 24.2 1.01 0.99
hello-world no-host 2.9 1.6 17.3 6.0 6.00 2.09

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.0 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 812 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,411 2 62 15.8 27.4 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,587 3 62 22.2 30.1 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,877 1 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,853 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 14 6 4.3 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 466 409 60 21.9 osh-cpython
31 no-host abuild-print-help 23 13 10 9.0 osh-native
1 no-host bin-true 673 494 210 2.9 bash
9 no-host bin-true 550 418 137 1.4 dash
17 no-host bin-true 2,242 1,442 1,063 17.4 osh-cpython
25 no-host bin-true 812 597 232 8.0 osh-native
2 no-host configure.cpython 15,369 9,234 6,538 27.1 bash
10 no-host configure.cpython 15,267 9,123 6,561 27.5 dash
18 no-host configure.cpython 28,942 17,600 13,198 27.4 osh-cpython
26 no-host configure.cpython 15,411 9,047 6,621 27.4 osh-native
4 no-host configure.ocaml 3,890 1,600 1,328 20.6 bash
12 no-host configure.ocaml 3,792 1,569 1,238 20.6 dash
20 no-host configure.ocaml 4,659 2,304 1,562 20.6 osh-cpython
28 no-host configure.ocaml 3,877 1,643 1,270 20.6 osh-native
5 no-host configure.tcc 49 32 18 19.1 bash
13 no-host configure.tcc 42 26 16 19.4 dash
21 no-host configure.tcc 191 140 54 19.4 osh-cpython
29 no-host configure.tcc 51 37 14 19.3 osh-native
3 no-host configure.util-linux 14,174 8,923 5,714 30.3 bash
11 no-host configure.util-linux 15,114 9,108 6,468 30.3 dash
19 no-host configure.util-linux 31,650 21,329 11,430 30.3 osh-cpython
27 no-host configure.util-linux 14,587 8,899 5,882 30.1 osh-native
6 no-host configure.yash 1,849 1,060 795 24.4 bash
14 no-host configure.yash 1,815 1,054 763 24.2 dash
22 no-host configure.yash 2,472 1,520 995 24.5 osh-cpython
30 no-host configure.yash 1,853 1,069 788 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 50 24 26 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.0 osh-native

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,509 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 2 dash
23 no-host abuild-print-help 23,588 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,231 0 0 0 16 0 40 5 osh-native
1 no-host bin-true 105,372 0 0 0 8 0 1,987 94 bash
9 no-host bin-true 66,380 0 0 0 8 0 1,987 43 dash
17 no-host bin-true 754,869 0 0 0 8 0 1,995 180 osh-cpython
25 no-host bin-true 127,247 0 0 0 16 0 1,995 57 osh-native
2 no-host configure.cpython 2,223,081 1 0 0 32,928 0 14,516 1,453 bash
10 no-host configure.cpython 2,251,712 0 0 0 32,992 0 14,623 1,180 dash
18 no-host configure.cpython 6,147,095 0 0 0 27,512 0 13,286 1,352 osh-cpython
26 no-host configure.cpython 2,229,827 0 0 0 27,520 0 13,277 1,226 osh-native
4 no-host configure.ocaml 410,869 0 0 0 5,120 0 1,950 179 bash
12 no-host configure.ocaml 391,130 0 0 0 5,112 0 1,922 140 dash
20 no-host configure.ocaml 639,687 0 0 0 5,112 0 1,858 173 osh-cpython
28 no-host configure.ocaml 414,129 0 0 0 5,120 0 1,931 173 osh-native
5 no-host configure.tcc 6,539 0 0 0 104 0 48 5 bash
13 no-host configure.tcc 5,488 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,266 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,093,941 1 0 0 42,400 0 18,509 1,020 bash
11 no-host configure.util-linux 2,264,127 1 0 0 42,584 0 17,473 1,075 dash
19 no-host configure.util-linux 5,329,605 3 0 0 39,144 0 17,079 1,337 osh-cpython
27 no-host configure.util-linux 2,014,703 1 0 0 39,128 0 17,197 1,003 osh-native
6 no-host configure.yash 256,018 0 0 0 4,120 0 868 94 bash
14 no-host configure.yash 244,080 0 0 0 3,720 0 871 80 dash
22 no-host configure.yash 384,896 0 0 0 3,728 0 854 119 osh-cpython
30 no-host configure.yash 258,808 0 0 0 3,736 0 846 108 osh-native
0 no-host hello-world 153 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,689 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-aa9436c6
dash dash-308ec8e6
osh-cpython osh-66622928
osh-native osh-ef709932
host label host id
no-host no-host-1c33b689