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 455 23 23.58 1.17
bin-true no-host 666 539 2,222 825 3.34 1.24
configure.cpython no-host 14,920 15,075 28,396 15,444 1.90 1.04
configure.ocaml no-host 3,774 3,727 4,685 3,837 1.24 1.02
configure.tcc no-host 48 42 193 50 4.03 1.04
configure.util-linux no-host 13,986 14,832 31,155 14,595 2.23 1.04
configure.yash no-host 1,845 1,761 2,467 1,845 1.34 1.00
hello-world no-host 1 1 48 3 33.53 2.00

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,557 1,097 23,225 3,227 9.08 1.26
bin-true no-host 104,333 65,481 752,055 129,157 7.21 1.24
configure.cpython no-host 2,219,569 2,242,530 6,134,933 2,230,044 2.76 1.00
configure.ocaml no-host 410,397 390,846 637,339 413,533 1.55 1.01
configure.tcc no-host 6,559 5,481 23,239 6,999 3.54 1.07
configure.util-linux no-host 2,101,752 2,261,058 5,327,378 2,009,828 2.53 0.96
configure.yash no-host 255,605 245,220 385,644 258,266 1.51 1.01
hello-world no-host 152 83 3,656 350 24.05 2.30

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.9 4.85 2.00
bin-true no-host 2.9 1.4 17.2 7.9 5.95 2.73
configure.cpython no-host 27.4 27.5 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.4 1.00 0.99
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.0 1.00 0.99
configure.yash no-host 24.5 24.2 24.4 24.2 0.99 0.99
hello-world no-host 2.8 1.4 17.3 6.2 6.29 2.24

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,717 3,717 0 684 1,869 1,164 2 0 50,000 0
bin-true no-host 825 1 2 2.7 7.9 154,682 12,988 2,795 11,737 78,338 64,607 5,012 3 50,000 0
configure.cpython no-host 15,444 1 65 15.8 27.4 1,772,598 49,193 28,504 101,770 908,045 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,595 3 63 22.2 30.0 2,703,262 44,762 65,788 126,121 1,320,489 1,256,652 49,081 41 131,576 1
configure.ocaml no-host 3,837 1 2 2.7 20.4 150,024 11,041 5,134 8,602 71,623 69,799 2,680 3 50,000 0
configure.tcc no-host 50 0 0 1.3 19.3 30,517 30,517 0 1,599 14,793 14,125 350 0 50,000 0
configure.yash no-host 1,845 1 2 2.6 24.2 139,681 7,960 6,596 7,554 70,295 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,260 64,451 42,659 4,609 54,538 57,113 478 3 85,318 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 13 6 4.5 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 455 415 43 21.6 osh-cpython
31 no-host abuild-print-help 23 17 6 8.9 osh-native
1 no-host bin-true 666 504 194 2.9 bash
9 no-host bin-true 539 417 132 1.4 dash
17 no-host bin-true 2,222 1,522 958 17.2 osh-cpython
25 no-host bin-true 825 581 259 7.9 osh-native
2 no-host configure.cpython 14,920 9,128 6,184 27.4 bash
10 no-host configure.cpython 15,075 9,221 6,270 27.5 dash
18 no-host configure.cpython 28,396 17,262 12,948 27.4 osh-cpython
26 no-host configure.cpython 15,444 9,157 6,557 27.4 osh-native
4 no-host configure.ocaml 3,774 1,592 1,221 20.6 bash
12 no-host configure.ocaml 3,727 1,581 1,163 20.6 dash
20 no-host configure.ocaml 4,685 2,256 1,631 20.6 osh-cpython
28 no-host configure.ocaml 3,837 1,650 1,226 20.4 osh-native
5 no-host configure.tcc 48 29 19 19.3 bash
13 no-host configure.tcc 42 36 6 19.4 dash
21 no-host configure.tcc 193 151 46 19.3 osh-cpython
29 no-host configure.tcc 50 27 24 19.3 osh-native
3 no-host configure.util-linux 13,986 8,949 5,513 30.3 bash
11 no-host configure.util-linux 14,832 9,086 6,234 30.1 dash
19 no-host configure.util-linux 31,155 20,874 11,369 30.1 osh-cpython
27 no-host configure.util-linux 14,595 8,744 6,047 30.0 osh-native
6 no-host configure.yash 1,845 1,049 784 24.5 bash
14 no-host configure.yash 1,761 1,081 683 24.2 dash
22 no-host configure.yash 2,467 1,498 1,012 24.4 osh-cpython
30 no-host configure.yash 1,845 1,080 769 24.2 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 34 13 17.3 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,557 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,225 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,227 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,333 0 0 0 8 0 1,992 43 bash
9 no-host bin-true 65,481 0 0 0 8 0 1,984 44 dash
17 no-host bin-true 752,055 0 0 0 8 0 1,997 226 osh-cpython
25 no-host bin-true 129,157 0 0 0 16 0 1,993 149 osh-native
2 no-host configure.cpython 2,219,569 0 0 0 32,928 0 14,524 1,157 bash
10 no-host configure.cpython 2,242,530 0 0 0 32,992 0 14,593 1,193 dash
18 no-host configure.cpython 6,134,933 1 0 0 27,512 0 13,271 1,255 osh-cpython
26 no-host configure.cpython 2,230,044 0 0 0 27,520 0 13,293 1,015 osh-native
4 no-host configure.ocaml 410,397 0 0 0 5,120 0 1,951 154 bash
12 no-host configure.ocaml 390,846 0 0 0 5,112 0 1,888 152 dash
20 no-host configure.ocaml 637,339 0 0 0 5,112 0 1,863 167 osh-cpython
28 no-host configure.ocaml 413,533 0 0 0 5,120 0 1,937 156 osh-native
5 no-host configure.tcc 6,559 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,239 0 0 0 96 0 53 7 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,101,752 1 0 0 42,400 0 18,568 1,013 bash
11 no-host configure.util-linux 2,261,058 1 0 0 42,584 0 17,483 1,162 dash
19 no-host configure.util-linux 5,327,378 6 0 0 39,112 0 17,222 1,287 osh-cpython
27 no-host configure.util-linux 2,009,828 0 0 0 39,120 0 17,073 1,013 osh-native
6 no-host configure.yash 255,605 0 0 0 4,120 0 880 89 bash
14 no-host configure.yash 245,220 0 0 0 3,720 0 869 89 dash
22 no-host configure.yash 385,644 0 0 0 3,728 0 860 87 osh-cpython
30 no-host configure.yash 258,266 0 0 0 3,736 0 852 84 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,656 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-796bf235
dash dash-308ec8e6
osh-cpython osh-90ce4897
osh-native osh-2a4ae440
host label host id
no-host no-host-13226fd6