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 16 10 538 22 21 33.31 1.38
bin-true no-host 640 461 2,522 832 848 3.94 1.30
configure.cpython no-host 14,457 14,401 31,136 15,158 15,307 2.15 1.05
configure.ocaml no-host 3,790 3,729 4,780 3,848 3,841 1.26 1.02
configure.tcc no-host 47 44 227 50 50 4.84 1.07
configure.util-linux no-host 13,108 14,009 33,603 14,269 14,287 2.56 1.09
configure.yash no-host 1,783 1,759 2,523 1,790 1,788 1.41 1.00
hello-world no-host 1 1 67 3 3 46.38 2.38

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,395 1,166 24,726 3,482 3,333 10.32 1.45
bin-true no-host 101,898 49,364 829,616 134,291 134,341 8.14 1.32
configure.cpython no-host 1,624,087 1,639,463 5,947,074 1,792,937 1,788,583 3.66 1.10
configure.ocaml no-host 299,057 280,796 554,923 317,296 316,102 1.86 1.06
configure.tcc no-host 5,217 4,212 23,742 5,935 5,874 4.55 1.14
configure.util-linux no-host 1,534,417 1,694,342 4,963,843 1,726,954 1,709,475 3.24 1.13
configure.yash no-host 173,443 159,494 314,983 178,927 179,284 1.82 1.03
hello-world no-host 151 82 3,884 383 377 25.72 2.54

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.7 3.9 22.9 9.8 9.2 4.86 2.08
bin-true no-host 3.3 1.7 18.2 8.8 8.3 5.55 2.68
configure.cpython no-host 34.5 34.5 34.4 34.6 34.4 1.00 1.00
configure.ocaml no-host 28.8 28.6 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.1 26.1 26.2 26.4 26.2 1.00 1.01
configure.util-linux no-host 39.5 39.6 39.6 39.9 39.6 1.00 1.01
configure.yash no-host 33.1 33.3 33.3 33.4 33.4 1.00 1.01
hello-world no-host 3.1 1.4 18.0 6.8 6.4 5.73 2.17

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.8 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 832 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 15,158 1 71 15.2 34.6 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,269 3 67 21.4 39.9 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,848 1 2 2.7 28.7 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.4 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,790 1 2 2.6 33.4 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 848 1 2 2.6 8.3 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 15,307 1 67 15.2 34.4 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,287 3 64 21.4 39.6 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,841 1 2 2.7 28.7 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.2 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,788 1 2 2.6 33.4 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,366 64,433 42,634 4,563 54,471 57,332 277 3 85,268 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 16 11 6 4.7 bash
15 no-host abuild-print-help 10 4 6 3.9 dash
23 no-host abuild-print-help 538 482 59 22.9 osh-cpython
31 no-host abuild-print-help 22 14 9 9.8 osh-native
39 no-host abuild-print-help 21 10 11 9.2 osh-native-souffle
1 no-host bin-true 640 304 375 3.3 bash
9 no-host bin-true 461 276 192 1.7 dash
17 no-host bin-true 2,522 894 1,906 18.2 osh-cpython
25 no-host bin-true 832 294 556 8.8 osh-native
33 no-host bin-true 848 297 569 8.3 osh-native-souffle
2 no-host configure.cpython 14,457 7,693 7,162 34.5 bash
10 no-host configure.cpython 14,401 7,647 7,172 34.5 dash
18 no-host configure.cpython 31,136 17,049 16,148 34.4 osh-cpython
26 no-host configure.cpython 15,158 7,451 8,025 34.6 osh-native
34 no-host configure.cpython 15,307 7,411 8,085 34.4 osh-native-souffle
4 no-host configure.ocaml 3,790 1,482 1,349 28.8 bash
12 no-host configure.ocaml 3,729 1,476 1,279 28.6 dash
20 no-host configure.ocaml 4,780 2,187 1,823 28.8 osh-cpython
28 no-host configure.ocaml 3,848 1,512 1,380 28.7 osh-native
36 no-host configure.ocaml 3,841 1,529 1,354 28.7 osh-native-souffle
5 no-host configure.tcc 47 25 22 26.1 bash
13 no-host configure.tcc 44 17 27 26.1 dash
21 no-host configure.tcc 227 164 67 26.2 osh-cpython
29 no-host configure.tcc 50 20 31 26.4 osh-native
37 no-host configure.tcc 50 23 27 26.2 osh-native-souffle
3 no-host configure.util-linux 13,108 6,617 6,979 39.5 bash
11 no-host configure.util-linux 14,009 6,712 7,799 39.6 dash
19 no-host configure.util-linux 33,603 20,727 14,004 39.6 osh-cpython
27 no-host configure.util-linux 14,269 6,438 8,082 39.9 osh-native
35 no-host configure.util-linux 14,287 6,363 8,016 39.6 osh-native-souffle
6 no-host configure.yash 1,783 944 842 33.1 bash
14 no-host configure.yash 1,759 1,022 738 33.3 dash
22 no-host configure.yash 2,523 1,478 1,088 33.3 osh-cpython
30 no-host configure.yash 1,790 940 853 33.4 osh-native
38 no-host configure.yash 1,788 951 840 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 67 44 23 18.0 osh-cpython
24 no-host hello-world 3 3 0 6.8 osh-native
32 no-host hello-world 3 1 2 6.4 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,395 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,166 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 24,726 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,482 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,333 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 101,898 0 0 0 8 0 1,973 113 bash
9 no-host bin-true 49,364 0 0 0 8 0 2,970 70 dash
17 no-host bin-true 829,616 0 0 0 8 0 1,976 249 osh-cpython
25 no-host bin-true 134,291 0 0 0 16 0 1,959 111 osh-native
33 no-host bin-true 134,341 0 0 0 16 0 1,976 158 osh-native-souffle
2 no-host configure.cpython 1,624,087 0 0 0 25,272 0 14,027 1,162 bash
10 no-host configure.cpython 1,639,463 0 0 0 25,272 0 14,072 1,150 dash
18 no-host configure.cpython 5,947,074 0 0 0 25,272 0 12,870 1,280 osh-cpython
26 no-host configure.cpython 1,792,937 0 0 0 25,280 0 12,852 1,081 osh-native
34 no-host configure.cpython 1,788,583 0 0 0 25,280 0 12,842 1,042 osh-native-souffle
4 no-host configure.ocaml 299,057 0 0 0 4,432 0 2,009 211 bash
12 no-host configure.ocaml 280,796 0 0 0 4,432 0 2,099 198 dash
20 no-host configure.ocaml 554,923 0 0 0 4,432 0 1,915 209 osh-cpython
28 no-host configure.ocaml 317,296 0 0 0 4,440 0 1,992 186 osh-native
36 no-host configure.ocaml 316,102 0 0 0 4,440 0 1,991 219 osh-native-souffle
5 no-host configure.tcc 5,217 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,212 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,742 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,935 0 0 0 96 0 47 10 osh-native
37 no-host configure.tcc 5,874 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,534,417 1 0 0 35,944 0 18,888 1,126 bash
11 no-host configure.util-linux 1,694,342 1 0 0 35,936 0 17,017 1,330 dash
19 no-host configure.util-linux 4,963,843 3 0 0 35,952 0 17,547 1,147 osh-cpython
27 no-host configure.util-linux 1,726,954 4 0 0 35,952 0 17,486 1,060 osh-native
35 no-host configure.util-linux 1,709,475 4 0 0 35,952 0 17,537 1,081 osh-native-souffle
6 no-host configure.yash 173,443 0 0 0 3,616 0 889 134 bash
14 no-host configure.yash 159,494 0 0 0 3,616 0 994 129 dash
22 no-host configure.yash 314,983 1 0 0 3,616 0 861 132 osh-cpython
30 no-host configure.yash 178,927 0 0 0 3,624 0 860 138 osh-native
38 no-host configure.yash 179,284 0 0 0 3,624 0 858 128 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,884 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 383 0 0 0 16 0 2 1 osh-native
32 no-host hello-world 377 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8e7d146c
dash dash-cea41b3e
osh-cpython osh-5e9cc624
osh-native osh-1f563399
osh-native-souffle osh-33df88c3
host label host id
no-host no-host-2411472