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 18 9 481 22 21 26.25 1.20
bin-true no-host 654 523 2,345 795 790 3.59 1.22
configure.cpython no-host 14,655 14,700 28,782 15,009 14,916 1.96 1.02
configure.ocaml no-host 3,790 3,702 4,645 3,814 3,763 1.23 1.01
configure.tcc no-host 46 40 208 48 47 4.50 1.04
configure.util-linux no-host 13,594 14,496 31,477 14,190 13,976 2.32 1.04
configure.yash no-host 1,796 1,733 2,454 1,813 1,795 1.37 1.01
hello-world no-host 1 1 56 3 3 43.79 2.14

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,102 25,359 3,212 3,100 10.04 1.27
bin-true no-host 104,408 65,396 803,684 128,313 125,115 7.70 1.23
configure.cpython no-host 2,000,330 2,019,059 6,107,641 2,008,246 1,996,913 3.05 1.00
configure.ocaml no-host 373,738 354,013 614,896 376,866 376,429 1.65 1.01
configure.tcc no-host 6,109 5,023 24,012 6,500 6,482 3.93 1.06
configure.util-linux no-host 1,913,197 2,077,245 5,295,124 1,820,829 1,813,576 2.77 0.95
configure.yash no-host 233,834 221,714 369,203 235,342 235,644 1.58 1.01
hello-world no-host 144 76 3,973 347 340 27.59 2.41

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.7 9.2 8.8 5.25 2.12
bin-true no-host 2.9 1.4 18.7 8.0 7.6 6.47 2.77
configure.cpython no-host 29.2 29.2 29.2 29.1 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.5 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.8 19.6 19.7 19.6 19.7 0.99 0.99
configure.util-linux no-host 30.3 30.4 30.3 30.3 30.2 1.00 1.00
configure.yash no-host 26.4 26.2 26.3 26.4 26.4 1.00 1.00
hello-world no-host 2.6 1.4 18.5 6.3 6.0 7.07 2.40

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,811 3,811 0 701 1,872 1,238 2 0 50,000 0
bin-true no-host 795 1 2 2.6 8.0 156,778 15,417 2,904 8,753 77,339 70,686 3,008 3 50,000 0
configure.cpython no-host 15,009 1 68 15.5 29.1 1,785,019 30,562 28,529 91,506 886,576 806,937 25,736 61 50,000 0
configure.util-linux no-host 14,190 3 65 21.6 30.3 2,709,220 53,764 65,728 114,373 1,295,039 1,299,808 32,241 41 131,456 1
configure.ocaml no-host 3,814 1 2 2.6 22.6 149,865 11,181 5,224 7,734 70,876 71,255 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.6 30,581 30,581 0 1,543 14,638 14,400 271 0 50,000 0
configure.yash no-host 1,813 1 2 2.6 26.4 139,887 8,048 6,703 6,398 68,341 65,148 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.2 116,343 64,422 42,630 4,545 54,464 57,334 277 3 85,260 1
hello-world no-host 3 0 0 0.3 6.0 3,810 3,810 0 702 1,872 1,236 2 0 50,000 0
bin-true no-host 790 1 2 2.6 7.6 156,777 15,412 2,899 8,754 77,339 70,684 3,008 3 50,000 0
configure.cpython no-host 14,916 1 69 15.5 29.2 1,785,018 30,549 28,524 91,507 886,576 806,935 25,736 61 50,000 0
configure.util-linux no-host 13,976 3 63 21.6 30.2 2,709,220 53,741 65,723 114,375 1,295,039 1,299,806 32,241 41 131,446 1
configure.ocaml no-host 3,763 1 2 2.6 22.6 149,865 11,176 5,219 7,736 70,876 71,253 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.7 30,581 30,581 0 1,545 14,638 14,398 271 0 50,000 0
configure.yash no-host 1,795 1 2 2.6 26.4 139,887 8,037 6,692 6,400 68,341 65,146 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.8 116,342 64,417 42,625 4,546 54,464 57,332 277 3 85,250 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 18 8 11 4.3 bash
15 no-host abuild-print-help 9 4 5 3.4 dash
23 no-host abuild-print-help 481 428 57 22.7 osh-cpython
31 no-host abuild-print-help 22 11 11 9.2 osh-native
39 no-host abuild-print-help 21 13 8 8.8 osh-native-souffle
1 no-host bin-true 654 304 383 2.9 bash
9 no-host bin-true 523 275 260 1.4 dash
17 no-host bin-true 2,345 808 1,793 18.7 osh-cpython
25 no-host bin-true 795 305 508 8.0 osh-native
33 no-host bin-true 790 296 511 7.6 osh-native-souffle
2 no-host configure.cpython 14,655 6,641 8,418 29.2 bash
10 no-host configure.cpython 14,700 6,637 8,497 29.2 dash
18 no-host configure.cpython 28,782 14,422 16,256 29.2 osh-cpython
26 no-host configure.cpython 15,009 6,569 8,732 29.1 osh-native
34 no-host configure.cpython 14,916 6,639 8,560 29.2 osh-native-souffle
4 no-host configure.ocaml 3,790 1,321 1,490 22.6 bash
12 no-host configure.ocaml 3,702 1,272 1,453 22.5 dash
20 no-host configure.ocaml 4,645 1,893 1,963 22.6 osh-cpython
28 no-host configure.ocaml 3,814 1,377 1,478 22.6 osh-native
36 no-host configure.ocaml 3,763 1,316 1,487 22.6 osh-native-souffle
5 no-host configure.tcc 46 27 19 19.8 bash
13 no-host configure.tcc 40 18 23 19.6 dash
21 no-host configure.tcc 208 144 68 19.7 osh-cpython
29 no-host configure.tcc 48 26 23 19.6 osh-native
37 no-host configure.tcc 47 23 25 19.7 osh-native-souffle
3 no-host configure.util-linux 13,594 5,790 8,292 30.3 bash
11 no-host configure.util-linux 14,496 5,836 9,178 30.4 dash
19 no-host configure.util-linux 31,477 18,029 14,536 30.3 osh-cpython
27 no-host configure.util-linux 14,190 5,691 8,678 30.3 osh-native
35 no-host configure.util-linux 13,976 5,550 8,631 30.2 osh-native-souffle
6 no-host configure.yash 1,796 883 923 26.4 bash
14 no-host configure.yash 1,733 902 835 26.2 dash
22 no-host configure.yash 2,454 1,359 1,139 26.3 osh-cpython
30 no-host configure.yash 1,813 907 910 26.4 osh-native
38 no-host configure.yash 1,795 891 909 26.4 osh-native-souffle
0 no-host hello-world 1 0 1 2.6 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 56 32 25 18.5 osh-cpython
24 no-host hello-world 3 1 1 6.3 osh-native
32 no-host hello-world 3 2 1 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,527 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,359 0 0 0 8 0 44 10 osh-cpython
31 no-host abuild-print-help 3,212 0 0 0 16 0 39 7 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 104,408 0 0 0 8 0 1,987 148 bash
9 no-host bin-true 65,396 0 0 0 8 0 1,982 73 dash
17 no-host bin-true 803,684 0 0 0 8 0 1,978 127 osh-cpython
25 no-host bin-true 128,313 0 0 0 16 0 1,987 199 osh-native
33 no-host bin-true 125,115 0 0 0 16 0 1,984 108 osh-native-souffle
2 no-host configure.cpython 2,000,330 0 0 0 32,928 0 14,313 1,351 bash
10 no-host configure.cpython 2,019,059 0 0 0 32,992 0 14,319 1,172 dash
18 no-host configure.cpython 6,107,641 1 0 0 27,512 0 13,087 1,124 osh-cpython
26 no-host configure.cpython 2,008,246 0 0 0 27,520 0 13,075 1,088 osh-native
34 no-host configure.cpython 1,996,913 0 0 0 27,520 0 13,081 1,166 osh-native-souffle
4 no-host configure.ocaml 373,738 0 0 0 5,120 0 1,961 200 bash
12 no-host configure.ocaml 354,013 0 0 0 5,112 0 1,937 182 dash
20 no-host configure.ocaml 614,896 1 0 0 5,112 0 1,846 198 osh-cpython
28 no-host configure.ocaml 376,866 0 0 0 5,120 0 1,926 205 osh-native
36 no-host configure.ocaml 376,429 0 0 0 5,120 0 1,938 188 osh-native-souffle
5 no-host configure.tcc 6,109 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,023 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,012 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,500 0 0 0 104 0 45 5 osh-native
37 no-host configure.tcc 6,482 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,913,197 1 0 0 42,400 0 18,561 1,320 bash
11 no-host configure.util-linux 2,077,245 0 0 0 42,584 0 17,336 1,513 dash
19 no-host configure.util-linux 5,295,124 4 0 0 39,136 0 17,032 1,322 osh-cpython
27 no-host configure.util-linux 1,820,829 0 0 0 39,120 0 17,033 1,176 osh-native
35 no-host configure.util-linux 1,813,576 0 0 0 39,128 0 16,963 1,271 osh-native-souffle
6 no-host configure.yash 233,834 0 0 0 4,120 0 872 89 bash
14 no-host configure.yash 221,714 0 0 0 3,720 0 871 97 dash
22 no-host configure.yash 369,203 0 0 0 3,728 0 854 81 osh-cpython
30 no-host configure.yash 235,342 0 0 0 3,736 0 846 96 osh-native
38 no-host configure.yash 235,644 0 0 0 3,736 0 848 91 osh-native-souffle
0 no-host hello-world 144 0 0 0 8 0 1 0 bash
8 no-host hello-world 76 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,973 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-dd4c9e24
dash dash-0ebcf347
osh-cpython osh-3f55d5d5
osh-native osh-c558b0b9
osh-native-souffle osh-c136e465
host label host id
no-host no-host-e4839999