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 459 22 24.07 1.15
bin-true no-host 673 538 2,230 815 3.31 1.21
configure.cpython no-host 14,832 14,950 28,395 15,102 1.91 1.02
configure.ocaml no-host 3,766 3,728 4,598 3,805 1.22 1.01
configure.tcc no-host 47 42 189 48 4.02 1.03
configure.util-linux no-host 13,881 14,759 31,016 14,302 2.23 1.03
configure.yash no-host 1,846 1,761 2,417 1,808 1.31 0.98
hello-world no-host 1 1 47 3 31.91 1.90

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,554 1,086 23,186 3,192 9.08 1.25
bin-true no-host 105,340 65,524 745,779 127,142 7.08 1.21
configure.cpython no-host 2,221,243 2,244,451 6,122,451 2,229,370 2.76 1.00
configure.ocaml no-host 410,734 390,287 635,900 413,384 1.55 1.01
configure.tcc no-host 6,561 5,483 23,129 7,008 3.53 1.07
configure.util-linux no-host 2,097,447 2,253,153 5,323,911 2,010,624 2.54 0.96
configure.yash no-host 256,156 244,500 383,517 258,986 1.50 1.01
hello-world no-host 152 82 3,663 342 24.10 2.25

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.4 21.8 8.8 5.03 2.03
bin-true no-host 3.0 1.6 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.1 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.1 19.3 19.1 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.2 24.4 1.00 1.01
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.2 6.2 3,715 3,715 0 681 1,869 1,165 2 0 50,000 0
bin-true no-host 815 1 2 2.7 8.0 154,680 12,986 2,793 11,734 78,338 64,608 5,012 3 50,000 0
configure.cpython no-host 15,102 1 59 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,302 2 58 22.2 30.1 2,703,395 44,760 65,806 126,121 1,320,588 1,256,686 49,081 41 131,612 1
configure.ocaml no-host 3,805 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 48 0 0 1.3 19.1 30,518 30,518 0 1,599 14,793 14,126 350 0 50,000 0
configure.yash no-host 1,808 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 22 1 2 2.8 8.8 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 18 1 4.3 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 459 410 52 21.8 osh-cpython
31 no-host abuild-print-help 22 22 0 8.8 osh-native
1 no-host bin-true 673 521 183 3.0 bash
9 no-host bin-true 538 409 137 1.6 dash
17 no-host bin-true 2,230 1,436 1,054 17.4 osh-cpython
25 no-host bin-true 815 604 227 8.0 osh-native
2 no-host configure.cpython 14,832 8,987 6,244 27.4 bash
10 no-host configure.cpython 14,950 9,076 6,294 27.1 dash
18 no-host configure.cpython 28,395 17,446 12,793 27.5 osh-cpython
26 no-host configure.cpython 15,102 8,791 6,579 27.4 osh-native
4 no-host configure.ocaml 3,766 1,552 1,255 20.6 bash
12 no-host configure.ocaml 3,728 1,591 1,154 20.4 dash
20 no-host configure.ocaml 4,598 2,217 1,584 20.6 osh-cpython
28 no-host configure.ocaml 3,805 1,621 1,223 20.6 osh-native
5 no-host configure.tcc 47 22 25 19.4 bash
13 no-host configure.tcc 42 29 13 19.1 dash
21 no-host configure.tcc 189 156 35 19.3 osh-cpython
29 no-host configure.tcc 48 34 15 19.1 osh-native
3 no-host configure.util-linux 13,881 8,887 5,473 30.1 bash
11 no-host configure.util-linux 14,759 8,937 6,306 30.1 dash
19 no-host configure.util-linux 31,016 20,685 11,408 30.0 osh-cpython
27 no-host configure.util-linux 14,302 8,642 5,861 30.1 osh-native
6 no-host configure.yash 1,846 1,047 781 24.2 bash
14 no-host configure.yash 1,761 1,046 719 24.4 dash
22 no-host configure.yash 2,417 1,403 1,057 24.2 osh-cpython
30 no-host configure.yash 1,808 1,053 759 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 47 32 15 17.2 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,554 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,086 0 0 0 8 0 38 1 dash
23 no-host abuild-print-help 23,186 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,192 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 105,340 0 0 0 8 0 1,989 56 bash
9 no-host bin-true 65,524 0 0 0 8 0 1,994 55 dash
17 no-host bin-true 745,779 0 0 0 8 0 1,995 299 osh-cpython
25 no-host bin-true 127,142 0 0 0 16 0 1,992 155 osh-native
2 no-host configure.cpython 2,221,243 0 0 0 32,928 0 14,503 1,169 bash
10 no-host configure.cpython 2,244,451 0 0 0 32,992 0 14,561 983 dash
18 no-host configure.cpython 6,122,451 0 0 0 27,512 0 13,273 1,153 osh-cpython
26 no-host configure.cpython 2,229,370 0 0 0 27,520 0 13,315 1,077 osh-native
4 no-host configure.ocaml 410,734 0 0 0 5,120 0 1,948 162 bash
12 no-host configure.ocaml 390,287 0 0 0 5,112 0 1,876 242 dash
20 no-host configure.ocaml 635,900 0 0 0 5,112 0 1,871 199 osh-cpython
28 no-host configure.ocaml 413,384 0 0 0 5,120 0 1,926 181 osh-native
5 no-host configure.tcc 6,561 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,483 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,129 0 0 0 96 0 53 10 osh-cpython
29 no-host configure.tcc 7,008 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,097,447 0 0 0 42,400 0 18,632 1,052 bash
11 no-host configure.util-linux 2,253,153 0 0 0 42,584 0 17,529 1,110 dash
19 no-host configure.util-linux 5,323,911 8 0 0 39,120 0 17,053 1,306 osh-cpython
27 no-host configure.util-linux 2,010,624 2 0 0 39,128 0 17,056 1,084 osh-native
6 no-host configure.yash 256,156 0 0 0 4,120 0 888 73 bash
14 no-host configure.yash 244,500 0 0 0 3,720 0 866 95 dash
22 no-host configure.yash 383,517 0 0 0 3,728 0 858 76 osh-cpython
30 no-host configure.yash 258,986 0 0 0 3,736 0 854 80 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,663 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 342 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-1c0bb80f
dash dash-308ec8e6
osh-cpython osh-bc97a00c
osh-native osh-a361c83a
host label host id
no-host no-host-e54d7702