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 561 23 21 35.18 1.42
bin-true no-host 617 438 2,463 813 825 3.99 1.32
configure.cpython no-host 13,879 13,947 29,654 15,411 15,632 2.14 1.11
configure.ocaml no-host 3,673 3,622 4,824 3,866 3,886 1.31 1.05
configure.tcc no-host 46 41 230 50 50 4.99 1.09
configure.util-linux no-host 12,604 13,342 32,644 14,372 14,347 2.59 1.14
configure.yash no-host 1,699 1,645 2,547 1,814 1,811 1.50 1.07
hello-world no-host 1 1 61 3 3 49.31 2.45

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,160 24,662 3,480 3,355 10.30 1.45
bin-true no-host 99,944 49,390 835,708 137,273 135,332 8.36 1.37
configure.cpython no-host 1,616,910 1,644,593 5,993,302 1,792,441 1,790,543 3.71 1.11
configure.ocaml no-host 298,959 281,298 557,687 317,005 315,796 1.87 1.06
configure.tcc no-host 5,213 4,208 23,936 5,943 5,909 4.59 1.14
configure.util-linux no-host 1,539,251 1,693,646 4,984,556 1,719,330 1,713,858 3.24 1.12
configure.yash no-host 173,683 159,549 315,946 179,189 179,275 1.82 1.03
hello-world no-host 151 85 3,879 387 381 25.69 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.7 4.1 22.8 9.8 9.2 4.83 2.08
bin-true no-host 3.3 1.6 18.2 8.7 8.5 5.55 2.64
configure.cpython no-host 34.7 34.5 34.4 34.5 34.5 0.99 1.00
configure.ocaml no-host 28.8 28.6 28.6 28.8 28.7 0.99 1.00
configure.tcc no-host 26.3 26.0 26.4 26.4 26.0 1.01 1.01
configure.util-linux no-host 39.6 39.5 39.5 39.6 39.6 1.00 1.00
configure.yash no-host 33.1 33.2 33.2 33.4 33.4 1.00 1.01
hello-world no-host 3.1 1.4 18.1 7.1 6.6 5.74 2.25

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 7.1 3,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 813 1 2 2.6 8.7 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 15,411 1 70 15.2 34.5 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 14,372 3 66 21.4 39.6 2,707,123 126,355 66,587 113,463 1,294,568 1,299,092 32,539 41 133,174 1
configure.ocaml no-host 3,866 1 2 2.7 28.8 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.4 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,814 1 2 2.6 33.4 140,018 8,081 6,715 6,526 68,348 65,144 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.8 116,369 64,439 42,640 4,562 54,472 57,335 277 3 85,280 1
hello-world no-host 3 0 0 0.3 6.6 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 825 1 2 2.6 8.5 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 15,632 1 69 15.2 34.5 1,782,989 46,088 25,353 91,623 885,112 806,254 25,789 62 50,000 0
configure.util-linux no-host 14,347 3 64 21.4 39.6 2,707,123 126,348 66,580 113,465 1,294,568 1,299,090 32,539 41 133,160 1
configure.ocaml no-host 3,886 1 2 2.7 28.7 149,874 12,471 6,514 7,821 70,840 71,213 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.0 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,811 1 2 2.6 33.4 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,368 64,434 42,635 4,563 54,472 57,333 277 3 85,270 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 9 4.7 bash
15 no-host abuild-print-help 9 4 5 4.1 dash
23 no-host abuild-print-help 561 500 64 22.8 osh-cpython
31 no-host abuild-print-help 23 11 13 9.8 osh-native
39 no-host abuild-print-help 21 12 9 9.2 osh-native-souffle
1 no-host bin-true 617 304 350 3.3 bash
9 no-host bin-true 438 273 169 1.6 dash
17 no-host bin-true 2,463 896 1,838 18.2 osh-cpython
25 no-host bin-true 813 304 525 8.7 osh-native
33 no-host bin-true 825 309 532 8.5 osh-native-souffle
2 no-host configure.cpython 13,879 7,567 6,682 34.7 bash
10 no-host configure.cpython 13,947 7,593 6,742 34.5 dash
18 no-host configure.cpython 29,654 16,288 15,335 34.4 osh-cpython
26 no-host configure.cpython 15,411 7,783 7,924 34.5 osh-native
34 no-host configure.cpython 15,632 7,753 7,917 34.5 osh-native-souffle
4 no-host configure.ocaml 3,673 1,501 1,210 28.8 bash
12 no-host configure.ocaml 3,622 1,452 1,193 28.6 dash
20 no-host configure.ocaml 4,824 2,178 1,878 28.6 osh-cpython
28 no-host configure.ocaml 3,866 1,544 1,364 28.8 osh-native
36 no-host configure.ocaml 3,886 1,505 1,420 28.7 osh-native-souffle
5 no-host configure.tcc 46 25 22 26.3 bash
13 no-host configure.tcc 41 26 15 26.0 dash
21 no-host configure.tcc 230 163 72 26.4 osh-cpython
29 no-host configure.tcc 50 28 23 26.4 osh-native
37 no-host configure.tcc 50 26 25 26.0 osh-native-souffle
3 no-host configure.util-linux 12,604 6,555 6,503 39.6 bash
11 no-host configure.util-linux 13,342 6,418 7,406 39.5 dash
19 no-host configure.util-linux 32,644 20,556 13,154 39.5 osh-cpython
27 no-host configure.util-linux 14,372 6,652 7,961 39.6 osh-native
35 no-host configure.util-linux 14,347 6,492 7,929 39.6 osh-native-souffle
6 no-host configure.yash 1,699 940 767 33.1 bash
14 no-host configure.yash 1,645 918 728 33.2 dash
22 no-host configure.yash 2,547 1,523 1,068 33.2 osh-cpython
30 no-host configure.yash 1,814 968 848 33.4 osh-native
38 no-host configure.yash 1,811 976 837 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 61 43 18 18.1 osh-cpython
24 no-host hello-world 3 2 1 7.1 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,395 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,662 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,480 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,355 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 99,944 0 0 0 8 0 1,992 73 bash
9 no-host bin-true 49,390 0 0 0 8 0 2,972 53 dash
17 no-host bin-true 835,708 0 0 0 8 0 1,994 130 osh-cpython
25 no-host bin-true 137,273 0 0 0 16 0 1,979 75 osh-native
33 no-host bin-true 135,332 0 0 0 16 0 1,979 106 osh-native-souffle
2 no-host configure.cpython 1,616,910 0 0 0 25,272 0 14,031 1,101 bash
10 no-host configure.cpython 1,644,593 0 0 0 25,272 0 14,083 991 dash
18 no-host configure.cpython 5,993,302 0 0 0 25,272 0 12,876 880 osh-cpython
26 no-host configure.cpython 1,792,441 0 0 0 25,280 0 12,832 1,032 osh-native
34 no-host configure.cpython 1,790,543 0 0 0 25,280 0 12,834 981 osh-native-souffle
4 no-host configure.ocaml 298,959 0 0 0 4,432 0 2,008 198 bash
12 no-host configure.ocaml 281,298 0 0 0 4,432 0 2,077 205 dash
20 no-host configure.ocaml 557,687 0 0 0 4,432 0 1,912 169 osh-cpython
28 no-host configure.ocaml 317,005 0 0 0 4,440 0 1,997 188 osh-native
36 no-host configure.ocaml 315,796 0 0 0 4,440 0 1,995 194 osh-native-souffle
5 no-host configure.tcc 5,213 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,936 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,943 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,909 0 0 0 96 0 47 5 osh-native-souffle
3 no-host configure.util-linux 1,539,251 0 0 0 35,944 0 18,999 1,126 bash
11 no-host configure.util-linux 1,693,646 0 0 0 35,936 0 17,086 1,222 dash
19 no-host configure.util-linux 4,984,556 0 0 0 35,960 0 17,503 802 osh-cpython
27 no-host configure.util-linux 1,719,330 3 0 0 35,944 0 17,497 1,058 osh-native
35 no-host configure.util-linux 1,713,858 1 0 0 35,944 0 17,484 1,194 osh-native-souffle
6 no-host configure.yash 173,683 0 0 0 3,616 0 877 107 bash
14 no-host configure.yash 159,549 0 0 0 3,624 0 992 105 dash
22 no-host configure.yash 315,946 0 0 0 3,616 0 863 111 osh-cpython
30 no-host configure.yash 179,189 0 0 0 3,624 0 858 103 osh-native
38 no-host configure.yash 179,275 0 0 0 3,624 0 855 126 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,879 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 0 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-ef11c789
dash dash-cea41b3e
osh-cpython osh-d440ee93
osh-native osh-3a220bd7
osh-native-souffle osh-295019f5
host label host id
no-host no-host-31404de8