Skip to content

Instantly share code, notes, and snippets.

@hkennyv
Last active Jan 21, 2021
Embed
What would you like to do?
benchmarks

sqlite benchmark (single-threaded)

khuynh@kmba:temp/bld $ hyperfine --warmup 3 --prepare 'make clean' 'make -j 1'
Benchmark #1: make -j 1
  Time (mean ± σ):     70.833 s ±  0.235 s    [User: 68.987 s, System: 1.267 s]
  Range (min … max):   70.405 s … 71.105 s    10 runs
khuynh@kmac:temp/bld $ hyperfine --warmup 3 --prepare 'make clean' 'make -j 1'
Benchmark #1: make -j 1
  Time (mean ± σ):     81.958 s ±  0.803 s    [User: 80.291 s, System: 1.502 s]
  Range (min … max):   80.912 s … 83.618 s    10 runs
khuynh@kmbp:temp/bld $ hyperfine --warmup 3 --prepare 'make clean' 'make -j 1'
Benchmark #1: make -j 1
  Time (mean ± σ):     140.428 s ±  3.661 s    [User: 136.410 s, System: 2.473 s]
  Range (min … max):   137.711 s … 149.921 s    10 runs

sqlite benchmark (multi-threaded)

khuynh@kmba:temp/bld $ hyperfine --warmup 3 --prepare 'make clean' 'make -j $(sysctl -n hw.logicalcpu)'
Benchmark #1: make -j $(sysctl -n hw.logicalcpu)
  Time (mean ± σ):     43.722 s ±  0.065 s    [User: 72.307 s, System: 1.309 s]
  Range (min … max):   43.633 s … 43.812 s    10 runs
khuynh@kmac:temp/bld $ hyperfine --warmup 3 --prepare 'make clean' 'make -j $(sysctl -n hw.logicalcpu)'
Benchmark #1: make -j $(sysctl -n hw.logicalcpu)
  Time (mean ± σ):     49.385 s ±  0.296 s    [User: 81.626 s, System: 1.497 s]
  Range (min … max):   48.963 s … 49.969 s    10 runs
khuynh@kmbp:temp/bld $ hyperfine --warmup 3 --prepare 'make clean' 'make -j $(sysctl -n hw.logicalcpu)'
Benchmark #1: make -j $(sysctl -n hw.logicalcpu)
  Time (mean ± σ):     91.009 s ±  4.030 s    [User: 149.822 s, System: 2.858 s]
  Range (min … max):   86.381 s … 97.704 s    10 runs

cinebench r23

kmac: 1021 pts / 6997 pts

kmba: 1477 pts / 6558 pts

kmbp: 556 pts / 1385 pts

TFT FPS

kmac: 120fps kmba: kmbp:

{
"results": [
{
"command": "make -j 1",
"mean": 82.03439868090999,
"stddev": 1.4412658789928368,
"median": 81.48476076271,
"user": 80.282012195,
"system": 1.4825601199999998,
"min": 81.00438644821,
"max": 85.73662173421,
"times": [
81.39516907621,
81.43447514021,
81.00438644821,
82.05813869721,
83.17629135921,
81.34022399821,
85.73662173421,
81.07069750421,
81.59293646621,
81.53504638521
]
}
]
}
{
"results": [
{
"command": "make -j $(sysctl -n hw.logicalcpu)",
"mean": 49.568893665055,
"stddev": 0.25295527429632275,
"median": 49.686302292255,
"user": 81.76803971000001,
"system": 1.5204179649999998,
"min": 49.103805959755,
"max": 49.930932610755,
"times": [
49.930932610755,
49.103805959755,
49.461420855755,
49.344031745755004,
49.309313246755,
49.685257191755,
49.687347392755,
49.733235281755,
49.735140825755,
49.698451539755
]
}
]
}
{
"results": [
{
"command": "make -j 1",
"mean": 70.60289519352,
"stddev": 0.5211515381729683,
"median": 70.54528680602,
"user": 68.59457323999999,
"system": 1.3227265799999997,
"min": 69.82174755602,
"max": 71.57122222302,
"times": [
70.38628072302001,
70.36101884702,
70.51785693102,
70.85638597302,
70.99329980602,
70.99053559802,
71.57122222302,
69.95788759702,
69.82174755602,
70.57271668102
]
}
]
}
{
"results": [
{
"command": "make -j $(sysctl -n hw.logicalcpu)",
"mean": 44.048219993210004,
"stddev": 0.1714844414134597,
"median": 44.04839532621,
"user": 72.820441805,
"system": 1.3957963750000002,
"min": 43.820602306210006,
"max": 44.395573222210004,
"times": [
43.820602306210006,
43.95527618021,
44.14027338921,
43.925065764210004,
44.13104326421,
44.129789972210006,
43.873327180210005,
44.395573222210004,
43.96700068021,
44.14424797321
]
}
]
}
{
"results": [
{
"command": "make -j 1",
"mean": 141.79829941170001,
"stddev": 5.17435628148933,
"median": 138.70736392240002,
"user": 137.54730385999997,
"system": 2.57233411,
"min": 137.6882841094,
"max": 149.4750053904,
"times": [
149.4750053904,
149.3726930424,
148.6753233594,
137.8532673944,
138.2116268254,
138.3894603564,
140.9641454104,
137.6882841094,
139.0252674884,
138.3279207404
]
}
]
}
{
"results": [
{
"command": "make -j $(sysctl -n hw.logicalcpu)",
"mean": 91.12760281137,
"stddev": 3.500630807404055,
"median": 92.08518343717,
"user": 150.13413516500003,
"system": 2.80562384,
"min": 86.85694315217,
"max": 98.33178191417001,
"times": [
92.80101150917,
98.33178191417001,
92.38813979317,
92.18613402617001,
86.97045998317,
87.27784036617,
90.29335049517,
92.01858810217,
86.85694315217,
92.15177877217
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment