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 19 9 459 22 21 23.94 1.16
bin-true no-host 684 542 2,236 826 817 3.27 1.21
configure.cpython no-host 15,191 15,182 28,839 15,543 15,461 1.90 1.02
configure.ocaml no-host 3,829 3,749 4,739 3,879 3,875 1.24 1.01
configure.tcc no-host 48 42 197 51 49 4.13 1.07
configure.util-linux no-host 14,194 15,113 31,471 14,624 14,518 2.22 1.03
configure.yash no-host 1,828 1,781 2,485 1,868 1,854 1.36 1.02
hello-world no-host 2 1 49 3 3 32.48 1.87

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,527 1,096 23,688 3,197 3,097 9.37 1.27
bin-true no-host 108,364 66,472 763,152 128,132 124,879 7.04 1.18
configure.cpython no-host 2,220,306 2,242,847 6,217,223 2,237,251 2,222,820 2.80 1.01
configure.ocaml no-host 409,731 391,203 644,828 413,260 412,837 1.57 1.01
configure.tcc no-host 6,590 5,490 23,511 6,960 6,940 3.57 1.06
configure.util-linux no-host 2,102,732 2,262,460 5,355,751 2,002,684 1,994,355 2.55 0.95
configure.yash no-host 256,756 245,102 387,343 258,819 257,606 1.51 1.01
hello-world no-host 150 84 3,744 349 345 24.96 2.33

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.3 3.4 22.0 9.2 8.7 5.09 2.12
bin-true no-host 2.9 1.4 17.7 8.0 7.6 6.14 2.77
configure.cpython no-host 27.4 27.5 27.4 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.4 20.6 20.4 20.6 1.00 0.99
configure.tcc no-host 19.4 19.3 19.4 19.4 19.4 1.00 1.00
configure.util-linux no-host 30.0 30.1 30.0 30.3 30.3 1.00 1.01
configure.yash no-host 24.2 24.4 24.4 24.5 24.2 1.01 1.01
hello-world no-host 2.8 1.6 17.4 6.3 5.9 6.33 2.29

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.3 3,746 3,746 0 694 1,840 1,212 2 0 50,000 0
bin-true no-host 826 1 2 2.6 8.0 154,711 13,191 2,848 9,744 78,309 66,658 3,008 3 50,000 0
configure.cpython no-host 15,543 1 63 15.0 27.4 1,772,693 49,825 28,558 86,397 908,061 778,235 22,694 60 50,000 0
configure.util-linux no-host 14,624 3 62 21.3 30.3 2,703,461 42,774 65,841 109,675 1,320,567 1,273,219 27,391 41 131,682 1
configure.ocaml no-host 3,879 1 2 2.6 20.4 150,067 11,022 5,192 7,531 71,594 70,942 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,552 30,552 0 1,520 14,764 14,268 226 0 50,000 0
configure.yash no-host 1,868 1 2 2.6 24.5 139,720 7,991 6,650 6,336 70,269 63,115 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,295 64,501 42,711 4,571 54,509 57,215 270 3 85,422 1
hello-world no-host 3 0 0 0.2 5.9 3,745 3,745 0 695 1,840 1,210 2 0 50,000 0
bin-true no-host 817 1 2 2.6 7.6 154,710 12,979 2,786 9,745 78,309 66,656 3,008 3 50,000 0
configure.cpython no-host 15,461 1 62 15.0 27.5 1,772,692 49,076 28,496 86,398 908,061 778,233 22,694 60 50,000 0
configure.util-linux no-host 14,518 3 61 21.3 30.3 2,703,461 42,712 65,799 109,677 1,320,567 1,273,217 27,391 41 131,598 1
configure.ocaml no-host 3,875 1 2 2.6 20.6 150,067 10,960 5,130 7,533 71,594 70,940 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,552 30,552 0 1,522 14,764 14,266 226 0 50,000 0
configure.yash no-host 1,854 1 2 2.6 24.2 139,720 7,929 6,588 6,338 70,269 63,113 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,294 64,439 42,649 4,572 54,509 57,213 270 3 85,298 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 14 5 4.3 bash
15 no-host abuild-print-help 9 7 3 3.4 dash
23 no-host abuild-print-help 459 422 40 22.0 osh-cpython
31 no-host abuild-print-help 22 17 5 9.2 osh-native
39 no-host abuild-print-help 21 16 6 8.7 osh-native-souffle
1 no-host bin-true 684 505 211 2.9 bash
9 no-host bin-true 542 416 137 1.4 dash
17 no-host bin-true 2,236 1,453 1,047 17.7 osh-cpython
25 no-host bin-true 826 573 269 8.0 osh-native
33 no-host bin-true 817 570 264 7.6 osh-native-souffle
2 no-host configure.cpython 15,191 9,218 6,376 27.4 bash
10 no-host configure.cpython 15,182 9,106 6,504 27.5 dash
18 no-host configure.cpython 28,839 17,428 13,294 27.4 osh-cpython
26 no-host configure.cpython 15,543 9,276 6,538 27.4 osh-native
34 no-host configure.cpython 15,461 9,151 6,489 27.5 osh-native-souffle
4 no-host configure.ocaml 3,829 1,615 1,253 20.6 bash
12 no-host configure.ocaml 3,749 1,625 1,142 20.4 dash
20 no-host configure.ocaml 4,739 2,249 1,679 20.6 osh-cpython
28 no-host configure.ocaml 3,879 1,760 1,152 20.4 osh-native
36 no-host configure.ocaml 3,875 1,568 1,337 20.6 osh-native-souffle
5 no-host configure.tcc 48 35 13 19.4 bash
13 no-host configure.tcc 42 22 21 19.3 dash
21 no-host configure.tcc 197 124 77 19.4 osh-cpython
29 no-host configure.tcc 51 32 19 19.4 osh-native
37 no-host configure.tcc 49 34 15 19.4 osh-native-souffle
3 no-host configure.util-linux 14,194 8,949 5,722 30.0 bash
11 no-host configure.util-linux 15,113 9,072 6,553 30.1 dash
19 no-host configure.util-linux 31,471 21,009 11,583 30.0 osh-cpython
27 no-host configure.util-linux 14,624 8,763 6,051 30.3 osh-native
35 no-host configure.util-linux 14,518 8,668 6,051 30.3 osh-native-souffle
6 no-host configure.yash 1,828 1,094 742 24.2 bash
14 no-host configure.yash 1,781 996 788 24.4 dash
22 no-host configure.yash 2,485 1,472 1,056 24.4 osh-cpython
30 no-host configure.yash 1,868 1,066 806 24.5 osh-native
38 no-host configure.yash 1,854 1,046 812 24.2 osh-native-souffle
0 no-host hello-world 2 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 49 21 28 17.4 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 3 0 5.9 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,527 0 0 0 16 0 41 2 bash
15 no-host abuild-print-help 1,096 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,688 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,197 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,097 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 108,364 0 0 0 8 0 1,985 71 bash
9 no-host bin-true 66,472 0 0 0 8 0 1,987 60 dash
17 no-host bin-true 763,152 0 0 0 8 0 1,987 96 osh-cpython
25 no-host bin-true 128,132 0 0 0 16 0 1,991 203 osh-native
33 no-host bin-true 124,879 0 0 0 16 0 1,994 87 osh-native-souffle
2 no-host configure.cpython 2,220,306 0 0 0 32,928 0 14,505 1,111 bash
10 no-host configure.cpython 2,242,847 1 0 0 32,992 0 14,590 988 dash
18 no-host configure.cpython 6,217,223 0 0 0 27,512 0 13,259 1,161 osh-cpython
26 no-host configure.cpython 2,237,251 0 0 0 27,520 0 13,239 1,017 osh-native
34 no-host configure.cpython 2,222,820 0 0 0 27,520 0 13,239 1,109 osh-native-souffle
4 no-host configure.ocaml 409,731 0 0 0 5,120 0 1,952 171 bash
12 no-host configure.ocaml 391,203 0 0 0 5,112 0 1,881 168 dash
20 no-host configure.ocaml 644,828 0 0 0 5,112 0 1,860 249 osh-cpython
28 no-host configure.ocaml 413,260 0 0 0 5,120 0 1,929 166 osh-native
36 no-host configure.ocaml 412,837 0 0 0 5,120 0 1,929 174 osh-native-souffle
5 no-host configure.tcc 6,590 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,490 0 0 0 96 0 46 5 dash
21 no-host configure.tcc 23,511 0 0 0 96 0 52 9 osh-cpython
29 no-host configure.tcc 6,960 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,940 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,102,732 0 0 0 42,400 0 18,557 1,075 bash
11 no-host configure.util-linux 2,262,460 1 0 0 42,584 0 17,410 1,027 dash
19 no-host configure.util-linux 5,355,751 13 0 0 39,112 0 16,965 1,199 osh-cpython
27 no-host configure.util-linux 2,002,684 0 0 0 39,128 0 17,107 1,002 osh-native
35 no-host configure.util-linux 1,994,355 2 0 0 39,136 0 17,007 1,068 osh-native-souffle
6 no-host configure.yash 256,756 0 0 0 4,120 0 871 120 bash
14 no-host configure.yash 245,102 0 0 0 3,720 0 871 75 dash
22 no-host configure.yash 387,343 0 0 0 3,728 0 852 101 osh-cpython
30 no-host configure.yash 258,819 0 0 0 3,736 0 846 82 osh-native
38 no-host configure.yash 257,606 0 0 0 3,736 0 851 77 osh-native-souffle
0 no-host hello-world 150 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,744 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-20370cfb
dash dash-0ebcf347
osh-cpython osh-b62e237e
osh-native osh-57c4aaff
osh-native-souffle osh-0f755ad3
host label host id
no-host no-host-556df3ee