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 456 22 23.80 1.14
bin-true no-host 679 543 2,223 819 3.27 1.21
configure.cpython no-host 14,954 14,991 28,405 15,131 1.90 1.01
configure.ocaml no-host 3,786 3,722 4,597 3,803 1.21 1.00
configure.tcc no-host 47 41 193 49 4.09 1.03
configure.util-linux no-host 13,947 14,788 30,966 14,312 2.22 1.03
configure.yash no-host 1,831 1,764 2,421 1,811 1.32 0.99
hello-world no-host 2 1 48 3 31.57 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,519 1,110 22,858 3,158 9.07 1.25
bin-true no-host 104,337 67,442 749,342 129,326 7.18 1.24
configure.cpython no-host 2,227,455 2,237,291 6,117,809 2,222,458 2.75 1.00
configure.ocaml no-host 411,068 390,909 638,440 413,633 1.55 1.01
configure.tcc no-host 6,559 5,464 23,264 6,954 3.55 1.06
configure.util-linux no-host 2,105,408 2,263,592 5,304,077 1,996,979 2.52 0.95
configure.yash no-host 256,583 244,599 384,083 257,563 1.50 1.00
hello-world no-host 154 82 3,692 348 23.97 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.3 3.5 21.9 8.9 5.06 2.06
bin-true no-host 3.0 1.4 17.7 8.1 5.87 2.70
configure.cpython no-host 27.4 27.4 27.5 27.5 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.3 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.4 30.3 30.3 30.1 1.00 0.99
configure.yash no-host 24.2 24.5 24.2 24.4 1.00 1.01
hello-world no-host 2.9 1.6 17.4 6.2 6.05 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,736 3,736 0 681 1,886 1,169 2 0 50,000 0
bin-true no-host 819 1 2 2.6 8.1 154,701 13,053 2,806 9,731 78,355 66,615 5,012 3 50,000 0
configure.cpython no-host 15,131 1 59 15.0 27.5 1,772,677 49,204 28,515 86,378 908,107 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,312 3 59 21.3 30.1 2,703,413 42,779 65,820 109,640 1,320,605 1,273,168 49,081 41 131,640 1
configure.ocaml no-host 3,803 1 2 2.6 20.6 150,047 11,053 5,146 7,510 71,643 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,536 30,536 0 1,501 14,810 14,225 350 0 50,000 0
configure.yash no-host 1,811 1 2 2.6 24.4 139,704 7,971 6,607 6,317 70,315 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,279 64,462 42,670 4,552 54,555 57,172 478 3 85,340 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 10 9 4.3 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 456 431 28 21.9 osh-cpython
31 no-host abuild-print-help 22 11 11 8.9 osh-native
1 no-host bin-true 679 492 215 3.0 bash
9 no-host bin-true 543 420 133 1.4 dash
17 no-host bin-true 2,223 1,474 1,010 17.7 osh-cpython
25 no-host bin-true 819 578 254 8.1 osh-native
2 no-host configure.cpython 14,954 8,792 6,554 27.4 bash
10 no-host configure.cpython 14,991 9,024 6,380 27.4 dash
18 no-host configure.cpython 28,405 17,401 12,857 27.5 osh-cpython
26 no-host configure.cpython 15,131 8,848 6,533 27.5 osh-native
4 no-host configure.ocaml 3,786 1,686 1,141 20.6 bash
12 no-host configure.ocaml 3,722 1,548 1,194 20.4 dash
20 no-host configure.ocaml 4,597 2,219 1,586 20.6 osh-cpython
28 no-host configure.ocaml 3,803 1,681 1,160 20.6 osh-native
5 no-host configure.tcc 47 23 25 19.3 bash
13 no-host configure.tcc 41 16 25 19.3 dash
21 no-host configure.tcc 193 127 69 19.4 osh-cpython
29 no-host configure.tcc 49 31 18 19.4 osh-native
3 no-host configure.util-linux 13,947 8,805 5,615 30.4 bash
11 no-host configure.util-linux 14,788 9,125 6,157 30.3 dash
19 no-host configure.util-linux 30,966 20,661 11,390 30.3 osh-cpython
27 no-host configure.util-linux 14,312 8,615 5,894 30.1 osh-native
6 no-host configure.yash 1,831 1,056 780 24.2 bash
14 no-host configure.yash 1,764 973 794 24.5 dash
22 no-host configure.yash 2,421 1,511 952 24.2 osh-cpython
30 no-host configure.yash 1,811 1,058 757 24.4 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 21 28 17.4 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,519 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,110 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,858 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,158 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 104,337 0 0 0 8 0 1,993 57 bash
9 no-host bin-true 67,442 0 0 0 8 0 1,993 68 dash
17 no-host bin-true 749,342 0 0 0 8 0 1,995 153 osh-cpython
25 no-host bin-true 129,326 0 0 0 16 0 1,992 81 osh-native
2 no-host configure.cpython 2,227,455 0 0 0 32,928 0 14,491 1,210 bash
10 no-host configure.cpython 2,237,291 0 0 0 32,992 0 14,635 1,114 dash
18 no-host configure.cpython 6,117,809 0 0 0 27,512 0 13,271 1,136 osh-cpython
26 no-host configure.cpython 2,222,458 0 0 0 27,520 0 13,301 965 osh-native
4 no-host configure.ocaml 411,068 0 0 0 5,120 0 1,951 186 bash
12 no-host configure.ocaml 390,909 0 0 0 5,112 0 1,907 158 dash
20 no-host configure.ocaml 638,440 0 0 0 5,112 0 1,857 162 osh-cpython
28 no-host configure.ocaml 413,633 0 0 0 5,120 0 1,932 166 osh-native
5 no-host configure.tcc 6,559 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,264 0 0 0 96 0 53 4 osh-cpython
29 no-host configure.tcc 6,954 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,105,408 0 0 0 42,400 0 18,541 1,056 bash
11 no-host configure.util-linux 2,263,592 1 0 0 42,592 0 17,495 1,081 dash
19 no-host configure.util-linux 5,304,077 12 0 0 39,112 0 16,931 1,200 osh-cpython
27 no-host configure.util-linux 1,996,979 0 0 0 39,120 0 16,970 1,078 osh-native
6 no-host configure.yash 256,583 0 0 0 4,120 0 879 127 bash
14 no-host configure.yash 244,599 0 0 0 3,720 0 867 96 dash
22 no-host configure.yash 384,083 0 0 0 3,728 0 851 82 osh-cpython
30 no-host configure.yash 257,563 0 0 0 3,736 0 850 90 osh-native
0 no-host hello-world 154 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,692 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-e1f89482
dash dash-308ec8e6
osh-cpython osh-735dd450
osh-native osh-e1c7bd8e
host label host id
no-host no-host-556df3ee