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 457 22 23.85 1.15
bin-true no-host 679 541 2,234 805 3.29 1.18
configure.cpython no-host 14,976 14,957 28,476 15,190 1.90 1.01
configure.ocaml no-host 3,775 3,729 4,624 3,820 1.22 1.01
configure.tcc no-host 47 41 191 48 4.04 1.02
configure.util-linux no-host 13,922 14,773 30,926 14,303 2.22 1.03
configure.yash no-host 1,802 1,760 2,426 1,826 1.35 1.01
hello-world no-host 1 1 48 3 32.99 2.03

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,543 1,115 22,941 3,193 9.02 1.26
bin-true no-host 108,325 65,461 758,839 124,210 7.01 1.15
configure.cpython no-host 2,222,953 2,242,839 6,190,790 2,226,761 2.78 1.00
configure.ocaml no-host 410,240 390,747 640,594 413,396 1.56 1.01
configure.tcc no-host 6,535 5,478 23,329 6,982 3.57 1.07
configure.util-linux no-host 2,105,464 2,261,093 5,325,605 1,998,512 2.53 0.95
configure.yash no-host 255,991 244,484 384,799 258,391 1.50 1.01
hello-world no-host 153 80 3,697 347 24.16 2.27

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.5 21.9 8.9 5.06 2.06
bin-true no-host 3.0 1.6 17.4 8.0 5.78 2.65
configure.cpython no-host 27.1 27.4 27.4 27.4 1.01 1.01
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.0 30.1 1.00 1.00
configure.yash no-host 24.5 24.5 24.4 24.4 0.99 0.99
hello-world no-host 2.9 1.4 17.4 6.0 6.04 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.3 6.0 3,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 805 1 2 2.6 8.0 154,714 13,066 2,818 9,734 78,361 66,619 3,008 3 50,000 0
configure.cpython no-host 15,190 1 60 15.0 27.4 1,772,690 49,108 28,528 86,381 908,113 778,196 22,694 60 50,000 0
configure.util-linux no-host 14,303 3 58 21.3 30.1 2,703,426 42,745 65,832 109,643 1,320,611 1,273,172 27,391 41 131,664 1
configure.ocaml no-host 3,820 1 2 2.6 20.4 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,826 1 2 2.6 24.4 139,717 7,961 6,620 6,320 70,321 63,076 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,292 64,471 42,681 4,555 54,561 57,176 270 3 85,362 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 15 5 4.3 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 457 413 47 21.9 osh-cpython
31 no-host abuild-print-help 22 14 9 8.9 osh-native
1 no-host bin-true 679 488 222 3.0 bash
9 no-host bin-true 541 424 126 1.6 dash
17 no-host bin-true 2,234 1,425 1,068 17.4 osh-cpython
25 no-host bin-true 805 567 252 8.0 osh-native
2 no-host configure.cpython 14,976 9,060 6,317 27.1 bash
10 no-host configure.cpython 14,957 8,941 6,430 27.4 dash
18 no-host configure.cpython 28,476 17,285 13,038 27.4 osh-cpython
26 no-host configure.cpython 15,190 8,867 6,596 27.4 osh-native
4 no-host configure.ocaml 3,775 1,587 1,226 20.6 bash
12 no-host configure.ocaml 3,729 1,592 1,153 20.6 dash
20 no-host configure.ocaml 4,624 2,089 1,743 20.6 osh-cpython
28 no-host configure.ocaml 3,820 1,690 1,168 20.4 osh-native
5 no-host configure.tcc 47 29 19 19.3 bash
13 no-host configure.tcc 41 29 13 19.3 dash
21 no-host configure.tcc 191 133 62 19.4 osh-cpython
29 no-host configure.tcc 48 24 24 19.4 osh-native
3 no-host configure.util-linux 13,922 8,894 5,495 30.1 bash
11 no-host configure.util-linux 14,773 9,075 6,190 30.3 dash
19 no-host configure.util-linux 30,926 20,671 11,332 30.0 osh-cpython
27 no-host configure.util-linux 14,303 8,655 5,846 30.1 osh-native
6 no-host configure.yash 1,802 1,069 741 24.5 bash
14 no-host configure.yash 1,760 1,000 763 24.5 dash
22 no-host configure.yash 2,426 1,558 911 24.4 osh-cpython
30 no-host configure.yash 1,826 1,021 808 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 48 28 20 17.4 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,543 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,115 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,941 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 108,325 0 0 0 8 0 1,986 50 bash
9 no-host bin-true 65,461 0 0 0 8 0 1,983 41 dash
17 no-host bin-true 758,839 0 0 0 8 0 1,993 111 osh-cpython
25 no-host bin-true 124,210 0 0 0 16 0 1,994 115 osh-native
2 no-host configure.cpython 2,222,953 0 0 0 32,928 0 14,542 1,030 bash
10 no-host configure.cpython 2,242,839 0 0 0 32,992 0 14,655 1,030 dash
18 no-host configure.cpython 6,190,790 1 0 0 27,512 0 13,218 1,148 osh-cpython
26 no-host configure.cpython 2,226,761 2 0 0 27,520 0 13,349 1,024 osh-native
4 no-host configure.ocaml 410,240 0 0 0 5,120 0 1,945 174 bash
12 no-host configure.ocaml 390,747 0 0 0 5,112 0 1,882 153 dash
20 no-host configure.ocaml 640,594 0 0 0 5,112 0 1,851 175 osh-cpython
28 no-host configure.ocaml 413,396 0 0 0 5,120 0 1,929 189 osh-native
5 no-host configure.tcc 6,535 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,478 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,329 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,982 0 0 0 104 0 47 6 osh-native
3 no-host configure.util-linux 2,105,464 0 0 0 42,400 0 18,613 973 bash
11 no-host configure.util-linux 2,261,093 0 0 0 42,584 0 17,452 1,070 dash
19 no-host configure.util-linux 5,325,605 2 0 0 39,120 0 16,941 1,266 osh-cpython
27 no-host configure.util-linux 1,998,512 0 0 0 39,120 0 16,974 1,169 osh-native
6 no-host configure.yash 255,991 0 0 0 4,120 0 871 69 bash
14 no-host configure.yash 244,484 0 0 0 3,720 0 867 78 dash
22 no-host configure.yash 384,799 0 0 0 3,728 0 856 96 osh-cpython
30 no-host configure.yash 258,391 0 0 0 3,736 0 846 90 osh-native
0 no-host hello-world 153 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,697 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 0 1 osh-native

Shell and Host

shell label shell id
bash bash-ec74f1cc
dash dash-308ec8e6
osh-cpython osh-8ca2c6cb
osh-native osh-88c74e36
host label host id
no-host no-host-556df3ee