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 15 9 537 22 21 34.73 1.43
bin-true no-host 617 434 2,442 791 797 3.96 1.28
configure.cpython no-host 14,030 13,879 29,226 14,507 14,771 2.08 1.03
configure.ocaml no-host 3,659 3,599 4,626 3,717 3,722 1.26 1.02
configure.tcc no-host 46 41 222 48 48 4.86 1.06
configure.util-linux no-host 12,554 13,250 32,543 13,570 13,783 2.59 1.08
configure.yash no-host 1,723 1,631 2,419 1,718 1,715 1.40 1.00
hello-world no-host 1 1 59 3 3 48.63 2.37

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,392 1,148 24,663 3,414 3,324 10.31 1.43
bin-true no-host 102,937 49,381 841,204 134,261 133,270 8.17 1.30
configure.cpython no-host 1,630,814 1,639,691 5,983,743 1,802,266 1,792,556 3.67 1.11
configure.ocaml no-host 298,509 280,588 558,019 316,553 316,782 1.87 1.06
configure.tcc no-host 5,232 4,207 23,938 5,989 5,859 4.58 1.14
configure.util-linux no-host 1,533,639 1,697,072 4,968,732 1,730,488 1,714,269 3.24 1.13
configure.yash no-host 173,719 159,548 316,016 179,895 178,982 1.82 1.04
hello-world no-host 153 88 3,879 385 378 25.35 2.52

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.8 22.7 9.8 9.0 4.80 2.08
bin-true no-host 3.3 1.6 18.2 8.9 8.3 5.55 2.72
configure.cpython no-host 34.4 34.5 34.6 34.4 34.5 1.01 1.00
configure.ocaml no-host 28.6 28.7 28.4 28.7 28.7 0.99 1.00
configure.tcc no-host 26.0 26.1 26.1 26.0 26.1 1.00 1.00
configure.util-linux no-host 39.5 39.9 39.7 39.5 39.7 1.01 1.00
configure.yash no-host 33.2 33.5 33.4 33.4 33.1 1.00 1.00
hello-world no-host 3.1 1.4 18.1 6.8 6.4 5.74 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,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 791 1 2 2.6 8.9 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,507 1 66 15.2 34.4 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 13,570 3 61 21.4 39.5 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,717 1 2 2.7 28.7 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.0 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,718 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 22 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.4 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.3 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 14,771 1 66 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 13,783 3 61 21.4 39.7 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,722 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 48 0 0 1.3 26.1 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,715 1 2 2.6 33.1 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.0 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 15 9 7 4.7 bash
15 no-host abuild-print-help 9 4 6 3.8 dash
23 no-host abuild-print-help 537 483 57 22.7 osh-cpython
31 no-host abuild-print-help 22 13 10 9.8 osh-native
39 no-host abuild-print-help 21 10 11 9.0 osh-native-souffle
1 no-host bin-true 617 312 345 3.3 bash
9 no-host bin-true 434 267 172 1.6 dash
17 no-host bin-true 2,442 899 1,808 18.2 osh-cpython
25 no-host bin-true 791 308 500 8.9 osh-native
33 no-host bin-true 797 306 510 8.3 osh-native-souffle
2 no-host configure.cpython 14,030 7,567 6,842 34.4 bash
10 no-host configure.cpython 13,879 7,611 6,655 34.5 dash
18 no-host configure.cpython 29,226 16,199 14,958 34.6 osh-cpython
26 no-host configure.cpython 14,507 7,264 7,530 34.4 osh-native
34 no-host configure.cpython 14,771 7,242 7,643 34.5 osh-native-souffle
4 no-host configure.ocaml 3,659 1,448 1,249 28.6 bash
12 no-host configure.ocaml 3,599 1,453 1,168 28.7 dash
20 no-host configure.ocaml 4,626 2,097 1,746 28.4 osh-cpython
28 no-host configure.ocaml 3,717 1,471 1,285 28.7 osh-native
36 no-host configure.ocaml 3,722 1,468 1,292 28.7 osh-native-souffle
5 no-host configure.tcc 46 23 23 26.0 bash
13 no-host configure.tcc 41 21 20 26.1 dash
21 no-host configure.tcc 222 156 69 26.1 osh-cpython
29 no-host configure.tcc 48 26 23 26.0 osh-native
37 no-host configure.tcc 48 22 26 26.1 osh-native-souffle
3 no-host configure.util-linux 12,554 6,583 6,413 39.5 bash
11 no-host configure.util-linux 13,250 6,363 7,355 39.9 dash
19 no-host configure.util-linux 32,543 20,542 13,061 39.7 osh-cpython
27 no-host configure.util-linux 13,570 6,277 7,520 39.5 osh-native
35 no-host configure.util-linux 13,783 6,308 7,541 39.7 osh-native-souffle
6 no-host configure.yash 1,723 937 791 33.2 bash
14 no-host configure.yash 1,631 909 723 33.5 dash
22 no-host configure.yash 2,419 1,418 1,044 33.4 osh-cpython
30 no-host configure.yash 1,718 956 763 33.4 osh-native
38 no-host configure.yash 1,715 930 787 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.4 dash
16 no-host hello-world 59 37 22 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 0 3 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,392 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,148 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,663 0 0 0 8 0 45 4 osh-cpython
31 no-host abuild-print-help 3,414 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,324 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 102,937 0 0 0 8 0 1,991 53 bash
9 no-host bin-true 49,381 0 0 0 8 0 2,976 51 dash
17 no-host bin-true 841,204 0 0 0 8 0 1,992 151 osh-cpython
25 no-host bin-true 134,261 0 0 0 16 0 1,984 78 osh-native
33 no-host bin-true 133,270 0 0 0 16 0 1,979 131 osh-native-souffle
2 no-host configure.cpython 1,630,814 0 0 0 25,272 0 14,027 1,048 bash
10 no-host configure.cpython 1,639,691 0 0 0 25,272 0 14,055 1,079 dash
18 no-host configure.cpython 5,983,743 0 0 0 25,272 0 12,893 851 osh-cpython
26 no-host configure.cpython 1,802,266 0 0 0 25,280 0 12,838 1,069 osh-native
34 no-host configure.cpython 1,792,556 0 0 0 25,280 0 12,849 1,037 osh-native-souffle
4 no-host configure.ocaml 298,509 0 0 0 4,432 0 2,020 192 bash
12 no-host configure.ocaml 280,588 0 0 0 4,432 0 2,097 195 dash
20 no-host configure.ocaml 558,019 0 0 0 4,432 0 1,916 185 osh-cpython
28 no-host configure.ocaml 316,553 0 0 0 4,440 0 2,001 207 osh-native
36 no-host configure.ocaml 316,782 0 0 0 4,440 0 1,992 211 osh-native-souffle
5 no-host configure.tcc 5,232 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,207 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,938 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,989 0 0 0 96 0 46 2 osh-native
37 no-host configure.tcc 5,859 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,533,639 0 0 0 35,944 0 18,903 1,121 bash
11 no-host configure.util-linux 1,697,072 0 0 0 35,936 0 17,053 1,268 dash
19 no-host configure.util-linux 4,968,732 0 0 0 35,944 0 17,524 935 osh-cpython
27 no-host configure.util-linux 1,730,488 3 0 0 35,944 0 17,504 1,123 osh-native
35 no-host configure.util-linux 1,714,269 1 0 0 35,944 0 17,396 1,085 osh-native-souffle
6 no-host configure.yash 173,719 0 0 0 3,616 0 879 99 bash
14 no-host configure.yash 159,548 0 0 0 3,624 0 997 88 dash
22 no-host configure.yash 316,016 0 0 0 3,616 0 862 98 osh-cpython
30 no-host configure.yash 179,895 0 0 0 3,624 0 853 106 osh-native
38 no-host configure.yash 178,982 0 0 0 3,624 0 854 109 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 88 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,879 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 385 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-e4e4f55c
dash dash-cea41b3e
osh-cpython osh-1791a042
osh-native osh-d65ac69e
osh-native-souffle osh-b9968cdc
host label host id
no-host no-host-31404de8