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 21 9 467 23 22.64 1.10
bin-true no-host 683 544 2,215 824 3.24 1.21
configure.cpython no-host 15,008 15,087 28,409 15,237 1.89 1.02
configure.ocaml no-host 3,812 3,719 4,650 3,870 1.22 1.02
configure.tcc no-host 47 41 192 49 4.04 1.04
configure.util-linux no-host 14,106 14,962 31,072 14,402 2.20 1.02
configure.yash no-host 1,805 1,751 2,470 1,828 1.37 1.01
hello-world no-host 2 1 48 3 32.21 1.88

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,574 1,109 23,516 3,206 9.14 1.25
bin-true no-host 107,352 65,399 757,119 129,189 7.05 1.20
configure.cpython no-host 2,225,485 2,244,554 6,155,866 2,231,249 2.77 1.00
configure.ocaml no-host 410,577 391,289 640,003 413,838 1.56 1.01
configure.tcc no-host 6,573 5,490 23,294 6,989 3.54 1.06
configure.util-linux no-host 2,104,434 2,264,813 5,339,647 2,019,356 2.54 0.96
configure.yash no-host 256,558 244,621 386,484 258,754 1.51 1.01
hello-world no-host 154 85 3,677 345 23.88 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.4 21.6 8.7 4.85 1.94
bin-true no-host 3.0 1.6 17.4 8.1 5.78 2.70
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.4 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.3 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.4 30.3 30.0 30.3 0.99 1.00
configure.yash no-host 24.1 24.4 24.2 24.5 1.01 1.02
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.3 6.2 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 824 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,237 1 60 15.8 27.4 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,402 2 59 22.2 30.3 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,870 1 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,828 1 2 2.6 24.5 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.7 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 21 16 5 4.5 bash
15 no-host abuild-print-help 9 5 5 3.4 dash
23 no-host abuild-print-help 467 415 55 21.6 osh-cpython
31 no-host abuild-print-help 23 12 11 8.7 osh-native
1 no-host bin-true 683 515 198 3.0 bash
9 no-host bin-true 544 424 130 1.6 dash
17 no-host bin-true 2,215 1,447 1,023 17.4 osh-cpython
25 no-host bin-true 824 573 265 8.1 osh-native
2 no-host configure.cpython 15,008 9,142 6,254 27.4 bash
10 no-host configure.cpython 15,087 9,081 6,421 27.4 dash
18 no-host configure.cpython 28,409 16,948 13,284 27.4 osh-cpython
26 no-host configure.cpython 15,237 8,968 6,524 27.4 osh-native
4 no-host configure.ocaml 3,812 1,546 1,301 20.4 bash
12 no-host configure.ocaml 3,719 1,567 1,172 20.4 dash
20 no-host configure.ocaml 4,650 2,197 1,659 20.6 osh-cpython
28 no-host configure.ocaml 3,870 1,649 1,260 20.6 osh-native
5 no-host configure.tcc 47 32 16 19.3 bash
13 no-host configure.tcc 41 19 23 19.3 dash
21 no-host configure.tcc 192 134 61 19.3 osh-cpython
29 no-host configure.tcc 49 24 26 19.3 osh-native
3 no-host configure.util-linux 14,106 8,946 5,632 30.4 bash
11 no-host configure.util-linux 14,962 9,170 6,287 30.3 dash
19 no-host configure.util-linux 31,072 20,544 11,593 30.0 osh-cpython
27 no-host configure.util-linux 14,402 8,604 5,995 30.3 osh-native
6 no-host configure.yash 1,805 1,025 787 24.1 bash
14 no-host configure.yash 1,751 1,003 751 24.4 dash
22 no-host configure.yash 2,470 1,514 999 24.2 osh-cpython
30 no-host configure.yash 1,828 1,093 735 24.5 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 48 30 18 17.3 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,574 0 0 0 16 0 40 3 bash
15 no-host abuild-print-help 1,109 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,516 0 0 0 8 0 47 9 osh-cpython
31 no-host abuild-print-help 3,206 0 0 0 16 0 41 4 osh-native
1 no-host bin-true 107,352 0 0 0 8 0 1,992 54 bash
9 no-host bin-true 65,399 0 0 0 8 0 1,991 31 dash
17 no-host bin-true 757,119 0 0 0 8 0 1,989 99 osh-cpython
25 no-host bin-true 129,189 0 0 0 16 0 1,985 143 osh-native
2 no-host configure.cpython 2,225,485 0 0 0 32,928 0 14,515 1,191 bash
10 no-host configure.cpython 2,244,554 0 0 0 32,992 0 14,603 1,041 dash
18 no-host configure.cpython 6,155,866 1 0 0 27,512 0 13,322 1,259 osh-cpython
26 no-host configure.cpython 2,231,249 0 0 0 27,520 0 13,338 1,030 osh-native
4 no-host configure.ocaml 410,577 0 0 0 5,120 0 1,972 155 bash
12 no-host configure.ocaml 391,289 0 0 0 5,112 0 1,938 155 dash
20 no-host configure.ocaml 640,003 0 0 0 5,112 0 1,855 200 osh-cpython
28 no-host configure.ocaml 413,838 0 0 0 5,120 0 1,938 172 osh-native
5 no-host configure.tcc 6,573 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,294 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 6,989 0 0 0 104 0 47 5 osh-native
3 no-host configure.util-linux 2,104,434 1 0 0 42,400 0 18,497 1,082 bash
11 no-host configure.util-linux 2,264,813 0 0 0 42,584 0 17,452 1,108 dash
19 no-host configure.util-linux 5,339,647 11 0 0 39,112 0 17,043 1,129 osh-cpython
27 no-host configure.util-linux 2,019,356 0 0 0 39,120 0 17,121 1,108 osh-native
6 no-host configure.yash 256,558 0 0 0 4,120 0 863 81 bash
14 no-host configure.yash 244,621 0 0 0 3,720 0 866 75 dash
22 no-host configure.yash 386,484 0 0 0 3,728 0 855 163 osh-cpython
30 no-host configure.yash 258,754 0 0 0 3,736 0 852 89 osh-native
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,677 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 345 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-7a00eab9
dash dash-308ec8e6
osh-cpython osh-17eeb1a5
osh-native osh-a41164f1
host label host id
no-host no-host-1c33b689