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 456 23 23.84 1.19
bin-true no-host 682 549 2,264 820 3.32 1.20
configure.cpython no-host 15,446 15,389 29,004 15,436 1.88 1.00
configure.ocaml no-host 3,829 3,802 4,681 3,863 1.22 1.01
configure.tcc no-host 48 43 196 49 4.05 1.02
configure.util-linux no-host 14,318 15,069 31,568 14,552 2.20 1.02
configure.yash no-host 1,869 1,822 2,481 1,841 1.33 0.99
hello-world no-host 2 1 50 3 30.94 1.82

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,514 1,130 23,535 3,234 9.36 1.29
bin-true no-host 106,346 66,425 755,508 128,168 7.10 1.21
configure.cpython no-host 2,220,832 2,246,975 6,162,696 2,229,149 2.77 1.00
configure.ocaml no-host 411,011 391,029 640,056 413,670 1.56 1.01
configure.tcc no-host 6,529 5,468 23,395 6,985 3.58 1.07
configure.util-linux no-host 2,099,736 2,260,286 5,347,606 2,016,627 2.55 0.96
configure.yash no-host 256,043 244,423 384,327 258,510 1.50 1.01
hello-world no-host 151 80 3,691 351 24.44 2.32

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 7.9 5.78 2.61
configure.cpython no-host 27.5 27.4 27.5 27.4 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.1 19.3 19.1 19.3 1.00 1.01
configure.util-linux no-host 30.3 30.1 30.4 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.2 0.99 0.99
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 820 1 2 2.7 7.9 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 15,436 1 64 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,552 3 63 22.2 30.1 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,863 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.3 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,841 1 2 2.6 24.2 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 23 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 18 2 4.3 bash
15 no-host abuild-print-help 10 6 4 3.4 dash
23 no-host abuild-print-help 456 412 47 21.6 osh-cpython
31 no-host abuild-print-help 23 14 10 8.9 osh-native
1 no-host bin-true 682 503 213 3.0 bash
9 no-host bin-true 549 419 138 1.4 dash
17 no-host bin-true 2,264 1,471 1,056 17.4 osh-cpython
25 no-host bin-true 820 575 260 7.9 osh-native
2 no-host configure.cpython 15,446 9,278 6,571 27.5 bash
10 no-host configure.cpython 15,389 9,311 6,503 27.4 dash
18 no-host configure.cpython 29,004 17,604 13,287 27.5 osh-cpython
26 no-host configure.cpython 15,436 9,172 6,531 27.4 osh-native
4 no-host configure.ocaml 3,829 1,680 1,189 20.4 bash
12 no-host configure.ocaml 3,802 1,573 1,247 20.6 dash
20 no-host configure.ocaml 4,681 2,125 1,762 20.6 osh-cpython
28 no-host configure.ocaml 3,863 1,663 1,239 20.6 osh-native
5 no-host configure.tcc 48 32 17 19.1 bash
13 no-host configure.tcc 43 20 23 19.3 dash
21 no-host configure.tcc 196 155 44 19.1 osh-cpython
29 no-host configure.tcc 49 27 22 19.3 osh-native
3 no-host configure.util-linux 14,318 9,075 5,710 30.3 bash
11 no-host configure.util-linux 15,069 9,272 6,297 30.1 dash
19 no-host configure.util-linux 31,568 21,060 11,610 30.4 osh-cpython
27 no-host configure.util-linux 14,552 8,888 5,854 30.1 osh-native
6 no-host configure.yash 1,869 1,103 772 24.4 bash
14 no-host configure.yash 1,822 1,031 795 24.2 dash
22 no-host configure.yash 2,481 1,555 970 24.2 osh-cpython
30 no-host configure.yash 1,841 1,089 756 24.2 osh-native
0 no-host hello-world 2 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 50 23 26 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,514 0 0 0 16 0 41 4 bash
15 no-host abuild-print-help 1,130 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,535 0 0 0 8 0 47 10 osh-cpython
31 no-host abuild-print-help 3,234 0 0 0 16 0 41 0 osh-native
1 no-host bin-true 106,346 0 0 0 8 0 1,989 72 bash
9 no-host bin-true 66,425 0 0 0 8 0 1,989 42 dash
17 no-host bin-true 755,508 0 0 0 8 0 2,000 370 osh-cpython
25 no-host bin-true 128,168 0 0 0 16 0 1,994 76 osh-native
2 no-host configure.cpython 2,220,832 0 0 0 32,928 0 14,523 1,164 bash
10 no-host configure.cpython 2,246,975 0 0 0 32,992 0 14,662 1,205 dash
18 no-host configure.cpython 6,162,696 0 0 0 27,512 0 13,295 1,305 osh-cpython
26 no-host configure.cpython 2,229,149 0 0 0 27,520 0 13,349 1,022 osh-native
4 no-host configure.ocaml 411,011 0 0 0 5,120 0 1,949 169 bash
12 no-host configure.ocaml 391,029 0 0 0 5,112 0 1,870 156 dash
20 no-host configure.ocaml 640,056 1 0 0 5,112 0 1,864 192 osh-cpython
28 no-host configure.ocaml 413,670 0 0 0 5,120 0 1,934 176 osh-native
5 no-host configure.tcc 6,529 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,468 0 0 0 96 0 47 3 dash
21 no-host configure.tcc 23,395 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,985 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,099,736 0 0 0 42,400 0 18,560 1,101 bash
11 no-host configure.util-linux 2,260,286 1 0 0 42,592 0 17,456 1,202 dash
19 no-host configure.util-linux 5,347,606 11 0 0 39,112 0 17,061 1,253 osh-cpython
27 no-host configure.util-linux 2,016,627 0 0 0 39,120 0 17,177 1,158 osh-native
6 no-host configure.yash 256,043 0 0 0 4,120 0 871 80 bash
14 no-host configure.yash 244,423 0 0 0 3,720 0 867 107 dash
22 no-host configure.yash 384,327 0 0 0 3,728 0 862 83 osh-cpython
30 no-host configure.yash 258,510 0 0 0 3,736 0 851 76 osh-native
0 no-host hello-world 151 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,691 0 0 0 8 0 7 7 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 1 osh-native

Shell and Host

shell label shell id
bash bash-e1033c7a
dash dash-308ec8e6
osh-cpython osh-985ebac3
osh-native osh-e14c2988
host label host id
no-host no-host-1c33b689