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 9 530 22 20 33.92 1.40
bin-true no-host 606 434 2,439 796 802 4.03 1.31
configure.cpython no-host 13,761 13,837 29,569 14,882 14,711 2.15 1.08
configure.ocaml no-host 3,682 3,611 4,635 3,727 3,722 1.26 1.01
configure.tcc no-host 46 41 219 50 49 4.79 1.08
configure.util-linux no-host 12,484 14,251 32,191 13,679 13,663 2.58 1.10
configure.yash no-host 1,691 1,634 2,429 1,730 1,709 1.44 1.02
hello-world no-host 1 1 61 3 3 50.21 2.44

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,407 1,160 24,835 3,483 3,293 10.32 1.45
bin-true no-host 98,910 49,369 837,039 134,286 137,286 8.46 1.36
configure.cpython no-host 1,621,588 1,642,228 5,955,502 1,810,506 1,792,282 3.67 1.12
configure.ocaml no-host 298,899 280,912 556,349 317,376 315,912 1.86 1.06
configure.tcc no-host 5,208 4,222 23,776 5,965 5,855 4.57 1.15
configure.util-linux no-host 1,535,904 1,699,626 4,952,311 1,720,623 1,711,621 3.22 1.12
configure.yash no-host 173,457 159,507 314,976 179,691 179,012 1.82 1.04
hello-world no-host 151 88 3,873 386 381 25.65 2.56

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.8 3.9 22.5 9.8 9.0 4.64 2.03
bin-true no-host 3.3 1.4 18.1 8.9 8.5 5.51 2.72
configure.cpython no-host 34.3 34.3 34.6 34.4 34.6 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.8 28.7 28.8 1.00 1.00
configure.tcc no-host 26.1 26.2 26.1 26.3 26.2 1.00 1.01
configure.util-linux no-host 39.6 39.6 39.6 39.5 39.7 1.00 1.00
configure.yash no-host 33.4 33.1 33.1 33.4 33.1 0.99 1.00
hello-world no-host 3.1 1.6 18.1 6.9 6.6 5.74 2.21

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.9 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 796 1 2 2.6 8.9 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,882 1 69 15.2 34.4 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,679 3 63 21.4 39.5 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,727 1 2 2.7 28.7 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.3 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,730 1 2 2.6 33.4 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.6 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 802 1 2 2.6 8.5 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,711 1 66 15.2 34.6 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,663 3 61 21.4 39.7 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,722 1 2 2.7 28.8 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,709 1 2 2.6 33.1 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.0 116,367 64,433 42,634 4,563 54,472 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 8 8 4.8 bash
15 no-host abuild-print-help 9 6 4 3.9 dash
23 no-host abuild-print-help 530 472 61 22.5 osh-cpython
31 no-host abuild-print-help 22 13 10 9.8 osh-native
39 no-host abuild-print-help 20 12 9 9.0 osh-native-souffle
1 no-host bin-true 606 311 332 3.3 bash
9 no-host bin-true 434 286 155 1.4 dash
17 no-host bin-true 2,439 892 1,816 18.1 osh-cpython
25 no-host bin-true 796 302 509 8.9 osh-native
33 no-host bin-true 802 305 512 8.5 osh-native-souffle
2 no-host configure.cpython 13,761 7,465 6,668 34.3 bash
10 no-host configure.cpython 13,837 7,494 6,736 34.3 dash
18 no-host configure.cpython 29,569 16,168 15,389 34.6 osh-cpython
26 no-host configure.cpython 14,882 7,489 7,675 34.4 osh-native
34 no-host configure.cpython 14,711 7,329 7,518 34.6 osh-native-souffle
4 no-host configure.ocaml 3,682 1,504 1,218 28.7 bash
12 no-host configure.ocaml 3,611 1,433 1,201 28.7 dash
20 no-host configure.ocaml 4,635 2,067 1,789 28.8 osh-cpython
28 no-host configure.ocaml 3,727 1,476 1,292 28.7 osh-native
36 no-host configure.ocaml 3,722 1,464 1,297 28.8 osh-native-souffle
5 no-host configure.tcc 46 23 24 26.1 bash
13 no-host configure.tcc 41 22 19 26.2 dash
21 no-host configure.tcc 219 159 64 26.1 osh-cpython
29 no-host configure.tcc 50 25 25 26.3 osh-native
37 no-host configure.tcc 49 20 29 26.2 osh-native-souffle
3 no-host configure.util-linux 12,484 6,527 6,412 39.6 bash
11 no-host configure.util-linux 14,251 6,487 7,418 39.6 dash
19 no-host configure.util-linux 32,191 20,260 13,012 39.6 osh-cpython
27 no-host configure.util-linux 13,679 6,313 7,590 39.5 osh-native
35 no-host configure.util-linux 13,663 6,281 7,455 39.7 osh-native-souffle
6 no-host configure.yash 1,691 947 753 33.4 bash
14 no-host configure.yash 1,634 882 753 33.1 dash
22 no-host configure.yash 2,429 1,416 1,055 33.1 osh-cpython
30 no-host configure.yash 1,730 965 767 33.4 osh-native
38 no-host configure.yash 1,709 941 771 33.1 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 61 40 21 18.1 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 0 3 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,407 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,160 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,835 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,483 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,293 0 0 0 16 0 38 0 osh-native-souffle
1 no-host bin-true 98,910 0 0 0 8 0 1,988 81 bash
9 no-host bin-true 49,369 0 0 0 8 0 2,976 47 dash
17 no-host bin-true 837,039 0 0 0 8 0 1,999 185 osh-cpython
25 no-host bin-true 134,286 0 0 0 16 0 1,983 96 osh-native
33 no-host bin-true 137,286 0 0 0 16 0 1,969 84 osh-native-souffle
2 no-host configure.cpython 1,621,588 0 0 0 25,272 0 14,009 1,043 bash
10 no-host configure.cpython 1,642,228 0 0 0 25,272 0 14,091 995 dash
18 no-host configure.cpython 5,955,502 0 0 0 25,272 0 12,874 866 osh-cpython
26 no-host configure.cpython 1,810,506 0 0 0 25,280 0 12,849 1,044 osh-native
34 no-host configure.cpython 1,792,282 0 0 0 25,280 0 12,839 1,036 osh-native-souffle
4 no-host configure.ocaml 298,899 0 0 0 4,432 0 2,014 192 bash
12 no-host configure.ocaml 280,912 0 0 0 4,432 0 2,103 194 dash
20 no-host configure.ocaml 556,349 0 0 0 4,432 0 1,914 188 osh-cpython
28 no-host configure.ocaml 317,376 0 0 0 4,440 0 2,001 191 osh-native
36 no-host configure.ocaml 315,912 0 0 0 4,440 0 1,993 208 osh-native-souffle
5 no-host configure.tcc 5,208 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,222 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,776 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,965 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,855 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,535,904 2 0 0 35,944 0 18,917 1,068 bash
11 no-host configure.util-linux 1,699,626 0 0 0 35,936 0 17,062 1,210 dash
19 no-host configure.util-linux 4,952,311 2 0 0 35,960 0 17,543 861 osh-cpython
27 no-host configure.util-linux 1,720,623 2 0 0 35,952 0 17,522 1,099 osh-native
35 no-host configure.util-linux 1,711,621 1 0 0 35,952 0 17,406 1,101 osh-native-souffle
6 no-host configure.yash 173,457 0 0 0 3,616 0 871 100 bash
14 no-host configure.yash 159,507 0 0 0 3,616 0 993 105 dash
22 no-host configure.yash 314,976 0 0 0 3,616 0 861 107 osh-cpython
30 no-host configure.yash 179,691 0 0 0 3,624 0 860 107 osh-native
38 no-host configure.yash 179,012 0 0 0 3,624 0 852 99 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 0 0 dash
16 no-host hello-world 3,873 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 1 osh-native
32 no-host hello-world 381 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-03572b4a
dash dash-cea41b3e
osh-cpython osh-1ba59119
osh-native osh-13b3e50a
osh-native-souffle osh-7a773f67
host label host id
no-host no-host-2411472