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 454 22 24.07 1.19
bin-true no-host 669 545 2,243 809 3.35 1.21
configure.cpython no-host 14,852 15,069 28,431 15,212 1.91 1.02
configure.ocaml no-host 3,783 3,740 4,576 3,790 1.21 1.00
configure.tcc no-host 48 41 190 49 3.99 1.02
configure.util-linux no-host 14,029 14,982 31,001 14,393 2.21 1.03
configure.yash no-host 1,803 1,742 2,424 1,804 1.34 1.00
hello-world no-host 1 1 48 3 32.58 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,528 1,103 23,433 3,230 9.27 1.28
bin-true no-host 105,299 65,495 752,613 126,197 7.15 1.20
configure.cpython no-host 2,226,330 2,246,152 6,133,112 2,231,921 2.75 1.00
configure.ocaml no-host 410,674 391,457 639,875 413,364 1.56 1.01
configure.tcc no-host 6,543 5,477 23,264 6,978 3.56 1.07
configure.util-linux no-host 2,097,769 2,251,685 5,325,945 2,012,851 2.54 0.96
configure.yash no-host 255,038 244,743 383,558 258,814 1.50 1.01
hello-world no-host 152 80 3,686 349 24.25 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.3 3.4 21.7 9.2 5.02 2.12
bin-true no-host 2.9 1.4 17.6 8.1 6.09 2.82
configure.cpython no-host 27.1 27.3 27.4 27.3 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 0.99 0.99
configure.util-linux no-host 30.1 30.0 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.4 24.5 24.4 1.01 1.01
hello-world no-host 2.8 1.4 17.3 6.3 6.29 2.29

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.3 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 809 1 2 2.7 8.1 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,212 1 59 15.8 27.3 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,393 3 60 22.2 30.1 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,790 0 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,804 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 4 5 3.4 dash
23 no-host abuild-print-help 454 403 54 21.7 osh-cpython
31 no-host abuild-print-help 22 11 12 9.2 osh-native
1 no-host bin-true 669 502 198 2.9 bash
9 no-host bin-true 545 412 142 1.4 dash
17 no-host bin-true 2,243 1,415 1,090 17.6 osh-cpython
25 no-host bin-true 809 570 253 8.1 osh-native
2 no-host configure.cpython 14,852 8,915 6,339 27.1 bash
10 no-host configure.cpython 15,069 9,174 6,314 27.3 dash
18 no-host configure.cpython 28,431 17,382 12,876 27.4 osh-cpython
26 no-host configure.cpython 15,212 9,047 6,434 27.3 osh-native
4 no-host configure.ocaml 3,783 1,610 1,212 20.6 bash
12 no-host configure.ocaml 3,740 1,594 1,165 20.6 dash
20 no-host configure.ocaml 4,576 2,185 1,592 20.6 osh-cpython
28 no-host configure.ocaml 3,790 1,694 1,133 20.6 osh-native
5 no-host configure.tcc 48 27 21 19.4 bash
13 no-host configure.tcc 41 28 13 19.4 dash
21 no-host configure.tcc 190 142 51 19.3 osh-cpython
29 no-host configure.tcc 49 26 23 19.3 osh-native
3 no-host configure.util-linux 14,029 8,857 5,637 30.1 bash
11 no-host configure.util-linux 14,982 9,306 6,169 30.0 dash
19 no-host configure.util-linux 31,001 20,602 11,493 30.1 osh-cpython
27 no-host configure.util-linux 14,393 8,586 6,005 30.1 osh-native
6 no-host configure.yash 1,803 1,083 729 24.2 bash
14 no-host configure.yash 1,742 1,014 732 24.4 dash
22 no-host configure.yash 2,424 1,479 988 24.5 osh-cpython
30 no-host configure.yash 1,804 1,014 794 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 24 23 17.3 osh-cpython
24 no-host hello-world 3 0 3 6.3 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,528 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,103 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,433 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,230 0 0 0 16 0 41 3 osh-native
1 no-host bin-true 105,299 0 0 0 8 0 1,991 101 bash
9 no-host bin-true 65,495 0 0 0 8 0 1,990 115 dash
17 no-host bin-true 752,613 0 0 0 8 0 1,993 112 osh-cpython
25 no-host bin-true 126,197 0 0 0 16 0 1,986 116 osh-native
2 no-host configure.cpython 2,226,330 0 0 0 32,928 0 14,501 1,057 bash
10 no-host configure.cpython 2,246,152 0 0 0 32,992 0 14,536 1,199 dash
18 no-host configure.cpython 6,133,112 0 0 0 27,512 0 13,310 1,201 osh-cpython
26 no-host configure.cpython 2,231,921 0 0 0 27,520 0 13,323 973 osh-native
4 no-host configure.ocaml 410,674 0 0 0 5,120 0 1,958 153 bash
12 no-host configure.ocaml 391,457 0 0 0 5,112 0 1,939 175 dash
20 no-host configure.ocaml 639,875 0 0 0 5,112 0 1,855 195 osh-cpython
28 no-host configure.ocaml 413,364 0 0 0 5,120 0 1,932 179 osh-native
5 no-host configure.tcc 6,543 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,477 0 0 0 96 0 47 0 dash
21 no-host configure.tcc 23,264 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,978 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,097,769 0 0 0 42,400 0 18,576 1,156 bash
11 no-host configure.util-linux 2,251,685 0 0 0 42,584 0 17,699 1,169 dash
19 no-host configure.util-linux 5,325,945 9 0 0 39,112 0 17,128 1,174 osh-cpython
27 no-host configure.util-linux 2,012,851 2 0 0 39,120 0 17,060 1,010 osh-native
6 no-host configure.yash 255,038 0 0 0 4,120 0 870 93 bash
14 no-host configure.yash 244,743 0 0 0 3,720 0 867 83 dash
22 no-host configure.yash 383,558 0 0 0 3,728 0 855 103 osh-cpython
30 no-host configure.yash 258,814 0 0 0 3,736 0 850 98 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,686 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-abe666e4
dash dash-308ec8e6
osh-cpython osh-a4183817
osh-native osh-c1729c16
host label host id
no-host no-host-556df3ee