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 479 22 20 25.73 1.18
bin-true no-host 654 527 2,399 788 780 3.67 1.21
configure.cpython no-host 14,573 14,727 28,952 14,873 14,785 1.99 1.02
configure.ocaml no-host 3,782 3,677 4,610 3,749 3,758 1.22 0.99
configure.tcc no-host 47 40 205 48 48 4.40 1.03
configure.util-linux no-host 13,860 14,480 31,726 14,002 13,918 2.29 1.01
configure.yash no-host 1,784 1,733 2,443 1,787 1,795 1.37 1.00
hello-world no-host 1 1 56 3 3 41.92 2.09

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,504 1,100 25,356 3,215 3,099 10.13 1.28
bin-true no-host 106,293 65,466 804,658 127,228 126,211 7.57 1.20
configure.cpython no-host 1,993,460 2,018,167 6,099,076 2,015,637 1,996,098 3.06 1.01
configure.ocaml no-host 373,668 354,285 615,306 376,787 375,846 1.65 1.01
configure.tcc no-host 6,100 5,040 24,017 6,520 6,434 3.94 1.07
configure.util-linux no-host 1,913,072 2,068,640 5,285,058 1,820,659 1,808,394 2.76 0.95
configure.yash no-host 233,838 221,659 369,073 235,263 235,494 1.58 1.01
hello-world no-host 146 78 3,971 348 340 27.20 2.38

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 8.9 8.7 5.26 2.06
bin-true no-host 2.9 1.4 18.3 8.0 7.6 6.34 2.77
configure.cpython no-host 29.3 29.2 29.2 29.2 29.3 1.00 1.00
configure.ocaml no-host 22.5 22.6 22.6 22.6 22.5 1.01 1.01
configure.tcc no-host 19.6 19.7 19.5 19.6 19.4 1.00 1.00
configure.util-linux no-host 30.2 30.2 30.3 30.5 30.2 1.00 1.01
configure.yash no-host 26.5 26.3 26.4 26.4 26.5 0.99 0.99
hello-world no-host 2.8 1.6 18.3 6.4 5.9 6.65 2.33

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.4 3,811 3,811 0 701 1,872 1,238 2 0 50,000 0
bin-true no-host 788 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 14,873 1 68 15.5 29.2 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,002 3 64 21.6 30.5 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,749 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,787 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 8.9 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 5.9 3,810 3,810 0 702 1,872 1,236 2 0 50,000 0
bin-true no-host 780 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,785 1 67 15.5 29.3 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,918 3 64 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,758 1 2 2.6 22.5 149,865 11,176 5,219 7,736 70,876 71,253 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 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.5 139,887 8,037 6,692 6,400 68,341 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 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 19 12 8 4.3 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 479 424 58 22.7 osh-cpython
31 no-host abuild-print-help 22 9 13 8.9 osh-native
39 no-host abuild-print-help 20 9 12 8.7 osh-native-souffle
1 no-host bin-true 654 312 376 2.9 bash
9 no-host bin-true 527 282 256 1.4 dash
17 no-host bin-true 2,399 778 1,880 18.3 osh-cpython
25 no-host bin-true 788 287 517 8.0 osh-native
33 no-host bin-true 780 307 490 7.6 osh-native-souffle
2 no-host configure.cpython 14,573 6,539 8,441 29.3 bash
10 no-host configure.cpython 14,727 6,750 8,409 29.2 dash
18 no-host configure.cpython 28,952 14,440 16,410 29.2 osh-cpython
26 no-host configure.cpython 14,873 6,477 8,679 29.2 osh-native
34 no-host configure.cpython 14,785 6,423 8,642 29.3 osh-native-souffle
4 no-host configure.ocaml 3,782 1,330 1,489 22.5 bash
12 no-host configure.ocaml 3,677 1,304 1,391 22.6 dash
20 no-host configure.ocaml 4,610 1,848 1,976 22.6 osh-cpython
28 no-host configure.ocaml 3,749 1,275 1,515 22.6 osh-native
36 no-host configure.ocaml 3,758 1,262 1,535 22.5 osh-native-souffle
5 no-host configure.tcc 47 19 28 19.6 bash
13 no-host configure.tcc 40 22 19 19.7 dash
21 no-host configure.tcc 205 146 63 19.5 osh-cpython
29 no-host configure.tcc 48 21 28 19.6 osh-native
37 no-host configure.tcc 48 27 21 19.4 osh-native-souffle
3 no-host configure.util-linux 13,860 5,764 8,310 30.2 bash
11 no-host configure.util-linux 14,480 5,800 9,175 30.2 dash
19 no-host configure.util-linux 31,726 17,904 14,912 30.3 osh-cpython
27 no-host configure.util-linux 14,002 5,623 8,593 30.5 osh-native
35 no-host configure.util-linux 13,918 5,533 8,600 30.2 osh-native-souffle
6 no-host configure.yash 1,784 907 887 26.5 bash
14 no-host configure.yash 1,733 881 856 26.3 dash
22 no-host configure.yash 2,443 1,369 1,118 26.4 osh-cpython
30 no-host configure.yash 1,787 862 928 26.4 osh-native
38 no-host configure.yash 1,795 896 904 26.5 osh-native-souffle
0 no-host hello-world 1 0 1 2.8 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 38 19 18.3 osh-cpython
24 no-host hello-world 3 2 1 6.4 osh-native
32 no-host hello-world 3 1 2 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,504 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 25,356 0 0 0 8 0 44 6 osh-cpython
31 no-host abuild-print-help 3,215 0 0 0 16 0 39 7 osh-native
39 no-host abuild-print-help 3,099 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,293 0 0 0 8 0 1,984 204 bash
9 no-host bin-true 65,466 0 0 0 8 0 1,985 146 dash
17 no-host bin-true 804,658 0 0 0 8 0 1,990 570 osh-cpython
25 no-host bin-true 127,228 0 0 0 16 0 1,976 204 osh-native
33 no-host bin-true 126,211 0 0 0 16 0 1,986 85 osh-native-souffle
2 no-host configure.cpython 1,993,460 0 0 0 32,928 0 14,286 1,162 bash
10 no-host configure.cpython 2,018,167 0 0 0 32,992 0 14,334 1,283 dash
18 no-host configure.cpython 6,099,076 0 0 0 27,512 0 13,043 1,165 osh-cpython
26 no-host configure.cpython 2,015,637 0 0 0 27,520 0 13,082 1,163 osh-native
34 no-host configure.cpython 1,996,098 0 0 0 27,520 0 13,032 1,271 osh-native-souffle
4 no-host configure.ocaml 373,668 0 0 0 5,120 0 1,952 197 bash
12 no-host configure.ocaml 354,285 0 0 0 5,112 0 1,942 178 dash
20 no-host configure.ocaml 615,306 0 0 0 5,112 0 1,850 200 osh-cpython
28 no-host configure.ocaml 376,787 0 0 0 5,120 0 1,926 218 osh-native
36 no-host configure.ocaml 375,846 0 0 0 5,120 0 1,930 209 osh-native-souffle
5 no-host configure.tcc 6,100 0 0 0 104 0 48 1 bash
13 no-host configure.tcc 5,040 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,017 0 0 0 96 0 52 4 osh-cpython
29 no-host configure.tcc 6,520 0 0 0 104 0 47 14 osh-native
37 no-host configure.tcc 6,434 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,913,072 0 0 0 42,400 0 18,376 1,235 bash
11 no-host configure.util-linux 2,068,640 0 0 0 42,584 0 17,361 1,423 dash
19 no-host configure.util-linux 5,285,058 15 0 0 39,112 0 17,059 1,337 osh-cpython
27 no-host configure.util-linux 1,820,659 0 0 0 39,128 0 17,042 1,218 osh-native
35 no-host configure.util-linux 1,808,394 0 0 0 39,136 0 17,035 1,148 osh-native-souffle
6 no-host configure.yash 233,838 0 0 0 4,120 0 874 99 bash
14 no-host configure.yash 221,659 0 0 0 3,720 0 871 105 dash
22 no-host configure.yash 369,073 0 0 0 3,728 0 856 106 osh-cpython
30 no-host configure.yash 235,263 0 0 0 3,736 0 850 99 osh-native
38 no-host configure.yash 235,494 0 0 0 3,736 0 852 142 osh-native-souffle
0 no-host hello-world 146 0 0 0 8 0 1 0 bash
8 no-host hello-world 78 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,971 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 348 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-00cb44b3
dash dash-0ebcf347
osh-cpython osh-9f429a0c
osh-native osh-33e7a51c
osh-native-souffle osh-376de7d5
host label host id
no-host no-host-e4839999