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 457 22 24.20 1.18
bin-true no-host 676 542 2,217 821 3.28 1.21
configure.cpython no-host 15,111 15,151 28,551 15,407 1.89 1.02
configure.ocaml no-host 3,826 3,748 4,665 3,843 1.22 1.00
configure.tcc no-host 47 41 193 49 4.07 1.04
configure.util-linux no-host 14,050 14,875 31,252 14,477 2.22 1.03
configure.yash no-host 1,815 1,761 2,462 1,844 1.36 1.02
hello-world no-host 1 1 49 3 33.14 1.95

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,530 1,130 23,524 3,215 9.30 1.27
bin-true no-host 106,296 66,415 755,469 126,177 7.11 1.19
configure.cpython no-host 2,222,726 2,247,152 6,164,512 2,238,065 2.77 1.01
configure.ocaml no-host 411,026 391,102 640,375 413,998 1.56 1.01
configure.tcc no-host 6,557 5,481 23,377 6,996 3.57 1.07
configure.util-linux no-host 2,096,417 2,261,361 5,344,134 2,017,621 2.55 0.96
configure.yash no-host 255,970 244,150 384,635 259,078 1.50 1.01
hello-world no-host 150 83 3,689 347 24.59 2.31

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.4 7.7 6.05 2.68
configure.cpython no-host 27.4 27.4 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.3 19.3 19.4 1.00 1.01
configure.util-linux no-host 30.1 30.1 30.1 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.8 1.6 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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 821 1 2 2.7 7.7 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,407 1 60 15.8 27.4 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,477 2 61 22.2 30.3 2,703,404 44,766 65,792 126,121 1,320,596 1,256,687 49,081 41 131,584 1
configure.ocaml no-host 3,843 1 2 2.7 20.4 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,844 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 19 1 4.5 bash
15 no-host abuild-print-help 9 8 1 3.4 dash
23 no-host abuild-print-help 457 401 60 21.9 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
1 no-host bin-true 676 504 204 2.9 bash
9 no-host bin-true 542 417 135 1.4 dash
17 no-host bin-true 2,217 1,453 1,022 17.4 osh-cpython
25 no-host bin-true 821 605 231 7.7 osh-native
2 no-host configure.cpython 15,111 8,980 6,531 27.4 bash
10 no-host configure.cpython 15,151 9,148 6,428 27.4 dash
18 no-host configure.cpython 28,551 17,271 13,131 27.4 osh-cpython
26 no-host configure.cpython 15,407 9,010 6,668 27.4 osh-native
4 no-host configure.ocaml 3,826 1,684 1,166 20.6 bash
12 no-host configure.ocaml 3,748 1,570 1,195 20.6 dash
20 no-host configure.ocaml 4,665 2,235 1,639 20.6 osh-cpython
28 no-host configure.ocaml 3,843 1,601 1,282 20.4 osh-native
5 no-host configure.tcc 47 28 20 19.3 bash
13 no-host configure.tcc 41 33 8 19.3 dash
21 no-host configure.tcc 193 155 41 19.3 osh-cpython
29 no-host configure.tcc 49 32 18 19.4 osh-native
3 no-host configure.util-linux 14,050 8,963 5,565 30.1 bash
11 no-host configure.util-linux 14,875 9,088 6,274 30.1 dash
19 no-host configure.util-linux 31,252 20,940 11,426 30.1 osh-cpython
27 no-host configure.util-linux 14,477 8,738 5,952 30.3 osh-native
6 no-host configure.yash 1,815 1,087 736 24.4 bash
14 no-host configure.yash 1,761 1,017 748 24.4 dash
22 no-host configure.yash 2,462 1,505 1,001 24.4 osh-cpython
30 no-host configure.yash 1,844 1,084 764 24.4 osh-native
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 49 37 12 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,530 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,524 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,215 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 106,296 0 0 0 8 0 1,990 122 bash
9 no-host bin-true 66,415 0 0 0 8 0 1,989 110 dash
17 no-host bin-true 755,469 0 0 0 8 0 1,991 100 osh-cpython
25 no-host bin-true 126,177 0 0 0 16 0 1,997 252 osh-native
2 no-host configure.cpython 2,222,726 0 0 0 32,928 0 14,486 1,317 bash
10 no-host configure.cpython 2,247,152 0 0 0 32,992 0 14,604 1,116 dash
18 no-host configure.cpython 6,164,512 2 0 0 27,512 0 13,249 1,318 osh-cpython
26 no-host configure.cpython 2,238,065 0 0 0 27,520 0 13,321 1,180 osh-native
4 no-host configure.ocaml 411,026 0 0 0 5,120 0 1,977 192 bash
12 no-host configure.ocaml 391,102 0 0 0 5,112 0 1,886 183 dash
20 no-host configure.ocaml 640,375 0 0 0 5,112 0 1,859 163 osh-cpython
28 no-host configure.ocaml 413,998 0 0 0 5,120 0 1,935 154 osh-native
5 no-host configure.tcc 6,557 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 5,481 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,377 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,996 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,096,417 0 0 0 42,400 0 18,615 1,279 bash
11 no-host configure.util-linux 2,261,361 0 0 0 42,584 0 17,341 1,044 dash
19 no-host configure.util-linux 5,344,134 7 0 0 39,112 0 17,049 1,217 osh-cpython
27 no-host configure.util-linux 2,017,621 3 0 0 39,120 0 17,278 1,022 osh-native
6 no-host configure.yash 255,970 0 0 0 4,120 0 870 93 bash
14 no-host configure.yash 244,150 0 0 0 3,720 0 869 67 dash
22 no-host configure.yash 384,635 0 0 0 3,728 0 861 99 osh-cpython
30 no-host configure.yash 259,078 0 0 0 3,736 0 852 85 osh-native
0 no-host hello-world 150 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,689 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-67bad74b
dash dash-308ec8e6
osh-cpython osh-4c941484
osh-native osh-f6de194a
host label host id
no-host no-host-1c33b689