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 460 22 23.62 1.15
bin-true no-host 672 546 2,293 825 3.41 1.23
configure.cpython no-host 15,304 15,294 29,200 15,550 1.91 1.02
configure.ocaml no-host 3,893 3,851 4,712 3,903 1.21 1.00
configure.tcc no-host 49 42 193 50 3.93 1.02
configure.util-linux no-host 14,353 15,167 31,533 14,637 2.20 1.02
configure.yash no-host 1,859 1,861 2,503 1,848 1.35 0.99
hello-world no-host 1 1 51 3 34.16 2.28

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,556 1,091 22,993 3,189 9.00 1.25
bin-true no-host 105,326 65,401 759,330 127,169 7.21 1.21
configure.cpython no-host 2,225,468 2,243,192 6,164,731 2,224,885 2.77 1.00
configure.ocaml no-host 410,433 390,804 640,265 413,139 1.56 1.01
configure.tcc no-host 6,517 5,477 23,343 6,993 3.58 1.07
configure.util-linux no-host 2,106,309 2,258,641 5,325,624 2,000,716 2.53 0.95
configure.yash no-host 256,381 244,042 383,049 258,457 1.49 1.01
hello-world no-host 151 84 3,692 347 24.45 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.5 3.5 21.7 9.0 4.88 2.03
bin-true no-host 2.9 1.4 17.6 8.1 6.09 2.82
configure.cpython no-host 27.5 27.4 27.5 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.1 19.4 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.4 17.4 6.2 6.04 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.1 154,714 13,064 2,817 9,734 78,361 66,619 5,012 3 50,000 0
configure.cpython no-host 15,550 1 66 15.0 27.4 1,772,690 49,457 28,526 86,381 908,113 778,196 42,399 60 50,000 0
configure.util-linux no-host 14,637 3 65 21.3 30.3 2,703,426 44,785 65,811 109,643 1,320,611 1,273,172 49,081 41 131,622 1
configure.ocaml no-host 3,903 1 2 2.6 20.6 150,060 11,064 5,157 7,513 71,649 70,898 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 350 0 50,000 0
configure.yash no-host 1,848 1 2 2.6 24.2 139,717 7,982 6,618 6,320 70,321 63,076 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,292 64,473 42,681 4,555 54,561 57,176 478 3 85,362 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 11 9 4.5 bash
15 no-host abuild-print-help 10 9 1 3.5 dash
23 no-host abuild-print-help 460 425 39 21.7 osh-cpython
31 no-host abuild-print-help 22 12 11 9.0 osh-native
1 no-host bin-true 672 498 205 2.9 bash
9 no-host bin-true 546 414 140 1.4 dash
17 no-host bin-true 2,293 1,526 1,036 17.6 osh-cpython
25 no-host bin-true 825 565 275 8.1 osh-native
2 no-host configure.cpython 15,304 9,307 6,404 27.5 bash
10 no-host configure.cpython 15,294 9,189 6,538 27.4 dash
18 no-host configure.cpython 29,200 17,858 13,229 27.5 osh-cpython
26 no-host configure.cpython 15,550 9,246 6,570 27.4 osh-native
4 no-host configure.ocaml 3,893 1,553 1,368 20.6 bash
12 no-host configure.ocaml 3,851 1,723 1,142 20.6 dash
20 no-host configure.ocaml 4,712 2,298 1,625 20.6 osh-cpython
28 no-host configure.ocaml 3,903 1,667 1,274 20.6 osh-native
5 no-host configure.tcc 49 34 15 19.1 bash
13 no-host configure.tcc 42 19 23 19.4 dash
21 no-host configure.tcc 193 139 57 19.4 osh-cpython
29 no-host configure.tcc 50 19 32 19.4 osh-native
3 no-host configure.util-linux 14,353 9,050 5,778 30.3 bash
11 no-host configure.util-linux 15,167 9,469 6,194 30.1 dash
19 no-host configure.util-linux 31,533 20,993 11,626 30.1 osh-cpython
27 no-host configure.util-linux 14,637 8,834 6,025 30.3 osh-native
6 no-host configure.yash 1,859 1,100 768 24.4 bash
14 no-host configure.yash 1,861 1,019 846 24.2 dash
22 no-host configure.yash 2,503 1,509 1,037 24.4 osh-cpython
30 no-host configure.yash 1,848 1,040 813 24.2 osh-native
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 51 33 17 17.4 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,556 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,091 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,993 0 0 0 8 0 45 11 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 105,326 0 0 0 8 0 1,987 75 bash
9 no-host bin-true 65,401 0 0 0 8 0 1,986 28 dash
17 no-host bin-true 759,330 0 0 0 8 0 1,996 173 osh-cpython
25 no-host bin-true 127,169 0 0 0 16 0 1,983 58 osh-native
2 no-host configure.cpython 2,225,468 0 0 0 32,928 0 14,547 1,211 bash
10 no-host configure.cpython 2,243,192 1 0 0 32,992 0 14,657 1,274 dash
18 no-host configure.cpython 6,164,731 0 0 0 27,512 0 13,163 1,364 osh-cpython
26 no-host configure.cpython 2,224,885 0 0 0 27,520 0 13,244 1,071 osh-native
4 no-host configure.ocaml 410,433 0 0 0 5,120 0 1,949 206 bash
12 no-host configure.ocaml 390,804 0 0 0 5,112 0 1,875 133 dash
20 no-host configure.ocaml 640,265 0 0 0 5,112 0 1,857 187 osh-cpython
28 no-host configure.ocaml 413,139 0 0 0 5,120 0 1,926 171 osh-native
5 no-host configure.tcc 6,517 0 0 0 104 0 47 13 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,343 0 0 0 96 0 52 7 osh-cpython
29 no-host configure.tcc 6,993 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,106,309 1 0 0 42,408 0 18,507 1,182 bash
11 no-host configure.util-linux 2,258,641 0 0 0 42,592 0 17,349 1,143 dash
19 no-host configure.util-linux 5,325,624 15 0 0 39,112 0 16,939 1,190 osh-cpython
27 no-host configure.util-linux 2,000,716 0 0 0 39,120 0 17,016 1,049 osh-native
6 no-host configure.yash 256,381 0 0 0 4,120 0 871 81 bash
14 no-host configure.yash 244,042 0 0 0 3,720 0 868 93 dash
22 no-host configure.yash 383,049 0 0 0 3,728 0 852 95 osh-cpython
30 no-host configure.yash 258,457 0 0 0 3,736 0 846 84 osh-native
0 no-host hello-world 151 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,692 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-b5268e63
dash dash-308ec8e6
osh-cpython osh-8c665024
osh-native osh-1367ad65
host label host id
no-host no-host-556df3ee