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 522 22 20 32.94 1.40
bin-true no-host 633 458 2,447 808 805 3.87 1.28
configure.cpython no-host 13,669 13,743 28,975 14,453 14,559 2.12 1.06
configure.ocaml no-host 3,648 3,586 4,593 3,697 3,702 1.26 1.01
configure.tcc no-host 46 41 219 49 49 4.75 1.06
configure.util-linux no-host 12,494 13,266 31,684 13,509 13,639 2.54 1.08
configure.yash no-host 1,685 1,629 2,399 1,711 1,696 1.42 1.02
hello-world no-host 1 1 59 3 3 48.19 2.38

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,409 1,151 24,695 3,459 3,358 10.25 1.44
bin-true no-host 100,876 49,393 831,538 133,281 133,287 8.24 1.32
configure.cpython no-host 1,624,007 1,642,107 5,956,304 1,809,127 1,798,059 3.67 1.11
configure.ocaml no-host 298,997 280,578 555,500 316,857 315,190 1.86 1.06
configure.tcc no-host 5,218 4,196 23,725 5,977 5,903 4.55 1.15
configure.util-linux no-host 1,537,152 1,693,030 4,959,371 1,723,108 1,708,998 3.23 1.12
configure.yash no-host 173,419 159,480 314,439 179,396 178,792 1.81 1.03
hello-world no-host 153 86 3,875 387 378 25.33 2.53

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.2 4.80 2.08
bin-true no-host 3.1 1.7 18.1 8.7 8.1 5.77 2.75
configure.cpython no-host 34.3 34.6 34.5 34.6 34.4 1.01 1.01
configure.ocaml no-host 28.7 28.7 28.7 28.5 28.8 1.00 1.00
configure.tcc no-host 26.3 26.0 26.0 26.1 26.3 0.99 1.00
configure.util-linux no-host 39.6 39.6 39.9 39.5 39.5 1.01 1.00
configure.yash no-host 33.3 33.5 33.2 33.3 33.1 1.00 1.00
hello-world no-host 3.3 1.4 18.1 7.1 6.4 5.51 2.16

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,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 808 1 2 2.6 8.7 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,453 1 64 15.2 34.6 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,509 3 58 21.4 39.5 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,697 1 2 2.7 28.5 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.1 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,711 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.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 805 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,559 1 61 15.2 34.4 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,639 2 57 21.4 39.5 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,702 1 2 2.7 28.8 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,696 1 2 2.6 33.1 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.2 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 8 9 4.7 bash
15 no-host abuild-print-help 9 3 7 3.8 dash
23 no-host abuild-print-help 522 465 60 22.7 osh-cpython
31 no-host abuild-print-help 22 14 9 9.8 osh-native
39 no-host abuild-print-help 20 12 9 9.2 osh-native-souffle
1 no-host bin-true 633 318 354 3.1 bash
9 no-host bin-true 458 280 184 1.7 dash
17 no-host bin-true 2,447 930 1,775 18.1 osh-cpython
25 no-host bin-true 808 289 535 8.7 osh-native
33 no-host bin-true 805 295 525 8.1 osh-native-souffle
2 no-host configure.cpython 13,669 7,349 6,702 34.3 bash
10 no-host configure.cpython 13,743 7,316 6,802 34.6 dash
18 no-host configure.cpython 28,975 15,793 15,093 34.5 osh-cpython
26 no-host configure.cpython 14,453 7,217 7,544 34.6 osh-native
34 no-host configure.cpython 14,559 7,140 7,600 34.4 osh-native-souffle
4 no-host configure.ocaml 3,648 1,477 1,208 28.7 bash
12 no-host configure.ocaml 3,586 1,417 1,193 28.7 dash
20 no-host configure.ocaml 4,593 2,086 1,725 28.7 osh-cpython
28 no-host configure.ocaml 3,697 1,446 1,293 28.5 osh-native
36 no-host configure.ocaml 3,702 1,477 1,265 28.8 osh-native-souffle
5 no-host configure.tcc 46 26 20 26.3 bash
13 no-host configure.tcc 41 20 22 26.0 dash
21 no-host configure.tcc 219 164 58 26.0 osh-cpython
29 no-host configure.tcc 49 26 24 26.1 osh-native
37 no-host configure.tcc 49 25 24 26.3 osh-native-souffle
3 no-host configure.util-linux 12,494 6,389 6,575 39.6 bash
11 no-host configure.util-linux 13,266 6,242 7,517 39.6 dash
19 no-host configure.util-linux 31,684 19,851 12,875 39.9 osh-cpython
27 no-host configure.util-linux 13,509 6,127 7,624 39.5 osh-native
35 no-host configure.util-linux 13,639 6,123 7,600 39.5 osh-native-souffle
6 no-host configure.yash 1,685 917 776 33.3 bash
14 no-host configure.yash 1,629 920 711 33.5 dash
22 no-host configure.yash 2,399 1,403 1,039 33.2 osh-cpython
30 no-host configure.yash 1,711 902 812 33.3 osh-native
38 no-host configure.yash 1,696 907 793 33.1 osh-native-souffle
0 no-host hello-world 1 1 0 3.3 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 59 43 17 18.1 osh-cpython
24 no-host hello-world 3 0 3 7.1 osh-native
32 no-host hello-world 3 1 2 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,409 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,151 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,695 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,459 0 0 0 16 0 39 5 osh-native
39 no-host abuild-print-help 3,358 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,876 0 0 0 8 0 1,987 101 bash
9 no-host bin-true 49,393 0 0 0 8 0 2,967 68 dash
17 no-host bin-true 831,538 0 0 0 8 0 1,959 148 osh-cpython
25 no-host bin-true 133,281 0 0 0 16 0 1,976 94 osh-native
33 no-host bin-true 133,287 0 0 0 16 0 1,953 116 osh-native-souffle
2 no-host configure.cpython 1,624,007 1 0 0 25,272 0 14,021 1,148 bash
10 no-host configure.cpython 1,642,107 0 0 0 25,272 0 14,074 1,264 dash
18 no-host configure.cpython 5,956,304 0 0 0 25,272 0 12,869 1,234 osh-cpython
26 no-host configure.cpython 1,809,127 0 0 0 25,280 0 12,855 1,193 osh-native
34 no-host configure.cpython 1,798,059 0 0 0 25,280 0 12,865 1,274 osh-native-souffle
4 no-host configure.ocaml 298,997 0 0 0 4,432 0 2,012 220 bash
12 no-host configure.ocaml 280,578 0 0 0 4,432 0 2,104 225 dash
20 no-host configure.ocaml 555,500 0 0 0 4,432 0 1,917 193 osh-cpython
28 no-host configure.ocaml 316,857 0 0 0 4,440 0 1,996 202 osh-native
36 no-host configure.ocaml 315,190 0 0 0 4,440 0 2,000 222 osh-native-souffle
5 no-host configure.tcc 5,218 0 0 0 80 0 48 3 bash
13 no-host configure.tcc 4,196 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,725 0 0 0 88 0 53 4 osh-cpython
29 no-host configure.tcc 5,977 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,903 0 0 0 96 0 46 12 osh-native-souffle
3 no-host configure.util-linux 1,537,152 3 0 0 35,944 0 18,927 1,383 bash
11 no-host configure.util-linux 1,693,030 1 0 0 35,936 0 17,044 1,426 dash
19 no-host configure.util-linux 4,959,371 6 0 0 35,944 0 17,531 1,166 osh-cpython
27 no-host configure.util-linux 1,723,108 2 0 0 35,944 0 17,544 1,121 osh-native
35 no-host configure.util-linux 1,708,998 1 0 0 35,952 0 17,505 1,142 osh-native-souffle
6 no-host configure.yash 173,419 0 0 0 3,616 0 876 117 bash
14 no-host configure.yash 159,480 0 0 0 3,616 0 999 123 dash
22 no-host configure.yash 314,439 0 0 0 3,616 0 863 167 osh-cpython
30 no-host configure.yash 179,396 0 0 0 3,624 0 856 141 osh-native
38 no-host configure.yash 178,792 0 0 0 3,624 0 859 138 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,875 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 1 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-837a7fda
dash dash-cea41b3e
osh-cpython osh-0c88f1e2
osh-native osh-3f92539e
osh-native-souffle osh-c11d1ee4
host label host id
no-host no-host-2411472