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 542 23 21 33.99 1.47
bin-true no-host 603 440 2,470 806 803 4.09 1.34
configure.cpython no-host 13,971 14,298 30,317 15,073 15,195 2.17 1.08
configure.ocaml no-host 3,689 3,686 4,799 3,824 3,822 1.30 1.04
configure.tcc no-host 46 42 226 50 49 4.95 1.10
configure.util-linux no-host 12,817 13,710 33,167 14,023 14,111 2.59 1.09
configure.yash no-host 1,727 1,713 2,474 1,799 1,760 1.43 1.04
hello-world no-host 1 1 69 3 3 56.27 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,410 1,153 24,929 3,480 3,356 10.34 1.44
bin-true no-host 99,916 49,331 832,227 137,294 134,287 8.33 1.37
configure.cpython no-host 1,622,337 1,639,611 5,975,559 1,817,668 1,800,991 3.68 1.12
configure.ocaml no-host 298,917 281,019 556,375 317,398 314,975 1.86 1.06
configure.tcc no-host 5,216 4,195 23,789 5,940 5,871 4.56 1.14
configure.util-linux no-host 1,534,512 1,695,386 4,985,502 1,720,794 1,706,939 3.25 1.12
configure.yash no-host 173,676 159,622 316,064 179,839 178,782 1.82 1.04
hello-world no-host 149 87 3,886 381 375 26.08 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.8 3.9 22.8 9.8 9.0 4.70 2.03
bin-true no-host 3.1 1.6 18.1 8.7 8.3 5.74 2.75
configure.cpython no-host 34.3 34.4 34.5 34.5 34.4 1.01 1.01
configure.ocaml no-host 28.6 28.7 28.8 28.7 28.8 1.01 1.00
configure.tcc no-host 26.2 26.1 26.1 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.9 39.6 39.5 39.7 39.6 0.99 1.00
configure.yash no-host 33.4 33.5 33.3 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 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,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 806 1 2 2.6 8.7 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 15,073 1 68 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 14,023 3 62 21.4 39.7 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,824 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 50 0 0 1.3 26.1 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,799 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 23 1 2 2.8 9.8 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 803 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 15,195 1 66 15.2 34.4 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,111 3 62 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,822 1 2 2.7 28.8 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.1 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,760 1 2 2.6 33.4 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 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 7 10 4.8 bash
15 no-host abuild-print-help 9 5 5 3.9 dash
23 no-host abuild-print-help 542 487 58 22.8 osh-cpython
31 no-host abuild-print-help 23 11 13 9.8 osh-native
39 no-host abuild-print-help 21 11 11 9.0 osh-native-souffle
1 no-host bin-true 603 308 332 3.1 bash
9 no-host bin-true 440 264 178 1.6 dash
17 no-host bin-true 2,470 920 1,826 18.1 osh-cpython
25 no-host bin-true 806 316 508 8.7 osh-native
33 no-host bin-true 803 303 516 8.3 osh-native-souffle
2 no-host configure.cpython 13,971 7,601 6,750 34.3 bash
10 no-host configure.cpython 14,298 7,707 6,991 34.4 dash
18 no-host configure.cpython 30,317 16,575 15,771 34.5 osh-cpython
26 no-host configure.cpython 15,073 7,484 7,893 34.5 osh-native
34 no-host configure.cpython 15,195 7,557 7,748 34.4 osh-native-souffle
4 no-host configure.ocaml 3,689 1,452 1,276 28.6 bash
12 no-host configure.ocaml 3,686 1,505 1,204 28.7 dash
20 no-host configure.ocaml 4,799 2,150 1,877 28.8 osh-cpython
28 no-host configure.ocaml 3,824 1,496 1,370 28.7 osh-native
36 no-host configure.ocaml 3,822 1,497 1,361 28.8 osh-native-souffle
5 no-host configure.tcc 46 23 23 26.2 bash
13 no-host configure.tcc 42 22 20 26.1 dash
21 no-host configure.tcc 226 149 81 26.1 osh-cpython
29 no-host configure.tcc 50 26 24 26.1 osh-native
37 no-host configure.tcc 49 26 23 26.1 osh-native-souffle
3 no-host configure.util-linux 12,817 6,716 6,568 39.9 bash
11 no-host configure.util-linux 13,710 6,563 7,633 39.6 dash
19 no-host configure.util-linux 33,167 20,716 13,558 39.5 osh-cpython
27 no-host configure.util-linux 14,023 6,404 7,853 39.7 osh-native
35 no-host configure.util-linux 14,111 6,447 7,745 39.6 osh-native-souffle
6 no-host configure.yash 1,727 961 774 33.4 bash
14 no-host configure.yash 1,713 954 759 33.5 dash
22 no-host configure.yash 2,474 1,470 1,047 33.3 osh-cpython
30 no-host configure.yash 1,799 964 838 33.4 osh-native
38 no-host configure.yash 1,760 979 782 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.6 dash
16 no-host hello-world 69 48 21 18.1 osh-cpython
24 no-host hello-world 3 3 0 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,410 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,153 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,929 0 0 0 8 0 45 4 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,356 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 99,916 0 0 0 8 0 1,983 58 bash
9 no-host bin-true 49,331 0 0 0 8 0 2,937 64 dash
17 no-host bin-true 832,227 0 0 0 8 0 1,980 127 osh-cpython
25 no-host bin-true 137,294 0 0 0 16 0 1,979 66 osh-native
33 no-host bin-true 134,287 0 0 0 16 0 1,974 73 osh-native-souffle
2 no-host configure.cpython 1,622,337 0 0 0 25,272 0 14,027 1,061 bash
10 no-host configure.cpython 1,639,611 0 0 0 25,272 0 14,060 1,120 dash
18 no-host configure.cpython 5,975,559 0 0 0 25,272 0 12,855 888 osh-cpython
26 no-host configure.cpython 1,817,668 0 0 0 25,280 0 12,812 1,092 osh-native
34 no-host configure.cpython 1,800,991 0 0 0 25,280 0 12,827 1,056 osh-native-souffle
4 no-host configure.ocaml 298,917 0 0 0 4,432 0 2,006 213 bash
12 no-host configure.ocaml 281,019 0 0 0 4,432 0 2,092 195 dash
20 no-host configure.ocaml 556,375 0 0 0 4,432 0 1,911 175 osh-cpython
28 no-host configure.ocaml 317,398 0 0 0 4,440 0 1,999 232 osh-native
36 no-host configure.ocaml 314,975 0 0 0 4,440 0 1,994 216 osh-native-souffle
5 no-host configure.tcc 5,216 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,195 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,789 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,940 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,871 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,534,512 1 0 0 35,944 0 18,933 1,096 bash
11 no-host configure.util-linux 1,695,386 0 0 0 35,936 0 17,047 1,218 dash
19 no-host configure.util-linux 4,985,502 3 0 0 35,960 0 17,521 827 osh-cpython
27 no-host configure.util-linux 1,720,794 0 0 0 35,952 0 17,500 1,234 osh-native
35 no-host configure.util-linux 1,706,939 1 0 0 35,952 0 17,429 1,095 osh-native-souffle
6 no-host configure.yash 173,676 0 0 0 3,616 0 876 110 bash
14 no-host configure.yash 159,622 0 0 0 3,616 0 993 107 dash
22 no-host configure.yash 316,064 0 0 0 3,616 0 854 110 osh-cpython
30 no-host configure.yash 179,839 0 0 0 3,624 0 848 100 osh-native
38 no-host configure.yash 178,782 0 0 0 3,624 0 855 107 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,886 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 381 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-54820330
dash dash-cea41b3e
osh-cpython osh-508121de
osh-native osh-394a9556
osh-native-souffle osh-70646e26
host label host id
no-host no-host-2411472