Skip to content

Instantly share code, notes, and snippets.

@wanabe
Created June 21, 2018 23:10
Show Gist options
  • Select an option

  • Save wanabe/a9b82e8a1aad7f00078f4528553f2c0f to your computer and use it in GitHub Desktop.

Select an option

Save wanabe/a9b82e8a1aad7f00078f4528553f2c0f to your computer and use it in GitHub Desktop.
$ RAILS_ENV=production ruby -W0 -S bundle exec rake bench RBENV="trunk trunk,--jit,--jit-min-calls=3000:TRAINING_NUM=3000:WAIT_SEC=100 trunk+mjit-same-so,--jit,--jit-min-calls=3000:TRAINING_NUM=3000:WAIT_SEC=100" DURATION=10
Booting: production
Endpoint: "/"
Warming up --------------------------------------
bench 1.066k i/s
Calculating -------------------------------------
trunk trunk,--jit,--jit-min-calls=3000,TRAINING_NUM=3000,WAIT_SEC=100 trunk+mjit-same-so,--jit,--jit-min-calls=3000,TRAINING_NUM=3000,WAIT_SEC=100
bench 1.031k 594.824 795.382 i/s - 10.663k times in 10.343410s 17.926304s 13.406132s
Comparison:
bench
trunk: 1030.9 i/s
trunk+mjit-same-so,--jit,--jit-min-calls=3000,TRAINING_NUM=3000,WAIT_SEC=100: 795.4 i/s - 1.30x slower
trunk,--jit,--jit-min-calls=3000,TRAINING_NUM=3000,WAIT_SEC=100: 594.8 i/s - 1.73x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment