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 32.56 1.35
bin-true no-host 618 440 2,454 797 788 3.97 1.29
configure.cpython no-host 14,085 14,119 30,715 14,773 14,947 2.18 1.05
configure.ocaml no-host 3,744 3,658 4,672 3,760 3,758 1.25 1.00
configure.tcc no-host 47 41 225 49 49 4.82 1.06
configure.util-linux no-host 12,710 13,503 33,017 13,775 13,922 2.60 1.08
configure.yash no-host 1,764 1,664 2,439 1,743 1,759 1.38 0.99
hello-world no-host 1 1 63 3 3 49.58 2.23

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,398 1,168 24,926 3,495 3,348 10.39 1.46
bin-true no-host 100,903 49,411 835,723 138,288 134,279 8.28 1.37
configure.cpython no-host 1,624,135 1,640,856 6,004,016 1,799,835 1,790,498 3.70 1.11
configure.ocaml no-host 298,992 280,440 557,086 317,048 316,456 1.86 1.06
configure.tcc no-host 5,209 4,207 23,851 5,966 5,839 4.58 1.15
configure.util-linux no-host 1,531,766 1,695,356 5,003,825 1,715,656 1,706,620 3.27 1.12
configure.yash no-host 173,556 159,535 316,380 179,796 179,407 1.82 1.04
hello-world no-host 151 85 3,889 383 376 25.75 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.8 4.1 22.9 9.6 9.2 4.73 1.97
bin-true no-host 3.1 1.6 18.3 8.8 8.3 5.83 2.79
configure.cpython no-host 34.3 34.7 34.8 34.5 34.5 1.01 1.01
configure.ocaml no-host 28.7 28.6 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.3 26.0 26.3 26.4 26.3 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.9 39.9 39.6 1.00 1.00
configure.yash no-host 33.1 33.5 33.4 33.4 33.3 1.01 1.01
hello-world no-host 3.3 1.6 17.9 6.8 6.4 5.47 2.08

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,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.8 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,773 1 66 15.2 34.5 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,775 3 61 21.4 39.9 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,760 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 49 0 0 1.3 26.4 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,743 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.6 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.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 788 1 2 2.6 8.3 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,947 1 65 15.2 34.5 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,922 3 61 21.4 39.6 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,758 1 2 2.7 28.7 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.3 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,759 1 2 2.6 33.3 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.2 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 10 7 4.8 bash
15 no-host abuild-print-help 9 7 2 4.1 dash
23 no-host abuild-print-help 530 476 57 22.9 osh-cpython
31 no-host abuild-print-help 22 12 11 9.6 osh-native
39 no-host abuild-print-help 20 11 10 9.2 osh-native-souffle
1 no-host bin-true 618 324 332 3.1 bash
9 no-host bin-true 440 271 172 1.6 dash
17 no-host bin-true 2,454 883 1,847 18.3 osh-cpython
25 no-host bin-true 797 301 517 8.8 osh-native
33 no-host bin-true 788 303 504 8.3 osh-native-souffle
2 no-host configure.cpython 14,085 7,641 6,828 34.3 bash
10 no-host configure.cpython 14,119 7,668 6,839 34.7 dash
18 no-host configure.cpython 30,715 16,898 15,886 34.8 osh-cpython
26 no-host configure.cpython 14,773 7,444 7,624 34.5 osh-native
34 no-host configure.cpython 14,947 7,488 7,611 34.5 osh-native-souffle
4 no-host configure.ocaml 3,744 1,495 1,288 28.7 bash
12 no-host configure.ocaml 3,658 1,455 1,225 28.6 dash
20 no-host configure.ocaml 4,672 2,101 1,794 28.5 osh-cpython
28 no-host configure.ocaml 3,760 1,468 1,333 28.7 osh-native
36 no-host configure.ocaml 3,758 1,534 1,264 28.7 osh-native-souffle
5 no-host configure.tcc 47 25 23 26.3 bash
13 no-host configure.tcc 41 28 13 26.0 dash
21 no-host configure.tcc 225 158 71 26.3 osh-cpython
29 no-host configure.tcc 49 20 30 26.4 osh-native
37 no-host configure.tcc 49 19 31 26.3 osh-native-souffle
3 no-host configure.util-linux 12,710 6,622 6,552 39.7 bash
11 no-host configure.util-linux 13,503 6,539 7,443 39.7 dash
19 no-host configure.util-linux 33,017 20,734 13,407 39.9 osh-cpython
27 no-host configure.util-linux 13,775 6,542 7,465 39.9 osh-native
35 no-host configure.util-linux 13,922 6,391 7,603 39.6 osh-native-souffle
6 no-host configure.yash 1,764 989 782 33.1 bash
14 no-host configure.yash 1,664 951 714 33.5 dash
22 no-host configure.yash 2,439 1,418 1,063 33.4 osh-cpython
30 no-host configure.yash 1,743 943 803 33.4 osh-native
38 no-host configure.yash 1,759 966 796 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 63 42 21 17.9 osh-cpython
24 no-host hello-world 3 1 1 6.8 osh-native
32 no-host hello-world 3 1 1 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,398 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,168 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,926 0 0 0 8 0 45 2 osh-cpython
31 no-host abuild-print-help 3,495 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,348 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,903 0 0 0 8 0 1,989 69 bash
9 no-host bin-true 49,411 0 0 0 8 0 2,941 60 dash
17 no-host bin-true 835,723 0 0 0 8 0 1,991 106 osh-cpython
25 no-host bin-true 138,288 0 0 0 16 0 1,979 87 osh-native
33 no-host bin-true 134,279 0 0 0 16 0 1,977 81 osh-native-souffle
2 no-host configure.cpython 1,624,135 0 0 0 25,272 0 14,032 1,045 bash
10 no-host configure.cpython 1,640,856 0 0 0 25,272 0 14,098 1,063 dash
18 no-host configure.cpython 6,004,016 0 0 0 25,272 0 12,879 877 osh-cpython
26 no-host configure.cpython 1,799,835 0 0 0 25,280 0 12,831 1,087 osh-native
34 no-host configure.cpython 1,790,498 0 0 0 25,280 0 12,829 1,057 osh-native-souffle
4 no-host configure.ocaml 298,992 0 0 0 4,432 0 2,009 217 bash
12 no-host configure.ocaml 280,440 0 0 0 4,432 0 2,095 210 dash
20 no-host configure.ocaml 557,086 0 0 0 4,432 0 1,914 193 osh-cpython
28 no-host configure.ocaml 317,048 0 0 0 4,440 0 1,997 199 osh-native
36 no-host configure.ocaml 316,456 0 0 0 4,440 0 1,995 189 osh-native-souffle
5 no-host configure.tcc 5,209 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 51 1 dash
21 no-host configure.tcc 23,851 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,966 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,839 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,531,766 1 0 0 35,944 0 18,970 1,064 bash
11 no-host configure.util-linux 1,695,356 1 0 0 35,936 0 17,047 1,281 dash
19 no-host configure.util-linux 5,003,825 0 0 0 35,952 0 17,521 885 osh-cpython
27 no-host configure.util-linux 1,715,656 0 0 0 35,952 0 17,479 1,089 osh-native
35 no-host configure.util-linux 1,706,620 1 0 0 35,952 0 17,481 1,084 osh-native-souffle
6 no-host configure.yash 173,556 0 0 0 3,616 0 875 98 bash
14 no-host configure.yash 159,535 0 0 0 3,616 0 995 106 dash
22 no-host configure.yash 316,380 0 0 0 3,616 0 862 103 osh-cpython
30 no-host configure.yash 179,796 0 0 0 3,624 0 860 113 osh-native
38 no-host configure.yash 179,407 0 0 0 3,624 0 856 94 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,889 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 383 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 376 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-7d9044a4
dash dash-cea41b3e
osh-cpython osh-fec7cf09
osh-native osh-c7d1ba66
osh-native-souffle osh-d0095c0b
host label host id
no-host no-host-2411472