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 458 22 23.87 1.17
bin-true no-host 675 545 2,218 812 3.29 1.20
configure.cpython no-host 14,904 15,029 28,196 15,162 1.89 1.02
configure.ocaml no-host 3,804 3,744 4,616 3,812 1.21 1.00
configure.tcc no-host 47 41 189 48 3.98 1.02
configure.util-linux no-host 13,920 14,738 30,837 14,357 2.22 1.03
configure.yash no-host 1,827 1,743 2,424 1,825 1.33 1.00
hello-world no-host 2 1 47 3 30.99 1.85

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,516 1,137 23,235 3,214 9.23 1.28
bin-true no-host 105,362 66,475 751,074 126,304 7.13 1.20
configure.cpython no-host 2,221,911 2,243,789 6,139,713 2,229,909 2.76 1.00
configure.ocaml no-host 410,742 391,062 637,461 413,262 1.55 1.01
configure.tcc no-host 6,584 5,487 23,236 6,981 3.53 1.06
configure.util-linux no-host 2,101,899 2,255,176 5,334,060 2,011,164 2.54 0.96
configure.yash no-host 255,594 244,117 385,393 258,744 1.51 1.01
hello-world no-host 150 81 3,655 348 24.37 2.32

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.8 8.9 5.03 2.06
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.3 27.4 27.3 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.3 19.3 19.4 1.01 1.01
configure.util-linux no-host 30.3 29.9 30.3 30.0 1.00 0.99
configure.yash no-host 24.5 24.5 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.4 17.2 6.2 5.95 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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 812 1 2 2.7 8.0 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,162 1 61 15.8 27.3 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,357 3 60 22.2 30.0 2,703,262 44,762 65,808 126,121 1,320,489 1,256,652 49,081 41 131,616 1
configure.ocaml no-host 3,812 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 48 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,825 1 2 2.6 24.4 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 22 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 19 17 3 4.3 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 458 406 56 21.8 osh-cpython
31 no-host abuild-print-help 22 12 11 8.9 osh-native
1 no-host bin-true 675 503 204 3.0 bash
9 no-host bin-true 545 421 133 1.4 dash
17 no-host bin-true 2,218 1,459 1,011 17.4 osh-cpython
25 no-host bin-true 812 577 248 8.0 osh-native
2 no-host configure.cpython 14,904 8,950 6,351 27.4 bash
10 no-host configure.cpython 15,029 9,127 6,326 27.3 dash
18 no-host configure.cpython 28,196 17,176 12,826 27.4 osh-cpython
26 no-host configure.cpython 15,162 8,967 6,462 27.3 osh-native
4 no-host configure.ocaml 3,804 1,570 1,268 20.6 bash
12 no-host configure.ocaml 3,744 1,590 1,170 20.6 dash
20 no-host configure.ocaml 4,616 2,195 1,625 20.6 osh-cpython
28 no-host configure.ocaml 3,812 1,620 1,231 20.6 osh-native
5 no-host configure.tcc 47 24 24 19.1 bash
13 no-host configure.tcc 41 21 20 19.3 dash
21 no-host configure.tcc 189 130 62 19.3 osh-cpython
29 no-host configure.tcc 48 31 17 19.4 osh-native
3 no-host configure.util-linux 13,920 8,796 5,595 30.3 bash
11 no-host configure.util-linux 14,738 9,357 5,873 29.9 dash
19 no-host configure.util-linux 30,837 20,456 11,451 30.3 osh-cpython
27 no-host configure.util-linux 14,357 8,503 6,050 30.0 osh-native
6 no-host configure.yash 1,827 1,113 722 24.5 bash
14 no-host configure.yash 1,743 1,074 673 24.5 dash
22 no-host configure.yash 2,424 1,498 967 24.4 osh-cpython
30 no-host configure.yash 1,825 1,120 709 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 47 31 15 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,516 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,137 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,235 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,214 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 105,362 0 0 0 8 0 1,987 50 bash
9 no-host bin-true 66,475 0 0 0 8 0 1,982 85 dash
17 no-host bin-true 751,074 0 0 0 8 0 1,997 237 osh-cpython
25 no-host bin-true 126,304 0 0 0 16 0 1,986 59 osh-native
2 no-host configure.cpython 2,221,911 0 0 0 32,928 0 14,424 1,110 bash
10 no-host configure.cpython 2,243,789 0 0 0 32,992 0 14,498 1,246 dash
18 no-host configure.cpython 6,139,713 1 0 0 27,512 0 13,202 1,198 osh-cpython
26 no-host configure.cpython 2,229,909 0 0 0 27,520 0 13,262 1,021 osh-native
4 no-host configure.ocaml 410,742 0 0 0 5,120 0 1,957 181 bash
12 no-host configure.ocaml 391,062 0 0 0 5,112 0 1,929 231 dash
20 no-host configure.ocaml 637,461 0 0 0 5,112 0 1,869 177 osh-cpython
28 no-host configure.ocaml 413,262 0 0 0 5,120 0 1,929 145 osh-native
5 no-host configure.tcc 6,584 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,487 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,236 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 6,981 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,101,899 0 0 0 42,400 0 18,571 1,106 bash
11 no-host configure.util-linux 2,255,176 0 0 0 42,584 0 17,474 1,009 dash
19 no-host configure.util-linux 5,334,060 4 0 0 39,120 0 17,132 1,138 osh-cpython
27 no-host configure.util-linux 2,011,164 0 0 0 39,120 0 17,058 1,005 osh-native
6 no-host configure.yash 255,594 0 0 0 4,120 0 868 89 bash
14 no-host configure.yash 244,117 0 0 0 3,720 0 871 85 dash
22 no-host configure.yash 385,393 0 0 0 3,728 0 853 88 osh-cpython
30 no-host configure.yash 258,744 0 0 0 3,736 0 848 78 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,655 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e206944f
dash dash-308ec8e6
osh-cpython osh-68620dac
osh-native osh-f31d6381
host label host id
no-host no-host-13226fd6