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 9 455 23 23.89 1.18
bin-true no-host 677 546 2,218 815 3.28 1.20
configure.cpython no-host 15,146 15,109 28,295 15,273 1.87 1.01
configure.ocaml no-host 3,839 3,766 4,592 3,825 1.20 1.00
configure.tcc no-host 47 42 192 49 4.07 1.05
configure.util-linux no-host 14,060 14,836 31,160 14,532 2.22 1.03
configure.yash no-host 1,810 1,774 2,441 1,821 1.35 1.01
hello-world no-host 1 1 48 3 33.35 1.98

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,576 1,130 23,485 3,196 9.12 1.24
bin-true no-host 105,340 65,403 750,414 127,203 7.12 1.21
configure.cpython no-host 2,212,728 2,243,941 6,118,754 2,227,498 2.77 1.01
configure.ocaml no-host 410,954 391,630 637,775 413,262 1.55 1.01
configure.tcc no-host 6,540 5,476 23,256 6,978 3.56 1.07
configure.util-linux no-host 2,093,479 2,258,238 5,328,108 2,016,194 2.55 0.96
configure.yash no-host 256,794 244,558 385,368 257,944 1.50 1.00
hello-world no-host 151 83 3,649 343 24.17 2.27

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.7 4.88 1.94
bin-true no-host 2.9 1.4 17.3 8.1 6.00 2.82
configure.cpython no-host 27.4 27.3 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.0 30.1 30.3 30.1 1.01 1.00
configure.yash no-host 24.4 24.4 24.5 24.2 1.01 0.99
hello-world no-host 2.8 1.6 17.2 6.2 6.24 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 815 1 2 2.7 8.1 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,273 1 61 15.8 27.5 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,532 3 59 22.2 30.1 2,703,259 44,760 65,806 126,121 1,320,486 1,256,652 49,081 41 131,612 1
configure.ocaml no-host 3,825 1 2 2.7 20.4 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,821 1 2 2.6 24.2 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 116,221 64,449 42,657 4,601 54,503 57,117 478 3 85,314 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 5 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 455 416 43 21.8 osh-cpython
31 no-host abuild-print-help 23 22 2 8.7 osh-native
1 no-host bin-true 677 495 212 2.9 bash
9 no-host bin-true 546 425 130 1.4 dash
17 no-host bin-true 2,218 1,448 1,019 17.3 osh-cpython
25 no-host bin-true 815 571 259 8.1 osh-native
2 no-host configure.cpython 15,146 9,016 6,528 27.4 bash
10 no-host configure.cpython 15,109 9,078 6,448 27.3 dash
18 no-host configure.cpython 28,295 17,204 12,900 27.4 osh-cpython
26 no-host configure.cpython 15,273 9,096 6,434 27.5 osh-native
4 no-host configure.ocaml 3,839 1,569 1,289 20.6 bash
12 no-host configure.ocaml 3,766 1,547 1,238 20.6 dash
20 no-host configure.ocaml 4,592 2,196 1,598 20.6 osh-cpython
28 no-host configure.ocaml 3,825 1,646 1,219 20.4 osh-native
5 no-host configure.tcc 47 30 18 19.3 bash
13 no-host configure.tcc 42 19 23 19.3 dash
21 no-host configure.tcc 192 154 41 19.3 osh-cpython
29 no-host configure.tcc 49 31 19 19.4 osh-native
3 no-host configure.util-linux 14,060 8,948 5,584 30.0 bash
11 no-host configure.util-linux 14,836 9,084 6,252 30.1 dash
19 no-host configure.util-linux 31,160 21,076 11,153 30.3 osh-cpython
27 no-host configure.util-linux 14,532 8,752 5,978 30.1 osh-native
6 no-host configure.yash 1,810 1,040 775 24.4 bash
14 no-host configure.yash 1,774 999 778 24.4 dash
22 no-host configure.yash 2,441 1,570 915 24.5 osh-cpython
30 no-host configure.yash 1,821 1,013 812 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 32 16 17.2 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,576 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,485 0 0 0 8 0 47 12 osh-cpython
31 no-host abuild-print-help 3,196 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 105,340 0 0 0 8 0 1,990 98 bash
9 no-host bin-true 65,403 0 0 0 8 0 1,994 54 dash
17 no-host bin-true 750,414 0 0 0 8 0 1,993 223 osh-cpython
25 no-host bin-true 127,203 0 0 0 16 0 1,993 89 osh-native
2 no-host configure.cpython 2,212,728 0 0 0 32,928 0 14,565 1,052 bash
10 no-host configure.cpython 2,243,941 1 0 0 32,992 0 14,683 1,143 dash
18 no-host configure.cpython 6,118,754 0 0 0 27,512 0 13,303 1,353 osh-cpython
26 no-host configure.cpython 2,227,498 0 0 0 27,520 0 13,256 1,191 osh-native
4 no-host configure.ocaml 410,954 0 0 0 5,120 0 1,947 189 bash
12 no-host configure.ocaml 391,630 0 0 0 5,112 0 1,921 170 dash
20 no-host configure.ocaml 637,775 0 0 0 5,112 0 1,862 187 osh-cpython
28 no-host configure.ocaml 413,262 0 0 0 5,120 0 1,935 173 osh-native
5 no-host configure.tcc 6,540 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,476 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,256 0 0 0 96 0 53 17 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,093,479 0 0 0 42,400 0 18,676 1,149 bash
11 no-host configure.util-linux 2,258,238 1 0 0 42,584 0 17,505 1,091 dash
19 no-host configure.util-linux 5,328,108 11 0 0 39,112 0 17,086 1,280 osh-cpython
27 no-host configure.util-linux 2,016,194 0 0 0 39,128 0 17,199 1,100 osh-native
6 no-host configure.yash 256,794 0 0 0 4,120 0 868 95 bash
14 no-host configure.yash 244,558 0 0 0 3,720 0 869 79 dash
22 no-host configure.yash 385,368 0 0 0 3,728 0 858 93 osh-cpython
30 no-host configure.yash 257,944 0 0 0 3,736 0 851 90 osh-native
0 no-host hello-world 151 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,649 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 343 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-cd902d76
dash dash-308ec8e6
osh-cpython osh-c057fca1
osh-native osh-75e1121f
host label host id
no-host no-host-e54d7702