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 456 23 23.66 1.18
bin-true no-host 680 549 2,264 821 3.33 1.21
configure.cpython no-host 15,013 15,060 28,518 15,306 1.90 1.02
configure.ocaml no-host 3,820 3,739 4,617 3,823 1.21 1.00
configure.tcc no-host 48 42 192 50 4.03 1.04
configure.util-linux no-host 14,112 14,882 31,039 14,564 2.20 1.03
configure.yash no-host 1,820 1,769 2,445 1,832 1.34 1.01
hello-world no-host 2 1 49 3 32.65 2.09

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,536 1,093 23,399 3,198 9.23 1.26
bin-true no-host 108,357 65,418 750,454 126,220 6.93 1.16
configure.cpython no-host 2,222,883 2,240,696 6,147,118 2,236,497 2.77 1.01
configure.ocaml no-host 411,149 391,354 639,262 413,175 1.55 1.00
configure.tcc no-host 6,557 5,468 23,189 6,970 3.54 1.06
configure.util-linux no-host 2,108,699 2,263,150 5,315,793 2,012,159 2.52 0.95
configure.yash no-host 256,053 244,368 385,781 257,994 1.51 1.01
hello-world no-host 154 82 3,657 351 23.75 2.28

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.5 21.6 8.9 4.85 2.00
bin-true no-host 3.0 1.6 17.2 7.9 5.72 2.61
configure.cpython no-host 27.4 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.3 20.6 0.99 1.00
configure.tcc no-host 19.1 19.3 19.3 19.3 1.01 1.01
configure.util-linux no-host 30.3 30.4 30.1 30.1 1.00 1.00
configure.yash no-host 24.5 24.4 24.4 24.5 0.99 1.00
hello-world no-host 2.9 1.6 17.0 6.2 5.91 2.14

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,722 3,722 0 684 1,874 1,164 2 0 50,000 0
bin-true no-host 821 1 2 2.7 7.9 154,687 12,991 2,798 11,737 78,343 64,607 5,012 3 50,000 0
configure.cpython no-host 15,306 1 62 15.8 27.5 1,772,603 49,196 28,507 101,770 908,050 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,564 3 61 22.2 30.1 2,703,267 44,765 65,791 126,121 1,320,494 1,256,652 49,081 41 131,582 1
configure.ocaml no-host 3,823 1 2 2.7 20.6 150,029 11,044 5,137 8,602 71,628 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,522 30,522 0 1,599 14,798 14,125 350 0 50,000 0
configure.yash no-host 1,832 1 2 2.6 24.5 139,686 7,963 6,599 7,554 70,300 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,265 64,454 42,662 4,609 54,543 57,113 478 3 85,324 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 16 4 4.5 bash
15 no-host abuild-print-help 10 8 1 3.5 dash
23 no-host abuild-print-help 456 403 56 21.6 osh-cpython
31 no-host abuild-print-help 23 12 11 8.9 osh-native
1 no-host bin-true 680 523 187 3.0 bash
9 no-host bin-true 549 417 140 1.6 dash
17 no-host bin-true 2,264 1,427 1,097 17.2 osh-cpython
25 no-host bin-true 821 576 261 7.9 osh-native
2 no-host configure.cpython 15,013 9,034 6,388 27.4 bash
10 no-host configure.cpython 15,060 9,135 6,341 27.4 dash
18 no-host configure.cpython 28,518 17,384 12,971 27.4 osh-cpython
26 no-host configure.cpython 15,306 9,073 6,501 27.5 osh-native
4 no-host configure.ocaml 3,820 1,540 1,317 20.6 bash
12 no-host configure.ocaml 3,739 1,530 1,226 20.6 dash
20 no-host configure.ocaml 4,617 2,159 1,663 20.3 osh-cpython
28 no-host configure.ocaml 3,823 1,601 1,263 20.6 osh-native
5 no-host configure.tcc 48 25 23 19.1 bash
13 no-host configure.tcc 42 32 10 19.3 dash
21 no-host configure.tcc 192 127 69 19.3 osh-cpython
29 no-host configure.tcc 50 22 28 19.3 osh-native
3 no-host configure.util-linux 14,112 8,903 5,670 30.3 bash
11 no-host configure.util-linux 14,882 9,242 6,133 30.4 dash
19 no-host configure.util-linux 31,039 20,999 11,142 30.1 osh-cpython
27 no-host configure.util-linux 14,564 8,736 6,017 30.1 osh-native
6 no-host configure.yash 1,820 1,089 737 24.5 bash
14 no-host configure.yash 1,769 1,015 757 24.4 dash
22 no-host configure.yash 2,445 1,521 967 24.4 osh-cpython
30 no-host configure.yash 1,832 1,097 739 24.5 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 29 20 17.0 osh-cpython
24 no-host hello-world 3 0 3 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,536 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,093 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,399 0 0 0 8 0 47 14 osh-cpython
31 no-host abuild-print-help 3,198 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 108,357 0 0 0 8 0 1,988 56 bash
9 no-host bin-true 65,418 0 0 0 8 0 1,991 121 dash
17 no-host bin-true 750,454 0 0 0 8 0 1,996 324 osh-cpython
25 no-host bin-true 126,220 0 0 0 16 0 1,990 117 osh-native
2 no-host configure.cpython 2,222,883 0 0 0 32,928 0 14,478 1,160 bash
10 no-host configure.cpython 2,240,696 0 0 0 32,992 0 14,678 1,046 dash
18 no-host configure.cpython 6,147,118 2 0 0 27,512 0 13,260 1,321 osh-cpython
26 no-host configure.cpython 2,236,497 0 0 0 27,520 0 13,186 1,265 osh-native
4 no-host configure.ocaml 411,149 0 0 0 5,120 0 1,966 191 bash
12 no-host configure.ocaml 391,354 0 0 0 5,112 0 1,894 142 dash
20 no-host configure.ocaml 639,262 1 0 0 5,112 0 1,858 179 osh-cpython
28 no-host configure.ocaml 413,175 0 0 0 5,120 0 1,935 156 osh-native
5 no-host configure.tcc 6,557 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,189 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,108,699 0 0 0 42,400 0 18,612 1,106 bash
11 no-host configure.util-linux 2,263,150 0 0 0 42,584 0 17,445 1,062 dash
19 no-host configure.util-linux 5,315,793 12 0 0 39,112 0 17,147 1,304 osh-cpython
27 no-host configure.util-linux 2,012,159 0 0 0 39,120 0 17,056 1,019 osh-native
6 no-host configure.yash 256,053 0 0 0 4,120 0 869 72 bash
14 no-host configure.yash 244,368 0 0 0 3,720 0 870 78 dash
22 no-host configure.yash 385,781 0 0 0 3,728 0 854 92 osh-cpython
30 no-host configure.yash 257,994 0 0 0 3,736 0 850 75 osh-native
0 no-host hello-world 154 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,657 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-638f0bd3
dash dash-308ec8e6
osh-cpython osh-3a79ea00
osh-native osh-e278c0c9
host label host id
no-host no-host-13226fd6