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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 15 9 363 22 16 24.46 1.45
bin-true no-host 588 385 2,659 662 703 4.52 1.13
configure.cpython no-host 13,864 13,050 24,848 11,542 11,921 1.79 0.83
configure.ocaml no-host 3,529 3,183 4,014 3,458 3,217 1.14 0.98
configure.tcc no-host 37 33 165 38 37 4.47 1.02
configure.util-linux no-host 11,954 12,475 27,462 11,372 10,710 2.30 0.95
configure.yash no-host 1,500 1,363 1,966 1,410 1,344 1.31 0.94
hello-world no-host 1 1 47 2 2 41.72 2.18

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,520 1,144 25,188 3,193 3,135 10.00 1.27
bin-true no-host 106,309 66,510 809,318 131,960 129,034 7.61 1.24
configure.cpython no-host 2,229,434 2,234,662 6,337,021 2,240,783 2,226,663 2.84 1.01
configure.ocaml no-host 410,622 391,593 654,955 414,684 414,206 1.60 1.01
configure.tcc no-host 6,518 5,498 24,500 7,020 6,960 3.76 1.08
configure.util-linux no-host 2,102,509 2,268,096 5,477,410 2,008,650 1,999,225 2.61 0.96
configure.yash no-host 256,994 244,820 392,584 258,525 259,042 1.53 1.01
hello-world no-host 152 80 3,978 352 342 26.17 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 osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.4 3.7 23.0 9.3 8.8 5.18 2.09
bin-true no-host 3.0 1.7 18.8 8.4 8.0 6.30 2.83
configure.cpython no-host 27.5 27.5 27.6 27.5 27.5 1.00 1.00
configure.ocaml no-host 20.7 20.7 20.8 20.7 20.7 1.00 1.00
configure.tcc no-host 19.5 19.5 19.6 19.6 19.5 1.00 1.01
configure.util-linux no-host 30.3 30.3 30.3 30.3 30.4 1.00 1.00
configure.yash no-host 24.5 24.5 24.5 24.4 24.4 1.00 1.00
hello-world no-host 3.1 1.6 18.4 6.6 6.0 5.99 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 2 0 0 0.3 6.6 3,817 3,817 0 702 1,878 1,237 2 0 50,000 0
bin-true no-host 662 1 2 2.6 8.4 156,784 15,421 2,908 8,754 77,345 70,685 3,008 3 50,000 0
configure.cpython no-host 11,542 2 60 15.5 27.5 1,785,025 30,567 28,534 91,507 886,582 806,936 25,736 61 50,000 0
configure.util-linux no-host 11,372 3 61 21.6 30.3 2,709,224 53,768 65,732 114,374 1,295,044 1,299,806 32,241 41 131,464 1
configure.ocaml no-host 3,458 1 2 2.6 20.7 149,871 11,186 5,229 7,735 70,882 71,254 1,695 3 50,000 0
configure.tcc no-host 38 0 0 1.3 19.6 30,587 30,587 0 1,544 14,644 14,399 271 0 50,000 0
configure.yash no-host 1,410 1 2 2.6 24.4 139,893 8,052 6,707 6,399 68,347 65,147 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.3 116,347 64,424 42,632 4,545 54,469 57,333 277 3 85,264 1
hello-world no-host 2 0 0 0.3 6.0 3,816 3,816 0 703 1,878 1,235 2 0 50,000 0
bin-true no-host 703 1 2 2.6 8.0 156,783 15,416 2,903 8,755 77,345 70,683 3,008 3 50,000 0
configure.cpython no-host 11,921 1 62 15.5 27.5 1,785,024 30,553 28,528 91,508 886,582 806,934 25,736 61 50,000 0
configure.util-linux no-host 10,710 3 56 21.6 30.4 2,709,224 53,743 65,725 114,376 1,295,044 1,299,804 32,241 41 131,450 1
configure.ocaml no-host 3,217 1 2 2.6 20.7 149,871 11,180 5,223 7,737 70,882 71,252 1,695 3 50,000 0
configure.tcc no-host 37 0 0 1.3 19.5 30,587 30,587 0 1,546 14,644 14,397 271 0 50,000 0
configure.yash no-host 1,344 1 2 2.6 24.4 139,893 8,041 6,696 6,401 68,347 65,145 2,095 3 50,000 0
abuild-print-help no-host 16 0 1 2.8 8.8 116,346 64,419 42,627 4,546 54,469 57,331 277 3 85,254 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 15 14 1 4.4 bash
15 no-host abuild-print-help 9 8 1 3.7 dash
23 no-host abuild-print-help 363 319 47 23.0 osh-cpython
31 no-host abuild-print-help 22 15 7 9.3 osh-native
39 no-host abuild-print-help 16 5 11 8.8 osh-native-souffle
1 no-host bin-true 588 415 194 3.0 bash
9 no-host bin-true 385 291 92 1.7 dash
17 no-host bin-true 2,659 1,610 1,357 18.8 osh-cpython
25 no-host bin-true 662 455 215 8.4 osh-native
33 no-host bin-true 703 481 229 8.0 osh-native-souffle
2 no-host configure.cpython 13,864 8,777 5,426 27.5 bash
10 no-host configure.cpython 13,050 8,418 4,984 27.5 dash
18 no-host configure.cpython 24,848 15,197 11,557 27.6 osh-cpython
26 no-host configure.cpython 11,542 7,321 4,427 27.5 osh-native
34 no-host configure.cpython 11,921 7,497 4,653 27.5 osh-native-souffle
4 no-host configure.ocaml 3,529 1,488 1,068 20.7 bash
12 no-host configure.ocaml 3,183 1,296 900 20.7 dash
20 no-host configure.ocaml 4,014 1,874 1,321 20.8 osh-cpython
28 no-host configure.ocaml 3,458 1,499 995 20.7 osh-native
36 no-host configure.ocaml 3,217 1,390 852 20.7 osh-native-souffle
5 no-host configure.tcc 37 27 10 19.5 bash
13 no-host configure.tcc 33 19 15 19.5 dash
21 no-host configure.tcc 165 91 77 19.6 osh-cpython
29 no-host configure.tcc 38 14 24 19.6 osh-native
37 no-host configure.tcc 37 24 13 19.5 osh-native-souffle
3 no-host configure.util-linux 11,954 7,831 4,505 30.3 bash
11 no-host configure.util-linux 12,475 8,114 4,731 30.3 dash
19 no-host configure.util-linux 27,462 17,832 10,626 30.3 osh-cpython
27 no-host configure.util-linux 11,372 7,355 4,149 30.3 osh-native
35 no-host configure.util-linux 10,710 6,731 4,102 30.4 osh-native-souffle
6 no-host configure.yash 1,500 922 571 24.5 bash
14 no-host configure.yash 1,363 803 562 24.5 dash
22 no-host configure.yash 1,966 1,230 774 24.5 osh-cpython
30 no-host configure.yash 1,410 810 602 24.4 osh-native
38 no-host configure.yash 1,344 800 545 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 47 35 11 18.4 osh-cpython
24 no-host hello-world 2 2 0 6.6 osh-native
32 no-host hello-world 2 2 0 6.0 osh-native-souffle

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,520 2 0 88 16 0 42 2 bash
15 no-host abuild-print-help 1,144 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 25,188 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,193 0 0 0 16 0 36 3 osh-native
39 no-host abuild-print-help 3,135 0 0 0 16 0 37 2 osh-native-souffle
1 no-host bin-true 106,309 2 0 72 8 0 2,002 61 bash
9 no-host bin-true 66,510 0 0 0 8 0 2,001 46 dash
17 no-host bin-true 809,318 0 0 0 8 0 2,007 221 osh-cpython
25 no-host bin-true 131,960 0 0 0 16 0 1,998 67 osh-native
33 no-host bin-true 129,034 0 0 0 16 0 1,999 60 osh-native-souffle
2 no-host configure.cpython 2,229,434 21 0 2,880 32,928 0 14,656 1,537 bash
10 no-host configure.cpython 2,234,662 0 0 0 32,992 0 15,933 2,772 dash
18 no-host configure.cpython 6,337,021 0 0 0 27,512 0 13,333 2,078 osh-cpython
26 no-host configure.cpython 2,240,783 0 0 0 27,520 0 13,606 1,322 osh-native
34 no-host configure.cpython 2,226,663 0 0 0 27,520 0 13,429 1,396 osh-native-souffle
4 no-host configure.ocaml 410,622 2 0 512 5,120 0 1,939 259 bash
12 no-host configure.ocaml 391,593 0 0 0 5,112 0 1,913 226 dash
20 no-host configure.ocaml 654,955 0 0 0 5,112 0 1,901 302 osh-cpython
28 no-host configure.ocaml 414,684 0 0 0 5,120 0 1,890 248 osh-native
36 no-host configure.ocaml 414,206 0 0 0 5,120 0 1,876 255 osh-native-souffle
5 no-host configure.tcc 6,518 0 0 0 104 0 49 5 bash
13 no-host configure.tcc 5,498 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,500 0 0 0 96 0 52 12 osh-cpython
29 no-host configure.tcc 7,020 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,960 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,102,509 18 0 2,760 42,400 0 22,695 5,985 bash
11 no-host configure.util-linux 2,268,096 0 0 0 42,584 0 17,181 1,646 dash
19 no-host configure.util-linux 5,477,410 0 0 0 39,112 0 17,167 1,953 osh-cpython
27 no-host configure.util-linux 2,008,650 0 0 0 39,120 0 17,004 1,201 osh-native
35 no-host configure.util-linux 1,999,225 0 0 0 39,128 0 17,050 1,161 osh-native-souffle
6 no-host configure.yash 256,994 2 0 312 4,120 0 865 133 bash
14 no-host configure.yash 244,820 0 0 0 3,720 0 865 86 dash
22 no-host configure.yash 392,584 0 0 0 3,728 0 855 100 osh-cpython
30 no-host configure.yash 258,525 0 0 0 3,736 0 850 72 osh-native
38 no-host configure.yash 259,042 0 0 0 3,736 0 849 84 osh-native-souffle
0 no-host hello-world 152 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,978 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 352 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-15a3d804
dash dash-0ebcf347
osh-cpython osh-a31ad41e
osh-native osh-07c76e09
osh-native-souffle osh-20e91026
host label host id
no-host no-host-6df8bfd3