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 20 9 459 23 22.63 1.14
bin-true no-host 702 549 2,298 822 3.27 1.17
configure.cpython no-host 15,841 15,356 29,273 15,497 1.85 0.98
configure.ocaml no-host 3,915 3,793 4,713 3,838 1.20 0.98
configure.tcc no-host 50 42 193 49 3.87 0.98
configure.util-linux no-host 14,395 15,165 31,395 14,454 2.18 1.00
configure.yash no-host 1,875 1,789 2,484 1,840 1.32 0.98
hello-world no-host 2 1 49 3 29.09 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,508 1,105 22,918 3,167 9.14 1.26
bin-true no-host 109,350 66,373 762,773 128,202 6.98 1.17
configure.cpython no-host 2,229,647 2,251,886 6,188,454 2,223,295 2.78 1.00
configure.ocaml no-host 409,884 391,107 640,469 413,870 1.56 1.01
configure.tcc no-host 6,574 5,476 23,329 6,987 3.55 1.06
configure.util-linux no-host 2,099,731 2,258,485 5,326,142 1,996,320 2.54 0.95
configure.yash no-host 256,059 244,924 385,206 257,000 1.50 1.00
hello-world no-host 149 81 3,699 352 24.83 2.36

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.5 3.4 21.8 8.8 4.88 1.97
bin-true no-host 2.8 1.4 17.6 8.0 6.38 2.90
configure.cpython no-host 27.4 27.4 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.3 30.3 30.3 30.1 1.00 1.00
configure.yash no-host 24.5 24.2 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.4 17.4 6.3 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 822 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 15,497 1 64 15.0 27.3 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,454 3 63 21.3 30.1 2,703,426 42,745 65,812 109,643 1,320,611 1,273,172 27,391 41 131,624 1
configure.ocaml no-host 3,838 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,840 1 2 2.6 24.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 20 19 1 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 459 409 53 21.8 osh-cpython
31 no-host abuild-print-help 23 18 6 8.8 osh-native
1 no-host bin-true 702 513 222 2.8 bash
9 no-host bin-true 549 424 133 1.4 dash
17 no-host bin-true 2,298 1,497 1,073 17.6 osh-cpython
25 no-host bin-true 822 577 261 8.0 osh-native
2 no-host configure.cpython 15,841 9,504 6,674 27.4 bash
10 no-host configure.cpython 15,356 9,373 6,393 27.4 dash
18 no-host configure.cpython 29,273 17,877 13,290 27.4 osh-cpython
26 no-host configure.cpython 15,497 9,251 6,508 27.3 osh-native
4 no-host configure.ocaml 3,915 1,715 1,239 20.6 bash
12 no-host configure.ocaml 3,793 1,607 1,181 20.6 dash
20 no-host configure.ocaml 4,713 2,367 1,554 20.6 osh-cpython
28 no-host configure.ocaml 3,838 1,602 1,277 20.6 osh-native
5 no-host configure.tcc 50 31 20 19.4 bash
13 no-host configure.tcc 42 32 10 19.3 dash
21 no-host configure.tcc 193 122 75 19.3 osh-cpython
29 no-host configure.tcc 49 41 8 19.3 osh-native
3 no-host configure.util-linux 14,395 8,996 5,868 30.3 bash
11 no-host configure.util-linux 15,165 9,320 6,358 30.3 dash
19 no-host configure.util-linux 31,395 20,834 11,656 30.3 osh-cpython
27 no-host configure.util-linux 14,454 8,562 6,093 30.1 osh-native
6 no-host configure.yash 1,875 1,077 807 24.5 bash
14 no-host configure.yash 1,789 1,017 777 24.2 dash
22 no-host configure.yash 2,484 1,596 933 24.2 osh-cpython
30 no-host configure.yash 1,840 1,036 808 24.4 osh-native
0 no-host hello-world 2 0 2 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 33 16 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,508 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,918 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,167 0 0 0 16 0 39 2 osh-native
1 no-host bin-true 109,350 0 0 0 8 0 1,992 154 bash
9 no-host bin-true 66,373 0 0 0 8 0 1,993 61 dash
17 no-host bin-true 762,773 0 0 0 8 0 1,996 213 osh-cpython
25 no-host bin-true 128,202 0 0 0 16 0 1,995 132 osh-native
2 no-host configure.cpython 2,229,647 0 0 0 32,928 0 14,480 1,138 bash
10 no-host configure.cpython 2,251,886 0 0 0 32,992 0 14,672 1,316 dash
18 no-host configure.cpython 6,188,454 0 0 0 27,512 0 13,243 1,273 osh-cpython
26 no-host configure.cpython 2,223,295 0 0 0 27,520 0 13,296 1,026 osh-native
4 no-host configure.ocaml 409,884 0 0 0 5,120 0 1,951 146 bash
12 no-host configure.ocaml 391,107 0 0 0 5,112 0 1,927 153 dash
20 no-host configure.ocaml 640,469 0 0 0 5,112 0 1,849 190 osh-cpython
28 no-host configure.ocaml 413,870 0 0 0 5,120 0 1,929 173 osh-native
5 no-host configure.tcc 6,574 0 0 0 104 0 49 15 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,329 0 0 0 96 0 53 21 osh-cpython
29 no-host configure.tcc 6,987 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,099,731 2 0 0 42,400 0 18,578 1,006 bash
11 no-host configure.util-linux 2,258,485 0 0 0 42,584 0 17,427 1,083 dash
19 no-host configure.util-linux 5,326,142 11 0 0 39,112 0 16,969 1,241 osh-cpython
27 no-host configure.util-linux 1,996,320 1 0 0 39,120 0 17,043 1,066 osh-native
6 no-host configure.yash 256,059 0 0 0 4,120 0 868 88 bash
14 no-host configure.yash 244,924 0 0 0 3,720 0 864 85 dash
22 no-host configure.yash 385,206 0 0 0 3,728 0 855 94 osh-cpython
30 no-host configure.yash 257,000 0 0 0 3,736 0 849 100 osh-native
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,699 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-9b0428a5
dash dash-308ec8e6
osh-cpython osh-88fad20a
osh-native osh-578a9b30
host label host id
no-host no-host-556df3ee