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 453 22 23.39 1.15
bin-true no-host 671 538 2,213 819 3.30 1.22
configure.cpython no-host 15,189 15,211 28,702 15,352 1.89 1.01
configure.ocaml no-host 3,838 3,760 4,692 3,835 1.22 1.00
configure.tcc no-host 48 41 193 49 4.04 1.02
configure.util-linux no-host 14,159 14,999 31,365 14,452 2.22 1.02
configure.yash no-host 1,838 1,770 2,452 1,838 1.33 1.00
hello-world no-host 2 1 48 3 31.99 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,521 1,124 23,430 3,217 9.29 1.28
bin-true no-host 104,328 66,485 749,736 126,198 7.19 1.21
configure.cpython no-host 2,216,198 2,242,417 6,142,907 2,233,158 2.77 1.01
configure.ocaml no-host 410,277 391,021 640,698 413,411 1.56 1.01
configure.tcc no-host 6,533 5,498 23,280 6,974 3.56 1.07
configure.util-linux no-host 2,105,218 2,260,460 5,334,467 2,015,229 2.53 0.96
configure.yash no-host 256,659 244,626 384,345 258,989 1.50 1.01
hello-world no-host 153 84 3,684 346 24.08 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.5 3.4 21.9 8.9 4.91 2.00
bin-true no-host 2.9 1.4 17.3 8.0 6.00 2.77
configure.cpython no-host 27.4 27.4 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.4 19.3 19.4 0.99 1.00
configure.util-linux no-host 30.0 30.1 30.3 30.1 1.01 1.00
configure.yash no-host 24.2 25.4 24.2 24.4 1.00 1.01
hello-world no-host 2.9 1.4 17.3 6.3 6.00 2.18

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.3 3,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 819 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,352 1 62 15.8 27.5 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,452 2 61 22.2 30.1 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,835 1 2 2.7 20.6 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,838 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 10 7 3 3.4 dash
23 no-host abuild-print-help 453 408 48 21.9 osh-cpython
31 no-host abuild-print-help 22 20 2 8.9 osh-native
1 no-host bin-true 671 485 217 2.9 bash
9 no-host bin-true 538 419 129 1.4 dash
17 no-host bin-true 2,213 1,469 998 17.3 osh-cpython
25 no-host bin-true 819 576 258 8.0 osh-native
2 no-host configure.cpython 15,189 9,212 6,375 27.4 bash
10 no-host configure.cpython 15,211 9,203 6,427 27.4 dash
18 no-host configure.cpython 28,702 17,727 12,817 27.5 osh-cpython
26 no-host configure.cpython 15,352 9,288 6,329 27.5 osh-native
4 no-host configure.ocaml 3,838 1,646 1,218 20.6 bash
12 no-host configure.ocaml 3,760 1,620 1,159 20.6 dash
20 no-host configure.ocaml 4,692 2,245 1,653 20.6 osh-cpython
28 no-host configure.ocaml 3,835 1,598 1,272 20.6 osh-native
5 no-host configure.tcc 48 31 17 19.4 bash
13 no-host configure.tcc 41 16 26 19.4 dash
21 no-host configure.tcc 193 128 69 19.3 osh-cpython
29 no-host configure.tcc 49 35 14 19.4 osh-native
3 no-host configure.util-linux 14,159 8,878 5,746 30.0 bash
11 no-host configure.util-linux 14,999 9,161 6,318 30.1 dash
19 no-host configure.util-linux 31,365 21,009 11,436 30.3 osh-cpython
27 no-host configure.util-linux 14,452 8,548 6,088 30.1 osh-native
6 no-host configure.yash 1,838 1,059 786 24.2 bash
14 no-host configure.yash 1,770 1,068 702 25.4 dash
22 no-host configure.yash 2,452 1,507 987 24.2 osh-cpython
30 no-host configure.yash 1,838 1,094 746 24.4 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 30 18 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,521 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,124 0 0 0 8 0 37 1 dash
23 no-host abuild-print-help 23,430 0 0 0 8 0 47 7 osh-cpython
31 no-host abuild-print-help 3,217 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 104,328 0 0 0 8 0 1,996 52 bash
9 no-host bin-true 66,485 0 0 0 8 0 1,984 47 dash
17 no-host bin-true 749,736 0 0 0 8 0 1,995 120 osh-cpython
25 no-host bin-true 126,198 0 0 0 16 0 1,985 53 osh-native
2 no-host configure.cpython 2,216,198 0 0 0 32,928 0 14,531 1,292 bash
10 no-host configure.cpython 2,242,417 0 0 0 32,992 0 14,655 1,022 dash
18 no-host configure.cpython 6,142,907 0 0 0 27,512 0 13,264 1,234 osh-cpython
26 no-host configure.cpython 2,233,158 0 0 0 27,520 0 13,331 1,133 osh-native
4 no-host configure.ocaml 410,277 0 0 0 5,120 0 1,957 174 bash
12 no-host configure.ocaml 391,021 0 0 0 5,112 0 1,929 207 dash
20 no-host configure.ocaml 640,698 1 0 0 5,112 0 1,866 195 osh-cpython
28 no-host configure.ocaml 413,411 0 0 0 5,120 0 1,933 176 osh-native
5 no-host configure.tcc 6,533 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,498 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,280 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,974 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,105,218 1 0 0 42,400 0 18,562 1,069 bash
11 no-host configure.util-linux 2,260,460 1 0 0 42,584 0 17,432 1,252 dash
19 no-host configure.util-linux 5,334,467 9 0 0 39,112 0 17,013 1,343 osh-cpython
27 no-host configure.util-linux 2,015,229 3 0 0 39,120 0 17,078 1,034 osh-native
6 no-host configure.yash 256,659 0 0 0 4,120 0 871 79 bash
14 no-host configure.yash 244,626 0 0 0 3,720 0 871 82 dash
22 no-host configure.yash 384,345 0 0 0 3,728 0 861 112 osh-cpython
30 no-host configure.yash 258,989 0 0 0 3,736 0 852 93 osh-native
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,684 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-7e0919b1
dash dash-308ec8e6
osh-cpython osh-0c46f673
osh-native osh-1d27408a
host label host id
no-host no-host-556df3ee