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 468 23 23.90 1.16
bin-true no-host 682 550 2,251 819 3.30 1.20
configure.cpython no-host 15,195 15,308 28,955 15,377 1.91 1.01
configure.ocaml no-host 3,867 3,767 4,666 3,859 1.21 1.00
configure.tcc no-host 48 41 193 50 4.05 1.05
configure.util-linux no-host 14,236 15,026 31,387 14,540 2.20 1.02
configure.yash no-host 1,860 1,793 2,462 1,863 1.32 1.00
hello-world no-host 2 1 48 3 30.72 1.78

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,540 1,107 23,223 3,220 9.14 1.27
bin-true no-host 104,367 65,462 750,057 127,125 7.19 1.22
configure.cpython no-host 2,222,839 2,249,512 6,145,389 2,224,175 2.76 1.00
configure.ocaml no-host 410,838 390,815 637,652 413,870 1.55 1.01
configure.tcc no-host 6,544 5,491 23,237 6,974 3.55 1.07
configure.util-linux no-host 2,100,356 2,258,407 5,336,644 2,010,888 2.54 0.96
configure.yash no-host 255,705 244,647 385,359 258,965 1.51 1.01
hello-world no-host 150 82 3,653 350 24.35 2.33

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.6 8.9 4.85 2.00
bin-true no-host 3.0 1.4 17.3 7.9 5.74 2.61
configure.cpython no-host 27.1 27.4 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.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.5 24.4 24.2 1.01 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 819 1 2 2.7 7.9 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,377 1 64 15.8 27.4 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,540 3 63 22.2 30.1 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 3,859 1 2 2.7 20.6 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,863 1 2 2.6 24.2 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 468 416 55 21.6 osh-cpython
31 no-host abuild-print-help 23 12 11 8.9 osh-native
1 no-host bin-true 682 512 200 3.0 bash
9 no-host bin-true 550 417 141 1.4 dash
17 no-host bin-true 2,251 1,459 1,055 17.3 osh-cpython
25 no-host bin-true 819 573 261 7.9 osh-native
2 no-host configure.cpython 15,195 9,183 6,399 27.1 bash
10 no-host configure.cpython 15,308 9,407 6,327 27.4 dash
18 no-host configure.cpython 28,955 17,758 13,060 27.4 osh-cpython
26 no-host configure.cpython 15,377 9,287 6,358 27.4 osh-native
4 no-host configure.ocaml 3,867 1,639 1,267 20.6 bash
12 no-host configure.ocaml 3,767 1,584 1,202 20.6 dash
20 no-host configure.ocaml 4,666 2,221 1,650 20.6 osh-cpython
28 no-host configure.ocaml 3,859 1,585 1,308 20.6 osh-native
5 no-host configure.tcc 48 28 20 19.4 bash
13 no-host configure.tcc 41 31 11 19.4 dash
21 no-host configure.tcc 193 126 70 19.3 osh-cpython
29 no-host configure.tcc 50 22 28 19.4 osh-native
3 no-host configure.util-linux 14,236 8,942 5,767 30.1 bash
11 no-host configure.util-linux 15,026 9,189 6,328 30.0 dash
19 no-host configure.util-linux 31,387 20,729 11,747 30.1 osh-cpython
27 no-host configure.util-linux 14,540 8,862 5,877 30.1 osh-native
6 no-host configure.yash 1,860 1,081 786 24.2 bash
14 no-host configure.yash 1,793 1,033 763 24.5 dash
22 no-host configure.yash 2,462 1,490 1,015 24.4 osh-cpython
30 no-host configure.yash 1,863 1,053 814 24.2 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 48 29 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,540 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,223 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,220 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 104,367 0 0 0 8 0 1,989 157 bash
9 no-host bin-true 65,462 0 0 0 8 0 1,987 94 dash
17 no-host bin-true 750,057 0 0 0 8 0 1,998 130 osh-cpython
25 no-host bin-true 127,125 0 0 0 16 0 1,992 154 osh-native
2 no-host configure.cpython 2,222,839 0 0 0 32,928 0 14,521 1,038 bash
10 no-host configure.cpython 2,249,512 0 0 0 32,992 0 14,646 1,261 dash
18 no-host configure.cpython 6,145,389 2 0 0 27,512 0 13,246 1,104 osh-cpython
26 no-host configure.cpython 2,224,175 0 0 0 27,520 0 13,241 966 osh-native
4 no-host configure.ocaml 410,838 0 0 0 5,120 0 1,959 159 bash
12 no-host configure.ocaml 390,815 0 0 0 5,112 0 1,903 142 dash
20 no-host configure.ocaml 637,652 0 0 0 5,112 0 1,860 193 osh-cpython
28 no-host configure.ocaml 413,870 0 0 0 5,120 0 1,938 180 osh-native
5 no-host configure.tcc 6,544 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,491 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,237 0 0 0 96 0 53 13 osh-cpython
29 no-host configure.tcc 6,974 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,100,356 0 0 0 42,400 0 18,603 1,056 bash
11 no-host configure.util-linux 2,258,407 1 0 0 42,584 0 17,548 1,059 dash
19 no-host configure.util-linux 5,336,644 3 0 0 39,112 0 17,039 1,213 osh-cpython
27 no-host configure.util-linux 2,010,888 2 0 0 39,120 0 17,070 1,081 osh-native
6 no-host configure.yash 255,705 0 0 0 4,120 0 873 81 bash
14 no-host configure.yash 244,647 0 0 0 3,720 0 870 90 dash
22 no-host configure.yash 385,359 0 0 0 3,728 0 861 112 osh-cpython
30 no-host configure.yash 258,965 0 0 0 3,736 0 855 80 osh-native
0 no-host hello-world 150 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,653 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-eb2aefa8
dash dash-308ec8e6
osh-cpython osh-96821f09
osh-native osh-7371efc3
host label host id
no-host no-host-13226fd6