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 452 23 23.66 1.20
bin-true no-host 679 541 2,242 813 3.30 1.20
configure.cpython no-host 15,150 15,032 28,245 15,236 1.86 1.01
configure.ocaml no-host 3,860 3,778 4,648 3,825 1.20 0.99
configure.tcc no-host 48 42 191 51 4.01 1.06
configure.util-linux no-host 14,262 14,894 30,851 14,421 2.16 1.01
configure.yash no-host 1,818 1,758 2,442 1,847 1.34 1.02
hello-world no-host 2 1 48 3 31.39 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,547 1,094 23,206 3,235 9.11 1.27
bin-true no-host 108,315 66,394 752,050 127,136 6.94 1.17
configure.cpython no-host 2,220,101 2,241,826 6,124,612 2,229,941 2.76 1.00
configure.ocaml no-host 410,542 391,386 637,568 413,716 1.55 1.01
configure.tcc no-host 6,551 5,474 23,161 7,013 3.54 1.07
configure.util-linux no-host 2,093,329 2,262,362 5,324,560 2,014,618 2.54 0.96
configure.yash no-host 255,105 243,983 385,034 258,215 1.51 1.01
hello-world no-host 152 82 3,652 345 24.03 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.6 8.9 4.85 2.00
bin-true no-host 2.8 1.4 17.2 8.0 6.24 2.90
configure.cpython no-host 27.4 27.5 27.4 27.3 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.4 0.99 1.00
hello-world no-host 2.9 1.6 17.3 6.2 6.00 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 813 1 2 2.7 8.0 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 15,236 1 62 15.8 27.3 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,421 3 61 22.2 30.3 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,825 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 51 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,847 1 2 2.6 24.4 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.9 116,257 64,449 42,657 4,609 54,535 57,113 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 13 7 4.5 bash
15 no-host abuild-print-help 10 9 1 3.4 dash
23 no-host abuild-print-help 452 409 47 21.6 osh-cpython
31 no-host abuild-print-help 23 17 7 8.9 osh-native
1 no-host bin-true 679 520 193 2.8 bash
9 no-host bin-true 541 416 136 1.4 dash
17 no-host bin-true 2,242 1,481 1,014 17.2 osh-cpython
25 no-host bin-true 813 572 257 8.0 osh-native
2 no-host configure.cpython 15,150 9,177 6,372 27.4 bash
10 no-host configure.cpython 15,032 9,074 6,376 27.5 dash
18 no-host configure.cpython 28,245 17,324 12,723 27.4 osh-cpython
26 no-host configure.cpython 15,236 9,092 6,391 27.3 osh-native
4 no-host configure.ocaml 3,860 1,660 1,244 20.6 bash
12 no-host configure.ocaml 3,778 1,562 1,234 20.6 dash
20 no-host configure.ocaml 4,648 2,186 1,662 20.4 osh-cpython
28 no-host configure.ocaml 3,825 1,629 1,234 20.6 osh-native
5 no-host configure.tcc 48 28 20 19.4 bash
13 no-host configure.tcc 42 27 14 19.3 dash
21 no-host configure.tcc 191 149 45 19.4 osh-cpython
29 no-host configure.tcc 51 24 27 19.3 osh-native
3 no-host configure.util-linux 14,262 9,001 5,743 30.1 bash
11 no-host configure.util-linux 14,894 9,211 6,175 30.1 dash
19 no-host configure.util-linux 30,851 20,485 11,429 30.1 osh-cpython
27 no-host configure.util-linux 14,421 8,633 5,977 30.3 osh-native
6 no-host configure.yash 1,818 1,072 753 24.4 bash
14 no-host configure.yash 1,758 1,019 740 24.4 dash
22 no-host configure.yash 2,442 1,526 955 24.2 osh-cpython
30 no-host configure.yash 1,847 1,089 762 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 20 27 17.3 osh-cpython
24 no-host hello-world 3 0 3 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,547 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,094 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,206 0 0 0 8 0 47 5 osh-cpython
31 no-host abuild-print-help 3,235 0 0 0 16 0 41 2 osh-native
1 no-host bin-true 108,315 0 0 0 8 0 1,995 145 bash
9 no-host bin-true 66,394 0 0 0 8 0 1,991 36 dash
17 no-host bin-true 752,050 0 0 0 8 0 1,999 330 osh-cpython
25 no-host bin-true 127,136 0 0 0 16 0 1,988 55 osh-native
2 no-host configure.cpython 2,220,101 0 0 0 32,928 0 14,543 1,217 bash
10 no-host configure.cpython 2,241,826 0 0 0 32,992 0 14,602 1,186 dash
18 no-host configure.cpython 6,124,612 0 0 0 27,512 0 13,253 1,166 osh-cpython
26 no-host configure.cpython 2,229,941 0 0 0 27,520 0 13,320 1,160 osh-native
4 no-host configure.ocaml 410,542 0 0 0 5,120 0 1,926 235 bash
12 no-host configure.ocaml 391,386 0 0 0 5,112 0 1,889 148 dash
20 no-host configure.ocaml 637,568 0 0 0 5,112 0 1,859 174 osh-cpython
28 no-host configure.ocaml 413,716 0 0 0 5,120 0 1,928 179 osh-native
5 no-host configure.tcc 6,551 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,474 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,161 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 7,013 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,093,329 0 0 0 42,400 0 18,475 1,076 bash
11 no-host configure.util-linux 2,262,362 1 0 0 42,584 0 17,446 1,181 dash
19 no-host configure.util-linux 5,324,560 6 0 0 39,112 0 17,083 1,426 osh-cpython
27 no-host configure.util-linux 2,014,618 0 0 0 39,120 0 17,068 1,193 osh-native
6 no-host configure.yash 255,105 0 0 0 4,120 0 872 75 bash
14 no-host configure.yash 243,983 0 0 0 3,720 0 869 77 dash
22 no-host configure.yash 385,034 0 0 0 3,728 0 855 118 osh-cpython
30 no-host configure.yash 258,215 0 0 0 3,736 0 854 78 osh-native
0 no-host hello-world 152 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,652 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-87d7b039
dash dash-308ec8e6
osh-cpython osh-5a9d3a59
osh-native osh-5f6cce26
host label host id
no-host no-host-e54d7702