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 10 477 24 24.04 1.22
bin-true no-host 705 565 2,359 845 3.34 1.20
configure.cpython no-host 16,268 16,300 31,179 16,223 1.92 1.00
configure.ocaml no-host 4,023 3,926 4,896 4,026 1.22 1.00
configure.tcc no-host 61 48 206 51 3.41 0.85
configure.util-linux no-host 15,099 16,042 33,955 15,396 2.25 1.02
configure.yash no-host 1,921 1,876 2,594 1,923 1.35 1.00
hello-world no-host 2 1 54 3 32.89 1.79

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,529 1,105 23,302 3,236 9.21 1.28
bin-true no-host 108,311 65,446 743,481 127,182 6.86 1.17
configure.cpython no-host 2,218,164 2,247,118 6,132,987 2,231,008 2.76 1.01
configure.ocaml no-host 410,898 390,808 637,845 413,304 1.55 1.01
configure.tcc no-host 6,578 5,500 23,201 6,968 3.53 1.06
configure.util-linux no-host 2,095,181 2,264,565 5,307,088 2,013,684 2.53 0.96
configure.yash no-host 256,808 244,710 382,787 257,547 1.49 1.00
hello-world no-host 151 82 3,664 348 24.26 2.30

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.4 21.8 8.9 5.03 2.06
bin-true no-host 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 27.5 27.4 27.4 27.4 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.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.3 6.2 6.29 2.24

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.2 3,729 3,729 0 684 1,881 1,164 2 0 50,000 0
bin-true no-host 845 1 2 2.7 8.1 154,694 12,996 2,803 11,737 78,350 64,607 5,012 3 50,000 0
configure.cpython no-host 16,223 1 66 15.8 27.4 1,772,610 49,201 28,512 101,770 908,057 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,396 3 68 22.2 30.1 2,703,383 44,770 65,796 126,155 1,320,537 1,256,691 49,086 41 131,592 1
configure.ocaml no-host 4,026 1 2 2.7 20.6 150,036 11,049 5,142 8,602 71,635 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,529 30,529 0 1,599 14,805 14,125 350 0 50,000 0
configure.yash no-host 1,923 1 2 2.6 24.4 139,693 7,968 6,604 7,554 70,307 61,832 2,990 3 50,000 0
abuild-print-help no-host 24 1 2 2.8 8.9 116,272 64,459 42,667 4,610 54,550 57,112 478 3 85,334 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 12 8 4.3 bash
15 no-host abuild-print-help 10 5 6 3.4 dash
23 no-host abuild-print-help 477 406 73 21.8 osh-cpython
31 no-host abuild-print-help 24 19 6 8.9 osh-native
1 no-host bin-true 705 507 232 2.9 bash
9 no-host bin-true 565 423 147 1.4 dash
17 no-host bin-true 2,359 1,508 1,126 17.3 osh-cpython
25 no-host bin-true 845 580 276 8.1 osh-native
2 no-host configure.cpython 16,268 9,652 7,032 27.5 bash
10 no-host configure.cpython 16,300 9,962 6,778 27.4 dash
18 no-host configure.cpython 31,179 18,749 14,433 27.4 osh-cpython
26 no-host configure.cpython 16,223 9,378 7,123 27.4 osh-native
4 no-host configure.ocaml 4,023 1,723 1,338 20.6 bash
12 no-host configure.ocaml 3,926 1,639 1,307 20.6 dash
20 no-host configure.ocaml 4,896 2,429 1,688 20.6 osh-cpython
28 no-host configure.ocaml 4,026 1,724 1,340 20.6 osh-native
5 no-host configure.tcc 61 44 17 19.3 bash
13 no-host configure.tcc 48 28 20 19.3 dash
21 no-host configure.tcc 206 163 47 19.3 osh-cpython
29 no-host configure.tcc 51 22 29 19.4 osh-native
3 no-host configure.util-linux 15,099 9,439 6,130 30.0 bash
11 no-host configure.util-linux 16,042 9,764 6,790 30.3 dash
19 no-host configure.util-linux 33,955 22,248 12,872 30.0 osh-cpython
27 no-host configure.util-linux 15,396 9,198 6,401 30.1 osh-native
6 no-host configure.yash 1,921 1,112 818 24.4 bash
14 no-host configure.yash 1,876 1,109 771 24.2 dash
22 no-host configure.yash 2,594 1,551 1,089 24.4 osh-cpython
30 no-host configure.yash 1,923 1,132 794 24.4 osh-native
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 54 33 20 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.2 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,529 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,105 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,302 0 0 0 8 0 47 14 osh-cpython
31 no-host abuild-print-help 3,236 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 108,311 0 0 0 8 0 1,990 56 bash
9 no-host bin-true 65,446 0 0 0 8 0 1,984 54 dash
17 no-host bin-true 743,481 0 0 0 8 0 1,997 109 osh-cpython
25 no-host bin-true 127,182 0 0 0 16 0 1,990 207 osh-native
2 no-host configure.cpython 2,218,164 0 0 0 32,928 0 14,453 1,116 bash
10 no-host configure.cpython 2,247,118 0 0 0 32,992 0 14,578 1,041 dash
18 no-host configure.cpython 6,132,987 0 0 0 27,512 0 13,213 1,377 osh-cpython
26 no-host configure.cpython 2,231,008 0 0 0 27,520 0 13,265 1,012 osh-native
4 no-host configure.ocaml 410,898 0 0 0 5,120 0 1,947 152 bash
12 no-host configure.ocaml 390,808 0 0 0 5,112 0 1,867 141 dash
20 no-host configure.ocaml 637,845 0 0 0 5,112 0 1,860 255 osh-cpython
28 no-host configure.ocaml 413,304 0 0 0 5,120 0 1,929 176 osh-native
5 no-host configure.tcc 6,578 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,500 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,201 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,968 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,095,181 0 0 0 42,400 0 18,582 1,277 bash
11 no-host configure.util-linux 2,264,565 1 0 0 42,592 0 17,535 1,151 dash
19 no-host configure.util-linux 5,307,088 12 0 0 39,120 0 17,054 1,373 osh-cpython
27 no-host configure.util-linux 2,013,684 4 0 0 39,144 0 17,054 1,004 osh-native
6 no-host configure.yash 256,808 0 0 0 4,120 0 868 83 bash
14 no-host configure.yash 244,710 0 0 0 3,720 0 866 77 dash
22 no-host configure.yash 382,787 0 0 0 3,728 0 850 98 osh-cpython
30 no-host configure.yash 257,547 0 0 0 3,736 0 852 90 osh-native
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,664 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-bc02f6ff
dash dash-308ec8e6
osh-cpython osh-bd57b534
osh-native osh-a6b05c96
host label host id
no-host no-host-1c33b689