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 474 22 25.43 1.18
bin-true no-host 682 537 2,255 817 3.31 1.20
configure.cpython no-host 14,961 15,024 28,498 15,212 1.90 1.02
configure.ocaml no-host 3,831 3,721 4,630 3,824 1.21 1.00
configure.tcc no-host 48 41 192 49 4.01 1.03
configure.util-linux no-host 13,967 14,857 31,072 14,383 2.22 1.03
configure.yash no-host 1,810 1,763 2,435 1,847 1.34 1.02
hello-world no-host 2 1 49 3 31.04 1.83

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,539 1,107 22,933 3,172 9.03 1.25
bin-true no-host 106,341 66,430 762,706 128,211 7.17 1.21
configure.cpython no-host 2,218,164 2,239,720 6,184,801 2,230,679 2.79 1.01
configure.ocaml no-host 410,608 391,022 639,754 413,779 1.56 1.01
configure.tcc no-host 6,544 5,469 23,269 6,970 3.56 1.07
configure.util-linux no-host 2,102,669 2,266,641 5,327,558 1,998,070 2.53 0.95
configure.yash no-host 256,464 245,081 384,660 258,523 1.50 1.01
hello-world no-host 153 80 3,697 348 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.4 21.6 8.9 5.00 2.06
bin-true no-host 3.0 1.4 17.4 8.0 5.78 2.65
configure.cpython no-host 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.4 20.6 0.99 1.00
configure.tcc no-host 19.4 19.4 19.4 19.3 1.00 0.99
configure.util-linux no-host 30.3 30.0 30.0 30.1 0.99 1.00
configure.yash no-host 24.4 24.2 24.4 24.2 1.00 0.99
hello-world no-host 2.9 1.3 17.4 6.2 6.04 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,749 3,749 0 684 1,892 1,173 2 0 50,000 0
bin-true no-host 817 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,212 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,383 3 59 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,824 1 2 2.6 20.6 150,060 10,993 5,163 7,513 71,649 70,898 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,549 30,549 0 1,504 14,816 14,229 226 0 50,000 0
configure.yash no-host 1,847 1 2 2.6 24.2 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 10 9 4.3 bash
15 no-host abuild-print-help 9 8 2 3.4 dash
23 no-host abuild-print-help 474 421 56 21.6 osh-cpython
31 no-host abuild-print-help 22 15 7 8.9 osh-native
1 no-host bin-true 682 496 218 3.0 bash
9 no-host bin-true 537 418 128 1.4 dash
17 no-host bin-true 2,255 1,515 1,007 17.4 osh-cpython
25 no-host bin-true 817 591 240 8.0 osh-native
2 no-host configure.cpython 14,961 9,144 6,222 27.4 bash
10 no-host configure.cpython 15,024 9,082 6,354 27.3 dash
18 no-host configure.cpython 28,498 17,732 12,625 27.4 osh-cpython
26 no-host configure.cpython 15,212 8,991 6,493 27.4 osh-native
4 no-host configure.ocaml 3,831 1,652 1,203 20.6 bash
12 no-host configure.ocaml 3,721 1,530 1,210 20.6 dash
20 no-host configure.ocaml 4,630 2,085 1,752 20.4 osh-cpython
28 no-host configure.ocaml 3,824 1,632 1,230 20.6 osh-native
5 no-host configure.tcc 48 30 19 19.4 bash
13 no-host configure.tcc 41 27 15 19.4 dash
21 no-host configure.tcc 192 136 59 19.4 osh-cpython
29 no-host configure.tcc 49 33 17 19.3 osh-native
3 no-host configure.util-linux 13,967 8,760 5,678 30.3 bash
11 no-host configure.util-linux 14,857 9,210 6,124 30.0 dash
19 no-host configure.util-linux 31,072 20,596 11,569 30.0 osh-cpython
27 no-host configure.util-linux 14,383 8,710 5,873 30.1 osh-native
6 no-host configure.yash 1,810 1,024 795 24.4 bash
14 no-host configure.yash 1,763 965 802 24.2 dash
22 no-host configure.yash 2,435 1,443 1,034 24.4 osh-cpython
30 no-host configure.yash 1,847 1,015 837 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 49 31 18 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,539 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,107 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 22,933 0 0 0 8 0 45 13 osh-cpython
31 no-host abuild-print-help 3,172 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,341 0 0 0 8 0 1,988 202 bash
9 no-host bin-true 66,430 0 0 0 8 0 1,986 38 dash
17 no-host bin-true 762,706 0 0 0 8 0 1,992 94 osh-cpython
25 no-host bin-true 128,211 0 0 0 16 0 1,991 147 osh-native
2 no-host configure.cpython 2,218,164 0 0 0 32,928 0 14,513 1,060 bash
10 no-host configure.cpython 2,239,720 0 0 0 32,992 0 14,637 1,051 dash
18 no-host configure.cpython 6,184,801 1 0 0 27,512 0 13,218 1,191 osh-cpython
26 no-host configure.cpython 2,230,679 0 0 0 27,520 0 13,185 1,078 osh-native
4 no-host configure.ocaml 410,608 0 0 0 5,120 0 1,947 200 bash
12 no-host configure.ocaml 391,022 0 0 0 5,112 0 1,931 144 dash
20 no-host configure.ocaml 639,754 0 0 0 5,112 0 1,858 164 osh-cpython
28 no-host configure.ocaml 413,779 0 0 0 5,120 0 1,934 230 osh-native
5 no-host configure.tcc 6,544 0 0 0 104 0 49 14 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,269 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,970 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,102,669 0 0 0 42,408 0 18,551 1,092 bash
11 no-host configure.util-linux 2,266,641 1 0 0 42,592 0 17,499 1,069 dash
19 no-host configure.util-linux 5,327,558 11 0 0 39,120 0 16,958 1,328 osh-cpython
27 no-host configure.util-linux 1,998,070 0 0 0 39,128 0 16,973 1,090 osh-native
6 no-host configure.yash 256,464 0 0 0 4,120 0 869 88 bash
14 no-host configure.yash 245,081 0 0 0 3,720 0 870 83 dash
22 no-host configure.yash 384,660 0 0 0 3,728 0 854 81 osh-cpython
30 no-host configure.yash 258,523 0 0 0 3,736 0 849 98 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 4 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-2cc4c942
dash dash-308ec8e6
osh-cpython osh-a6d774cc
osh-native osh-938974fe
host label host id
no-host no-host-556df3ee