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 521 22 20 32.80 1.38
bin-true no-host 632 457 2,474 820 820 3.92 1.30
configure.cpython no-host 13,642 13,720 28,902 14,379 14,536 2.12 1.05
configure.ocaml no-host 3,640 3,579 4,581 3,697 3,703 1.26 1.02
configure.tcc no-host 46 41 218 49 48 4.78 1.08
configure.util-linux no-host 12,459 13,237 31,607 13,518 13,609 2.54 1.08
configure.yash no-host 1,679 1,632 2,399 1,703 1,697 1.43 1.01
hello-world no-host 1 1 60 3 3 47.13 2.24

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,416 1,155 24,689 3,507 3,331 10.22 1.45
bin-true no-host 100,933 49,381 828,565 136,237 135,282 8.21 1.35
configure.cpython no-host 1,627,918 1,636,764 5,948,521 1,791,967 1,790,521 3.65 1.10
configure.ocaml no-host 298,643 280,472 555,101 316,049 316,401 1.86 1.06
configure.tcc no-host 5,227 4,216 23,741 5,955 5,879 4.54 1.14
configure.util-linux no-host 1,529,340 1,697,887 4,958,799 1,720,099 1,708,802 3.24 1.12
configure.yash no-host 173,428 159,536 314,985 178,992 178,895 1.82 1.03
hello-world no-host 152 84 3,879 383 375 25.52 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.8 3.9 22.5 10.0 9.2 4.64 2.05
bin-true no-host 3.3 1.6 18.2 8.8 8.3 5.55 2.68
configure.cpython no-host 34.5 34.7 34.6 34.4 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.7 28.5 1.00 1.00
configure.tcc no-host 26.3 26.1 26.3 26.1 26.3 1.00 1.00
configure.util-linux no-host 39.9 39.7 39.9 39.5 39.6 1.00 0.99
configure.yash no-host 33.2 33.4 33.4 33.1 33.4 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,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 820 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,379 1 65 15.2 34.4 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,518 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.7 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,703 1 2 2.6 33.1 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 10.0 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 820 1 2 2.6 8.3 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,536 1 60 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,609 3 56 21.4 39.6 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,703 1 2 2.7 28.5 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 48 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,697 1 2 2.6 33.4 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 10 7 4.8 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 521 457 68 22.5 osh-cpython
31 no-host abuild-print-help 22 9 14 10.0 osh-native
39 no-host abuild-print-help 20 14 7 9.2 osh-native-souffle
1 no-host bin-true 632 320 350 3.3 bash
9 no-host bin-true 457 282 180 1.6 dash
17 no-host bin-true 2,474 915 1,824 18.2 osh-cpython
25 no-host bin-true 820 311 526 8.8 osh-native
33 no-host bin-true 820 297 540 8.3 osh-native-souffle
2 no-host configure.cpython 13,642 7,338 6,692 34.5 bash
10 no-host configure.cpython 13,720 7,519 6,571 34.7 dash
18 no-host configure.cpython 28,902 15,759 15,050 34.6 osh-cpython
26 no-host configure.cpython 14,379 7,124 7,558 34.4 osh-native
34 no-host configure.cpython 14,536 7,151 7,508 34.4 osh-native-souffle
4 no-host configure.ocaml 3,640 1,445 1,234 28.7 bash
12 no-host configure.ocaml 3,579 1,391 1,211 28.7 dash
20 no-host configure.ocaml 4,581 2,039 1,761 28.7 osh-cpython
28 no-host configure.ocaml 3,697 1,428 1,310 28.7 osh-native
36 no-host configure.ocaml 3,703 1,465 1,279 28.5 osh-native-souffle
5 no-host configure.tcc 46 25 21 26.3 bash
13 no-host configure.tcc 41 24 18 26.1 dash
21 no-host configure.tcc 218 151 71 26.3 osh-cpython
29 no-host configure.tcc 49 26 24 26.1 osh-native
37 no-host configure.tcc 48 25 24 26.3 osh-native-souffle
3 no-host configure.util-linux 12,459 6,311 6,620 39.9 bash
11 no-host configure.util-linux 13,237 6,226 7,509 39.7 dash
19 no-host configure.util-linux 31,607 19,720 12,938 39.9 osh-cpython
27 no-host configure.util-linux 13,518 6,108 7,654 39.5 osh-native
35 no-host configure.util-linux 13,609 6,118 7,583 39.6 osh-native-souffle
6 no-host configure.yash 1,679 920 768 33.2 bash
14 no-host configure.yash 1,632 902 732 33.4 dash
22 no-host configure.yash 2,399 1,392 1,050 33.4 osh-cpython
30 no-host configure.yash 1,703 899 806 33.1 osh-native
38 no-host configure.yash 1,697 910 791 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 60 41 19 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.8 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,416 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,155 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,689 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,507 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,331 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,933 0 0 0 8 0 1,977 63 bash
9 no-host bin-true 49,381 0 0 0 8 0 2,967 69 dash
17 no-host bin-true 828,565 0 0 0 8 0 1,977 272 osh-cpython
25 no-host bin-true 136,237 0 0 0 16 0 1,966 100 osh-native
33 no-host bin-true 135,282 0 0 0 16 0 1,966 150 osh-native-souffle
2 no-host configure.cpython 1,627,918 0 0 0 25,272 0 14,049 1,349 bash
10 no-host configure.cpython 1,636,764 0 0 0 25,272 0 14,084 1,213 dash
18 no-host configure.cpython 5,948,521 1 0 0 25,272 0 12,863 1,200 osh-cpython
26 no-host configure.cpython 1,791,967 0 0 0 25,280 0 12,857 1,156 osh-native
34 no-host configure.cpython 1,790,521 0 0 0 25,288 0 12,850 1,311 osh-native-souffle
4 no-host configure.ocaml 298,643 0 0 0 4,432 0 2,009 207 bash
12 no-host configure.ocaml 280,472 0 0 0 4,432 0 2,106 196 dash
20 no-host configure.ocaml 555,101 0 0 0 4,432 0 1,913 207 osh-cpython
28 no-host configure.ocaml 316,049 0 0 0 4,440 0 1,996 201 osh-native
36 no-host configure.ocaml 316,401 0 0 0 4,440 0 2,000 208 osh-native-souffle
5 no-host configure.tcc 5,227 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,741 0 0 0 88 0 53 15 osh-cpython
29 no-host configure.tcc 5,955 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,879 0 0 0 96 0 46 3 osh-native-souffle
3 no-host configure.util-linux 1,529,340 0 0 0 35,944 0 18,890 1,136 bash
11 no-host configure.util-linux 1,697,887 0 0 0 35,936 0 16,974 1,365 dash
19 no-host configure.util-linux 4,958,799 6 0 0 35,952 0 17,555 1,246 osh-cpython
27 no-host configure.util-linux 1,720,099 2 0 0 35,944 0 17,541 1,099 osh-native
35 no-host configure.util-linux 1,708,802 3 0 0 35,944 0 17,566 980 osh-native-souffle
6 no-host configure.yash 173,428 0 0 0 3,616 0 876 126 bash
14 no-host configure.yash 159,536 0 0 0 3,624 0 998 118 dash
22 no-host configure.yash 314,985 0 0 0 3,616 0 861 130 osh-cpython
30 no-host configure.yash 178,992 0 0 0 3,624 0 856 129 osh-native
38 no-host configure.yash 178,895 0 0 0 3,624 0 859 127 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 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 383 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 375 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-68d2366f
dash dash-cea41b3e
osh-cpython osh-c069ac8e
osh-native osh-ae788d78
osh-native-souffle osh-621dc84c
host label host id
no-host no-host-2411472