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 525 22 22 32.62 1.39
bin-true no-host 642 457 2,490 834 825 3.88 1.30
configure.cpython no-host 14,124 13,968 29,655 14,834 14,896 2.10 1.05
configure.ocaml no-host 3,696 3,657 4,657 3,798 3,750 1.26 1.03
configure.tcc no-host 46 42 225 50 49 4.88 1.08
configure.util-linux no-host 12,833 13,532 32,454 13,857 13,872 2.53 1.08
configure.yash no-host 1,716 1,656 2,472 1,727 1,731 1.44 1.01
hello-world no-host 1 1 60 3 3 47.31 2.31

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,379 1,172 24,701 3,445 3,304 10.38 1.45
bin-true no-host 100,892 49,421 832,545 138,312 133,295 8.25 1.37
configure.cpython no-host 1,625,561 1,637,903 5,941,449 1,811,691 1,793,292 3.66 1.11
configure.ocaml no-host 299,247 280,705 555,126 317,201 315,513 1.86 1.06
configure.tcc no-host 5,228 4,215 23,712 5,956 5,849 4.54 1.14
configure.util-linux no-host 1,540,337 1,693,761 4,969,670 1,716,566 1,707,225 3.23 1.11
configure.yash no-host 173,795 159,516 314,714 179,666 178,873 1.81 1.03
hello-world no-host 151 85 3,878 383 378 25.68 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.6 3.9 22.8 9.8 9.0 4.97 2.14
bin-true no-host 3.3 1.7 18.4 8.9 8.1 5.60 2.72
configure.cpython no-host 34.4 34.5 34.6 34.8 34.7 1.01 1.01
configure.ocaml no-host 28.7 28.8 28.7 28.7 28.6 1.00 1.00
configure.tcc no-host 26.0 26.3 26.1 26.3 26.3 1.00 1.01
configure.util-linux no-host 39.3 39.5 39.7 39.9 39.6 1.01 1.01
configure.yash no-host 33.1 33.3 33.4 33.3 33.4 1.01 1.00
hello-world no-host 3.1 1.4 18.0 6.8 6.6 5.72 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 834 1 2 2.6 8.9 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,834 1 69 15.2 34.8 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,857 3 62 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,798 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.3 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,727 1 2 2.6 33.3 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.6 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.1 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,896 2 67 15.2 34.7 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,872 3 59 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,750 1 2 2.7 28.6 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,731 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 22 1 2 2.8 9.0 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 10 7 4.6 bash
15 no-host abuild-print-help 10 4 6 3.9 dash
23 no-host abuild-print-help 525 468 60 22.8 osh-cpython
31 no-host abuild-print-help 22 10 13 9.8 osh-native
39 no-host abuild-print-help 22 9 14 9.0 osh-native-souffle
1 no-host bin-true 642 314 367 3.3 bash
9 no-host bin-true 457 288 175 1.7 dash
17 no-host bin-true 2,490 853 1,904 18.4 osh-cpython
25 no-host bin-true 834 301 550 8.9 osh-native
33 no-host bin-true 825 314 529 8.1 osh-native-souffle
2 no-host configure.cpython 14,124 7,558 6,922 34.4 bash
10 no-host configure.cpython 13,968 7,404 6,973 34.5 dash
18 no-host configure.cpython 29,655 16,281 15,343 34.6 osh-cpython
26 no-host configure.cpython 14,834 7,299 7,843 34.8 osh-native
34 no-host configure.cpython 14,896 7,357 7,715 34.7 osh-native-souffle
4 no-host configure.ocaml 3,696 1,456 1,281 28.7 bash
12 no-host configure.ocaml 3,657 1,469 1,213 28.8 dash
20 no-host configure.ocaml 4,657 2,088 1,792 28.7 osh-cpython
28 no-host configure.ocaml 3,798 1,509 1,333 28.7 osh-native
36 no-host configure.ocaml 3,750 1,460 1,330 28.6 osh-native-souffle
5 no-host configure.tcc 46 25 22 26.0 bash
13 no-host configure.tcc 42 19 23 26.3 dash
21 no-host configure.tcc 225 159 70 26.1 osh-cpython
29 no-host configure.tcc 50 24 26 26.3 osh-native
37 no-host configure.tcc 49 25 24 26.3 osh-native-souffle
3 no-host configure.util-linux 12,833 6,547 6,763 39.3 bash
11 no-host configure.util-linux 13,532 6,355 7,678 39.5 dash
19 no-host configure.util-linux 32,454 20,266 13,270 39.7 osh-cpython
27 no-host configure.util-linux 13,857 6,279 7,819 39.9 osh-native
35 no-host configure.util-linux 13,872 6,212 7,745 39.6 osh-native-souffle
6 no-host configure.yash 1,716 947 778 33.1 bash
14 no-host configure.yash 1,656 929 728 33.3 dash
22 no-host configure.yash 2,472 1,458 1,058 33.4 osh-cpython
30 no-host configure.yash 1,727 914 816 33.3 osh-native
38 no-host configure.yash 1,731 930 804 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 60 40 20 18.0 osh-cpython
24 no-host hello-world 3 2 1 6.8 osh-native
32 no-host hello-world 3 2 1 6.6 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,379 0 0 0 8 0 40 1 bash
15 no-host abuild-print-help 1,172 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 24,701 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,445 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,304 0 0 0 16 0 37 1 osh-native-souffle
1 no-host bin-true 100,892 0 0 0 8 0 1,965 81 bash
9 no-host bin-true 49,421 0 0 0 8 0 2,973 57 dash
17 no-host bin-true 832,545 0 0 0 8 0 1,976 205 osh-cpython
25 no-host bin-true 138,312 0 0 0 16 0 1,966 84 osh-native
33 no-host bin-true 133,295 0 0 0 16 0 1,975 148 osh-native-souffle
2 no-host configure.cpython 1,625,561 0 0 0 25,296 0 14,038 1,266 bash
10 no-host configure.cpython 1,637,903 1 0 0 25,272 0 14,089 1,306 dash
18 no-host configure.cpython 5,941,449 1 0 0 25,272 0 12,873 1,184 osh-cpython
26 no-host configure.cpython 1,811,691 0 0 0 25,280 0 12,868 1,299 osh-native
34 no-host configure.cpython 1,793,292 0 0 0 25,280 0 12,846 1,356 osh-native-souffle
4 no-host configure.ocaml 299,247 0 0 0 4,432 0 2,012 229 bash
12 no-host configure.ocaml 280,705 0 0 0 4,432 0 2,102 192 dash
20 no-host configure.ocaml 555,126 0 0 0 4,432 0 1,907 206 osh-cpython
28 no-host configure.ocaml 317,201 0 0 0 4,440 0 2,000 198 osh-native
36 no-host configure.ocaml 315,513 0 0 0 4,440 0 2,001 224 osh-native-souffle
5 no-host configure.tcc 5,228 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,215 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,712 0 0 0 88 0 53 8 osh-cpython
29 no-host configure.tcc 5,956 0 0 0 96 0 46 7 osh-native
37 no-host configure.tcc 5,849 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,540,337 0 0 0 35,944 0 18,930 1,169 bash
11 no-host configure.util-linux 1,693,761 1 0 0 35,944 0 17,011 1,345 dash
19 no-host configure.util-linux 4,969,670 5 0 0 35,952 0 17,520 1,177 osh-cpython
27 no-host configure.util-linux 1,716,566 0 0 0 35,952 0 17,538 1,143 osh-native
35 no-host configure.util-linux 1,707,225 1 0 0 35,952 0 17,434 1,077 osh-native-souffle
6 no-host configure.yash 173,795 0 0 0 3,616 0 874 143 bash
14 no-host configure.yash 159,516 0 0 0 3,616 0 997 135 dash
22 no-host configure.yash 314,714 0 0 0 3,616 0 861 139 osh-cpython
30 no-host configure.yash 179,666 0 0 0 3,624 0 855 137 osh-native
38 no-host configure.yash 178,873 0 0 0 3,624 0 860 122 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,878 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 383 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b16cbabf
dash dash-cea41b3e
osh-cpython osh-5597a575
osh-native osh-8ac6cd79
osh-native-souffle osh-2a2e8d65
host label host id
no-host no-host-2411472