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 469 23 24.00 1.17
bin-true no-host 686 543 2,225 824 3.24 1.20
configure.cpython no-host 15,109 15,249 29,035 15,350 1.92 1.02
configure.ocaml no-host 3,859 3,827 4,692 3,840 1.22 1.00
configure.tcc no-host 49 42 195 49 4.00 1.01
configure.util-linux no-host 14,099 15,149 31,626 14,512 2.24 1.03
configure.yash no-host 1,855 1,821 2,489 1,850 1.34 1.00
hello-world no-host 1 1 50 3 33.26 1.99

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,522 1,097 23,144 3,211 9.18 1.27
bin-true no-host 107,319 67,434 732,759 126,260 6.83 1.18
configure.cpython no-host 2,213,551 2,239,274 6,091,369 2,236,984 2.75 1.01
configure.ocaml no-host 410,459 391,019 635,229 413,307 1.55 1.01
configure.tcc no-host 6,576 5,482 22,982 7,011 3.49 1.07
configure.util-linux no-host 2,092,492 2,258,269 5,288,831 2,019,090 2.53 0.96
configure.yash no-host 256,826 244,481 383,721 259,036 1.49 1.01
hello-world no-host 152 84 3,640 341 23.95 2.24

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.5 21.5 8.8 4.97 2.03
bin-true no-host 2.9 1.3 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.5 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.7 20.6 20.6 20.6 0.99 0.99
configure.tcc no-host 19.4 19.3 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.1 30.0 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.2 0.99 0.99
hello-world no-host 2.8 1.4 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 824 1 2 2.7 8.0 154,658 12,890 2,792 11,730 78,319 64,609 5,012 3 50,000 0
configure.cpython no-host 15,350 1 62 15.9 27.4 1,772,935 49,191 28,502 101,923 908,314 762,698 42,399 60 50,000 0
configure.util-linux no-host 14,512 3 61 22.2 30.1 2,703,259 44,760 65,786 126,121 1,320,486 1,256,652 49,081 41 131,572 1
configure.ocaml no-host 3,840 1 2 2.7 20.6 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,850 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.8 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 20 10 10 4.3 bash
15 no-host abuild-print-help 10 5 5 3.5 dash
23 no-host abuild-print-help 469 404 68 21.5 osh-cpython
31 no-host abuild-print-help 23 17 6 8.8 osh-native
1 no-host bin-true 686 507 208 2.9 bash
9 no-host bin-true 543 427 129 1.3 dash
17 no-host bin-true 2,225 1,448 1,041 17.3 osh-cpython
25 no-host bin-true 824 579 262 8.0 osh-native
2 no-host configure.cpython 15,109 9,128 6,378 27.4 bash
10 no-host configure.cpython 15,249 9,069 6,601 27.5 dash
18 no-host configure.cpython 29,035 17,521 13,371 27.5 osh-cpython
26 no-host configure.cpython 15,350 9,230 6,393 27.4 osh-native
4 no-host configure.ocaml 3,859 1,599 1,287 20.7 bash
12 no-host configure.ocaml 3,827 1,552 1,294 20.6 dash
20 no-host configure.ocaml 4,692 2,264 1,638 20.6 osh-cpython
28 no-host configure.ocaml 3,840 1,575 1,303 20.6 osh-native
5 no-host configure.tcc 49 25 24 19.4 bash
13 no-host configure.tcc 42 31 12 19.3 dash
21 no-host configure.tcc 195 140 58 19.4 osh-cpython
29 no-host configure.tcc 49 30 20 19.4 osh-native
3 no-host configure.util-linux 14,099 8,865 5,711 30.1 bash
11 no-host configure.util-linux 15,149 9,153 6,499 30.0 dash
19 no-host configure.util-linux 31,626 20,987 11,724 30.3 osh-cpython
27 no-host configure.util-linux 14,512 8,693 6,031 30.1 osh-native
6 no-host configure.yash 1,855 1,114 750 24.4 bash
14 no-host configure.yash 1,821 1,084 740 24.2 dash
22 no-host configure.yash 2,489 1,502 1,031 24.2 osh-cpython
30 no-host configure.yash 1,850 1,077 777 24.2 osh-native
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 37 12 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,522 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,144 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,211 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 107,319 0 0 0 8 0 1,994 126 bash
9 no-host bin-true 67,434 0 0 0 8 0 1,983 63 dash
17 no-host bin-true 732,759 0 0 0 8 0 1,999 285 osh-cpython
25 no-host bin-true 126,260 0 0 0 16 0 1,991 162 osh-native
2 no-host configure.cpython 2,213,551 0 0 0 32,928 0 14,437 1,164 bash
10 no-host configure.cpython 2,239,274 1 0 0 32,992 0 14,616 1,317 dash
18 no-host configure.cpython 6,091,369 0 0 0 27,512 0 13,263 1,264 osh-cpython
26 no-host configure.cpython 2,236,984 0 0 0 27,520 0 13,248 953 osh-native
4 no-host configure.ocaml 410,459 0 0 0 5,120 0 1,958 186 bash
12 no-host configure.ocaml 391,019 0 0 0 5,112 0 1,884 149 dash
20 no-host configure.ocaml 635,229 1 0 0 5,112 0 1,861 165 osh-cpython
28 no-host configure.ocaml 413,307 0 0 0 5,120 0 1,937 172 osh-native
5 no-host configure.tcc 6,576 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 22,982 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 7,011 0 0 0 104 0 47 1 osh-native
3 no-host configure.util-linux 2,092,492 0 0 0 42,400 0 18,561 1,114 bash
11 no-host configure.util-linux 2,258,269 0 0 0 42,584 0 17,458 1,228 dash
19 no-host configure.util-linux 5,288,831 9 0 0 39,112 0 17,052 1,434 osh-cpython
27 no-host configure.util-linux 2,019,090 1 0 0 39,128 0 17,143 1,107 osh-native
6 no-host configure.yash 256,826 0 0 0 4,120 0 870 88 bash
14 no-host configure.yash 244,481 0 0 0 3,720 0 867 113 dash
22 no-host configure.yash 383,721 0 0 0 3,728 0 856 96 osh-cpython
30 no-host configure.yash 259,036 0 0 0 3,736 0 851 96 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,640 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-862d1017
dash dash-308ec8e6
osh-cpython osh-40f2ae5b
osh-native osh-a763bbaf
host label host id
no-host no-host-e54d7702