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 20 10 467 23 23.61 1.18
bin-true no-host 678 551 2,274 826 3.35 1.22
configure.cpython no-host 15,648 15,785 29,792 15,988 1.90 1.02
configure.ocaml no-host 3,907 3,858 4,893 3,945 1.25 1.01
configure.tcc no-host 49 43 208 51 4.22 1.04
configure.util-linux no-host 14,592 15,653 33,102 15,228 2.27 1.04
configure.yash no-host 1,887 1,849 2,570 1,911 1.36 1.01
hello-world no-host 2 1 52 3 29.90 1.62

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,541 1,102 23,254 3,204 9.15 1.26
bin-true no-host 106,348 66,510 748,560 125,163 7.04 1.18
configure.cpython no-host 2,218,473 2,240,431 6,097,978 2,238,482 2.75 1.01
configure.ocaml no-host 410,956 390,958 637,014 413,524 1.55 1.01
configure.tcc no-host 6,574 5,504 23,190 7,013 3.53 1.07
configure.util-linux no-host 2,094,284 2,266,022 5,320,782 2,016,542 2.54 0.96
configure.yash no-host 256,634 245,010 384,152 257,384 1.50 1.00
hello-world no-host 152 82 3,656 344 24.05 2.26

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 9.0 4.85 2.03
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.3 27.3 27.5 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.4 20.4 20.6 0.99 1.00
configure.tcc no-host 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.1 30.0 30.0 1.00 1.00
configure.yash no-host 24.2 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.6 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.3 6.2 3,728 3,728 0 684 1,880 1,164 2 0 50,000 0
bin-true no-host 826 1 2 2.7 8.0 154,693 12,995 2,802 11,737 78,349 64,607 5,012 3 50,000 0
configure.cpython no-host 15,988 1 66 15.8 27.4 1,772,609 49,200 28,511 101,770 908,056 762,783 42,399 60 50,000 0
configure.util-linux no-host 15,228 3 66 22.2 30.0 2,703,273 44,769 65,795 126,121 1,320,500 1,256,652 49,081 41 131,590 1
configure.ocaml no-host 3,945 1 2 2.7 20.6 150,035 11,048 5,141 8,602 71,634 69,799 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,528 30,528 0 1,599 14,804 14,125 350 0 50,000 0
configure.yash no-host 1,911 1 2 2.6 24.4 139,692 7,967 6,603 7,554 70,306 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.0 116,271 64,458 42,666 4,610 54,549 57,112 478 3 85,332 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 20 15 6 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 467 413 57 21.6 osh-cpython
31 no-host abuild-print-help 23 12 12 9.0 osh-native
1 no-host bin-true 678 509 200 3.0 bash
9 no-host bin-true 551 424 136 1.4 dash
17 no-host bin-true 2,274 1,511 1,033 17.4 osh-cpython
25 no-host bin-true 826 582 256 8.0 osh-native
2 no-host configure.cpython 15,648 9,369 6,681 27.3 bash
10 no-host configure.cpython 15,785 9,514 6,697 27.3 dash
18 no-host configure.cpython 29,792 18,135 13,562 27.5 osh-cpython
26 no-host configure.cpython 15,988 9,255 6,998 27.4 osh-native
4 no-host configure.ocaml 3,907 1,749 1,198 20.6 bash
12 no-host configure.ocaml 3,858 1,576 1,300 20.4 dash
20 no-host configure.ocaml 4,893 2,284 1,823 20.4 osh-cpython
28 no-host configure.ocaml 3,945 1,683 1,302 20.6 osh-native
5 no-host configure.tcc 49 43 7 19.3 bash
13 no-host configure.tcc 43 38 5 19.3 dash
21 no-host configure.tcc 208 131 80 19.4 osh-cpython
29 no-host configure.tcc 51 38 14 19.4 osh-native
3 no-host configure.util-linux 14,592 9,199 5,866 30.1 bash
11 no-host configure.util-linux 15,653 9,515 6,627 30.1 dash
19 no-host configure.util-linux 33,102 21,888 12,355 30.0 osh-cpython
27 no-host configure.util-linux 15,228 9,066 6,367 30.0 osh-native
6 no-host configure.yash 1,887 1,094 800 24.2 bash
14 no-host configure.yash 1,849 1,082 768 24.4 dash
22 no-host configure.yash 2,570 1,606 1,009 24.4 osh-cpython
30 no-host configure.yash 1,911 1,127 789 24.4 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 52 36 16 17.2 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,541 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,254 0 0 0 8 0 47 11 osh-cpython
31 no-host abuild-print-help 3,204 0 0 0 16 0 41 4 osh-native
1 no-host bin-true 106,348 0 0 0 8 0 1,991 64 bash
9 no-host bin-true 66,510 0 0 0 8 0 1,989 55 dash
17 no-host bin-true 748,560 0 0 0 8 0 1,994 189 osh-cpython
25 no-host bin-true 125,163 0 0 0 16 0 1,993 64 osh-native
2 no-host configure.cpython 2,218,473 0 0 0 32,928 0 14,483 1,010 bash
10 no-host configure.cpython 2,240,431 1 0 0 32,992 0 14,673 1,094 dash
18 no-host configure.cpython 6,097,978 1 0 0 27,512 0 13,235 1,259 osh-cpython
26 no-host configure.cpython 2,238,482 0 0 0 27,520 0 13,263 997 osh-native
4 no-host configure.ocaml 410,956 0 0 0 5,120 0 1,949 154 bash
12 no-host configure.ocaml 390,958 0 0 0 5,112 0 1,896 156 dash
20 no-host configure.ocaml 637,014 0 0 0 5,112 0 1,855 178 osh-cpython
28 no-host configure.ocaml 413,524 0 0 0 5,120 0 1,934 168 osh-native
5 no-host configure.tcc 6,574 0 0 0 104 0 47 4 bash
13 no-host configure.tcc 5,504 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,190 0 0 0 96 0 53 11 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,094,284 0 0 0 42,408 0 18,607 1,052 bash
11 no-host configure.util-linux 2,266,022 0 0 0 42,592 0 17,415 1,130 dash
19 no-host configure.util-linux 5,320,782 17 0 0 39,136 0 17,090 1,430 osh-cpython
27 no-host configure.util-linux 2,016,542 4 0 0 39,128 0 17,143 1,086 osh-native
6 no-host configure.yash 256,634 0 0 0 4,120 0 867 84 bash
14 no-host configure.yash 245,010 0 0 0 3,720 0 869 84 dash
22 no-host configure.yash 384,152 0 0 0 3,728 0 857 108 osh-cpython
30 no-host configure.yash 257,384 0 0 0 3,736 0 853 84 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 1 bash
8 no-host hello-world 82 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 344 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-7ce32037
dash dash-308ec8e6
osh-cpython osh-2f318552
osh-native osh-4b7c7bd6
host label host id
no-host no-host-1c33b689