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 537 22 20 34.24 1.42
bin-true no-host 616 434 2,438 801 793 3.96 1.30
configure.cpython no-host 13,925 13,938 29,574 14,806 14,856 2.12 1.06
configure.ocaml no-host 3,674 3,648 4,681 3,762 3,742 1.27 1.02
configure.tcc no-host 46 41 225 49 48 4.94 1.08
configure.util-linux no-host 12,576 13,388 32,544 13,711 13,864 2.59 1.09
configure.yash no-host 1,702 1,647 2,447 1,733 1,727 1.44 1.02
hello-world no-host 1 1 59 3 3 48.47 2.31

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,425 1,156 24,738 3,459 3,321 10.20 1.43
bin-true no-host 100,939 49,399 839,141 136,265 134,296 8.31 1.35
configure.cpython no-host 1,616,972 1,644,176 5,993,998 1,811,890 1,797,172 3.71 1.12
configure.ocaml no-host 298,486 280,990 557,294 316,973 316,523 1.87 1.06
configure.tcc no-host 5,246 4,201 23,916 5,945 5,917 4.56 1.13
configure.util-linux no-host 1,534,575 1,697,229 4,976,786 1,718,209 1,715,238 3.24 1.12
configure.yash no-host 173,569 159,491 315,831 179,167 178,883 1.82 1.03
hello-world no-host 154 87 3,872 385 378 25.14 2.50

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.2 4.70 2.03
bin-true no-host 3.1 1.6 18.2 8.8 8.3 5.78 2.79
configure.cpython no-host 34.5 34.5 34.5 34.6 34.6 1.00 1.00
configure.ocaml no-host 28.7 28.8 28.8 28.7 28.7 1.00 1.00
configure.tcc no-host 26.2 26.2 26.3 26.2 26.2 1.01 1.00
configure.util-linux no-host 39.5 39.7 39.6 39.9 39.6 1.00 1.01
configure.yash no-host 33.4 33.3 33.4 33.1 33.5 1.00 0.99
hello-world no-host 3.1 1.6 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 801 1 2 2.6 8.8 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,806 2 67 15.2 34.6 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,711 3 62 21.4 39.9 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,762 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 49 0 0 1.3 26.2 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,733 1 2 2.6 33.1 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.6 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 793 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,856 1 63 15.2 34.6 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,864 3 60 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,742 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.2 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,727 1 2 2.6 33.5 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 20 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 8 4.8 bash
15 no-host abuild-print-help 9 3 6 3.9 dash
23 no-host abuild-print-help 537 472 68 22.8 osh-cpython
31 no-host abuild-print-help 22 9 14 9.8 osh-native
39 no-host abuild-print-help 20 11 10 9.2 osh-native-souffle
1 no-host bin-true 616 306 347 3.1 bash
9 no-host bin-true 434 271 167 1.6 dash
17 no-host bin-true 2,438 841 1,861 18.2 osh-cpython
25 no-host bin-true 801 309 507 8.8 osh-native
33 no-host bin-true 793 316 493 8.3 osh-native-souffle
2 no-host configure.cpython 13,925 7,558 6,737 34.5 bash
10 no-host configure.cpython 13,938 7,635 6,678 34.5 dash
18 no-host configure.cpython 29,574 16,311 15,235 34.5 osh-cpython
26 no-host configure.cpython 14,806 7,399 7,700 34.6 osh-native
34 no-host configure.cpython 14,856 7,497 7,454 34.6 osh-native-souffle
4 no-host configure.ocaml 3,674 1,475 1,236 28.7 bash
12 no-host configure.ocaml 3,648 1,483 1,188 28.8 dash
20 no-host configure.ocaml 4,681 2,127 1,773 28.8 osh-cpython
28 no-host configure.ocaml 3,762 1,472 1,331 28.7 osh-native
36 no-host configure.ocaml 3,742 1,468 1,312 28.7 osh-native-souffle
5 no-host configure.tcc 46 25 21 26.2 bash
13 no-host configure.tcc 41 23 18 26.2 dash
21 no-host configure.tcc 225 164 65 26.3 osh-cpython
29 no-host configure.tcc 49 26 24 26.2 osh-native
37 no-host configure.tcc 48 25 24 26.2 osh-native-souffle
3 no-host configure.util-linux 12,576 6,571 6,467 39.5 bash
11 no-host configure.util-linux 13,388 6,479 7,373 39.7 dash
19 no-host configure.util-linux 32,544 20,445 13,165 39.6 osh-cpython
27 no-host configure.util-linux 13,711 6,393 7,558 39.9 osh-native
35 no-host configure.util-linux 13,864 6,445 7,491 39.6 osh-native-souffle
6 no-host configure.yash 1,702 943 765 33.4 bash
14 no-host configure.yash 1,647 942 705 33.3 dash
22 no-host configure.yash 2,447 1,446 1,043 33.4 osh-cpython
30 no-host configure.yash 1,733 940 796 33.1 osh-native
38 no-host configure.yash 1,727 942 787 33.5 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 59 42 18 18.1 osh-cpython
24 no-host hello-world 3 1 1 7.1 osh-native
32 no-host hello-world 3 1 2 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,425 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,738 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,459 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,321 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 100,939 0 0 0 8 0 1,973 81 bash
9 no-host bin-true 49,399 0 0 0 8 0 2,978 57 dash
17 no-host bin-true 839,141 0 0 0 8 0 1,993 157 osh-cpython
25 no-host bin-true 136,265 0 0 0 16 0 1,966 96 osh-native
33 no-host bin-true 134,296 0 0 0 16 0 1,979 85 osh-native-souffle
2 no-host configure.cpython 1,616,972 0 0 0 25,272 0 14,033 1,007 bash
10 no-host configure.cpython 1,644,176 0 0 0 25,272 0 14,063 1,070 dash
18 no-host configure.cpython 5,993,998 0 0 0 25,272 0 12,881 871 osh-cpython
26 no-host configure.cpython 1,811,890 0 0 0 25,280 0 12,834 1,096 osh-native
34 no-host configure.cpython 1,797,172 1 0 0 25,280 0 12,859 1,035 osh-native-souffle
4 no-host configure.ocaml 298,486 0 0 0 4,432 0 2,020 181 bash
12 no-host configure.ocaml 280,990 0 0 0 4,432 0 2,101 192 dash
20 no-host configure.ocaml 557,294 0 0 0 4,432 0 1,911 196 osh-cpython
28 no-host configure.ocaml 316,973 0 0 0 4,440 0 2,001 215 osh-native
36 no-host configure.ocaml 316,523 0 0 0 4,440 0 1,997 194 osh-native-souffle
5 no-host configure.tcc 5,246 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,201 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,916 0 0 0 88 0 53 6 osh-cpython
29 no-host configure.tcc 5,945 0 0 0 96 0 47 0 osh-native
37 no-host configure.tcc 5,917 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,534,575 0 0 0 35,944 0 18,938 1,109 bash
11 no-host configure.util-linux 1,697,229 1 0 0 35,936 0 17,065 1,234 dash
19 no-host configure.util-linux 4,976,786 2 0 0 35,944 0 17,561 987 osh-cpython
27 no-host configure.util-linux 1,718,209 1 0 0 35,944 0 17,485 1,079 osh-native
35 no-host configure.util-linux 1,715,238 1 0 0 35,944 0 17,419 1,056 osh-native-souffle
6 no-host configure.yash 173,569 0 0 0 3,616 0 876 108 bash
14 no-host configure.yash 159,491 0 0 0 3,624 0 1,004 101 dash
22 no-host configure.yash 315,831 0 0 0 3,616 0 861 102 osh-cpython
30 no-host configure.yash 179,167 0 0 0 3,624 0 857 95 osh-native
38 no-host configure.yash 178,883 0 0 0 3,624 0 858 104 osh-native-souffle
0 no-host hello-world 154 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,872 0 0 0 8 0 7 2 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-a6e41c31
dash dash-cea41b3e
osh-cpython osh-eb61b016
osh-native osh-f850dacb
osh-native-souffle osh-67a40250
host label host id
no-host no-host-31404de8