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 459 23 23.75 1.17
bin-true no-host 687 552 2,255 820 3.28 1.19
configure.cpython no-host 15,417 15,493 29,212 15,582 1.89 1.01
configure.ocaml no-host 3,883 3,813 4,706 3,886 1.21 1.00
configure.tcc no-host 49 42 194 50 3.95 1.02
configure.util-linux no-host 14,338 15,181 31,863 14,734 2.22 1.03
configure.yash no-host 1,856 1,806 2,477 1,867 1.33 1.01
hello-world no-host 2 1 49 3 28.86 1.68

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,573 1,126 23,166 3,211 9.00 1.25
bin-true no-host 105,399 65,414 747,783 128,172 7.09 1.22
configure.cpython no-host 2,214,120 2,246,009 6,119,684 2,227,872 2.76 1.01
configure.ocaml no-host 410,122 391,473 636,075 414,255 1.55 1.01
configure.tcc no-host 6,580 5,471 23,165 6,994 3.52 1.06
configure.util-linux no-host 2,096,040 2,267,530 5,314,945 2,023,629 2.54 0.97
configure.yash no-host 256,569 243,710 383,466 258,338 1.49 1.01
hello-world no-host 153 84 3,656 343 23.90 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.5 3.5 21.5 8.9 4.82 2.00
bin-true no-host 3.0 1.4 17.3 7.9 5.74 2.61
configure.cpython no-host 27.5 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 22.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.3 30.1 1.01 1.00
configure.yash no-host 24.5 24.4 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.4 17.2 6.0 5.95 2.09

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.0 3,715 3,715 0 681 1,869 1,165 2 0 50,000 0
bin-true no-host 820 1 2 2.7 7.9 154,680 12,986 2,793 11,734 78,338 64,608 5,012 3 50,000 0
configure.cpython no-host 15,582 1 64 15.8 27.4 1,772,659 49,191 28,502 101,770 908,090 762,799 42,399 60 50,000 0
configure.util-linux no-host 14,734 3 63 22.2 30.1 2,703,395 44,760 65,786 126,121 1,320,588 1,256,686 49,081 41 131,572 1
configure.ocaml no-host 3,886 1 2 2.7 20.6 150,029 11,039 5,132 8,602 71,626 69,801 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.4 30,518 30,518 0 1,599 14,793 14,126 350 0 50,000 0
configure.yash no-host 1,867 1 2 2.6 24.4 139,686 7,958 6,594 7,554 70,298 61,834 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,261 64,449 42,657 4,609 54,538 57,114 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 10 10 4.5 bash
15 no-host abuild-print-help 10 6 4 3.5 dash
23 no-host abuild-print-help 459 426 37 21.5 osh-cpython
31 no-host abuild-print-help 23 11 12 8.9 osh-native
1 no-host bin-true 687 506 212 3.0 bash
9 no-host bin-true 552 413 148 1.4 dash
17 no-host bin-true 2,255 1,469 1,052 17.3 osh-cpython
25 no-host bin-true 820 579 257 7.9 osh-native
2 no-host configure.cpython 15,417 9,197 6,615 27.5 bash
10 no-host configure.cpython 15,493 9,369 6,542 27.4 dash
18 no-host configure.cpython 29,212 17,833 13,287 27.5 osh-cpython
26 no-host configure.cpython 15,582 9,187 6,659 27.4 osh-native
4 no-host configure.ocaml 3,883 1,699 1,222 20.6 bash
12 no-host configure.ocaml 3,813 1,550 1,283 22.6 dash
20 no-host configure.ocaml 4,706 2,217 1,691 20.6 osh-cpython
28 no-host configure.ocaml 3,886 1,657 1,270 20.6 osh-native
5 no-host configure.tcc 49 32 17 19.4 bash
13 no-host configure.tcc 42 32 11 19.4 dash
21 no-host configure.tcc 194 152 46 19.4 osh-cpython
29 no-host configure.tcc 50 30 21 19.4 osh-native
3 no-host configure.util-linux 14,338 9,043 5,772 30.0 bash
11 no-host configure.util-linux 15,181 9,380 6,298 30.1 dash
19 no-host configure.util-linux 31,863 21,429 11,556 30.3 osh-cpython
27 no-host configure.util-linux 14,734 8,805 6,130 30.1 osh-native
6 no-host configure.yash 1,856 1,089 773 24.5 bash
14 no-host configure.yash 1,806 1,036 774 24.4 dash
22 no-host configure.yash 2,477 1,561 959 24.4 osh-cpython
30 no-host configure.yash 1,867 1,127 743 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 49 32 16 17.2 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,573 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,126 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,166 0 0 0 8 0 47 6 osh-cpython
31 no-host abuild-print-help 3,211 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 105,399 0 0 0 8 0 1,989 244 bash
9 no-host bin-true 65,414 0 0 0 8 0 1,988 264 dash
17 no-host bin-true 747,783 0 0 0 8 0 1,990 196 osh-cpython
25 no-host bin-true 128,172 0 0 0 16 0 1,985 155 osh-native
2 no-host configure.cpython 2,214,120 0 0 0 32,928 0 14,500 1,362 bash
10 no-host configure.cpython 2,246,009 0 0 0 32,992 0 14,542 1,457 dash
18 no-host configure.cpython 6,119,684 0 0 0 27,512 0 13,267 1,150 osh-cpython
26 no-host configure.cpython 2,227,872 0 0 0 27,520 0 13,290 1,139 osh-native
4 no-host configure.ocaml 410,122 0 0 0 5,120 0 1,945 168 bash
12 no-host configure.ocaml 391,473 0 0 0 5,112 0 1,938 153 dash
20 no-host configure.ocaml 636,075 0 0 0 5,112 0 1,857 215 osh-cpython
28 no-host configure.ocaml 414,255 0 0 0 5,120 0 1,931 170 osh-native
5 no-host configure.tcc 6,580 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,165 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,994 0 0 0 104 0 47 0 osh-native
3 no-host configure.util-linux 2,096,040 0 0 0 42,400 0 18,459 1,020 bash
11 no-host configure.util-linux 2,267,530 0 0 0 42,584 0 17,445 1,160 dash
19 no-host configure.util-linux 5,314,945 8 0 0 39,120 0 17,178 1,224 osh-cpython
27 no-host configure.util-linux 2,023,629 0 0 0 39,120 0 17,026 1,050 osh-native
6 no-host configure.yash 256,569 0 0 0 4,120 0 870 96 bash
14 no-host configure.yash 243,710 0 0 0 3,720 0 872 77 dash
22 no-host configure.yash 383,466 0 0 0 3,728 0 853 101 osh-cpython
30 no-host configure.yash 258,338 0 0 0 3,736 0 852 85 osh-native
0 no-host hello-world 153 0 0 0 8 0 0 1 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,656 0 0 0 8 0 7 4 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-d8d93fa6
dash dash-308ec8e6
osh-cpython osh-f3d1feb8
osh-native osh-50e2b00d
host label host id
no-host no-host-e54d7702