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 10 451 23 24.07 1.21
bin-true no-host 673 542 2,233 813 3.32 1.21
configure.cpython no-host 15,137 15,246 28,246 15,302 1.87 1.01
configure.ocaml no-host 3,854 3,761 4,677 3,888 1.21 1.01
configure.tcc no-host 48 41 194 48 4.03 1.01
configure.util-linux no-host 14,236 14,882 31,161 14,551 2.19 1.02
configure.yash no-host 1,867 1,769 2,468 1,839 1.32 0.99
hello-world no-host 1 1 48 3 33.14 1.92

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,527 1,098 23,168 3,202 9.17 1.27
bin-true no-host 104,371 66,409 752,580 126,196 7.21 1.21
configure.cpython no-host 2,216,800 2,247,778 6,117,293 2,227,508 2.76 1.00
configure.ocaml no-host 410,564 390,971 637,716 413,878 1.55 1.01
configure.tcc no-host 6,569 5,469 23,176 7,004 3.53 1.07
configure.util-linux no-host 2,095,443 2,260,904 5,317,529 2,015,825 2.54 0.96
configure.yash no-host 254,516 244,940 385,562 258,327 1.51 1.01
hello-world no-host 153 80 3,650 344 23.86 2.25

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.6 8.8 5.00 2.03
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.3 27.5 27.5 27.4 1.01 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.3 19.3 19.4 19.3 1.01 1.00
configure.util-linux no-host 30.3 30.1 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.3 6.2 6.00 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.2 6.2 3,711 3,711 0 681 1,866 1,164 2 0 50,000 0
bin-true no-host 813 1 2 2.7 8.0 154,676 12,986 2,793 11,734 78,335 64,607 5,012 3 50,000 0
configure.cpython no-host 15,302 2 62 15.8 27.4 1,772,595 49,191 28,502 101,770 908,042 762,783 42,399 60 50,000 0
configure.util-linux no-host 14,551 2 60 22.2 30.1 2,703,259 44,760 65,806 126,121 1,320,486 1,256,652 49,081 41 131,612 1
configure.ocaml no-host 3,888 1 2 2.7 20.6 150,021 11,039 5,132 8,602 71,620 69,799 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,514 30,514 0 1,599 14,790 14,125 350 0 50,000 0
configure.yash no-host 1,839 1 2 2.6 24.4 139,678 7,958 6,594 7,554 70,292 61,832 2,990 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.8 116,257 64,449 42,657 4,609 54,535 57,113 478 3 85,314 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 17 2 4.3 bash
15 no-host abuild-print-help 10 7 3 3.5 dash
23 no-host abuild-print-help 451 391 64 21.6 osh-cpython
31 no-host abuild-print-help 23 16 8 8.8 osh-native
1 no-host bin-true 673 498 206 3.0 bash
9 no-host bin-true 542 412 140 1.4 dash
17 no-host bin-true 2,233 1,479 1,015 17.3 osh-cpython
25 no-host bin-true 813 578 251 8.0 osh-native
2 no-host configure.cpython 15,137 9,220 6,320 27.3 bash
10 no-host configure.cpython 15,246 8,983 6,685 27.5 dash
18 no-host configure.cpython 28,246 17,009 13,056 27.5 osh-cpython
26 no-host configure.cpython 15,302 9,163 6,392 27.4 osh-native
4 no-host configure.ocaml 3,854 1,686 1,209 20.6 bash
12 no-host configure.ocaml 3,761 1,628 1,153 20.6 dash
20 no-host configure.ocaml 4,677 2,228 1,655 20.6 osh-cpython
28 no-host configure.ocaml 3,888 1,646 1,282 20.6 osh-native
5 no-host configure.tcc 48 38 11 19.3 bash
13 no-host configure.tcc 41 28 14 19.3 dash
21 no-host configure.tcc 194 118 80 19.4 osh-cpython
29 no-host configure.tcc 48 35 14 19.3 osh-native
3 no-host configure.util-linux 14,236 8,784 5,935 30.3 bash
11 no-host configure.util-linux 14,882 9,147 6,229 30.1 dash
19 no-host configure.util-linux 31,161 20,729 11,520 30.1 osh-cpython
27 no-host configure.util-linux 14,551 8,641 6,100 30.1 osh-native
6 no-host configure.yash 1,867 1,071 798 24.2 bash
14 no-host configure.yash 1,769 1,005 768 24.2 dash
22 no-host configure.yash 2,468 1,563 948 24.4 osh-cpython
30 no-host configure.yash 1,839 1,104 739 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 28 20 17.3 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,527 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,098 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,168 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,202 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 104,371 0 0 0 8 0 1,988 39 bash
9 no-host bin-true 66,409 0 0 0 8 0 1,987 32 dash
17 no-host bin-true 752,580 0 0 0 8 0 1,999 84 osh-cpython
25 no-host bin-true 126,196 0 0 0 16 0 1,988 84 osh-native
2 no-host configure.cpython 2,216,800 0 0 0 32,928 0 14,436 1,079 bash
10 no-host configure.cpython 2,247,778 1 0 0 32,992 0 14,536 1,086 dash
18 no-host configure.cpython 6,117,293 0 0 0 27,512 0 13,250 1,153 osh-cpython
26 no-host configure.cpython 2,227,508 0 0 0 27,520 0 13,302 1,141 osh-native
4 no-host configure.ocaml 410,564 0 0 0 5,120 0 1,945 147 bash
12 no-host configure.ocaml 390,971 0 0 0 5,112 0 1,921 137 dash
20 no-host configure.ocaml 637,716 0 0 0 5,112 0 1,858 185 osh-cpython
28 no-host configure.ocaml 413,878 0 0 0 5,120 0 1,932 171 osh-native
5 no-host configure.tcc 6,569 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,176 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 7,004 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,095,443 0 0 0 42,400 0 18,617 1,018 bash
11 no-host configure.util-linux 2,260,904 0 0 0 42,584 0 17,526 1,202 dash
19 no-host configure.util-linux 5,317,529 9 0 0 39,112 0 17,059 1,265 osh-cpython
27 no-host configure.util-linux 2,015,825 0 0 0 39,120 0 17,007 1,092 osh-native
6 no-host configure.yash 254,516 0 0 0 4,120 0 879 93 bash
14 no-host configure.yash 244,940 0 0 0 3,720 0 869 91 dash
22 no-host configure.yash 385,562 0 0 0 3,728 0 857 93 osh-cpython
30 no-host configure.yash 258,327 0 0 0 3,736 0 854 84 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,650 0 0 0 8 0 7 3 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-1def2d89
dash dash-308ec8e6
osh-cpython osh-39825344
osh-native osh-4a5a8b4d
host label host id
no-host no-host-e54d7702