Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cometkim/rescript-tinybench

Repository files navigation

rescript-tinybench

ReScript bindings to tinybench

Usage

open RescriptCore
open RescriptTinybench
let bench =
 Bench.make(~time=100.0, ())
 ->Bench.add("switch 1", () => {
 let a = ref(1)
 let b = ref(2)
 let c = a.contents
 a := b.contents
 b := c
 })
 ->Bench.add("switch 2", () => {
 let a = ref(1)
 let b = ref(10)
 a := b.contents + a.contents
 b := a.contents - b.contents
 a := b.contents - a.contents
 })
await bench.run(.)
bench.table(.)->Console.table

LICENSE

MIT

About

ReScript bindings to tinybench

Topics

Resources

License

Stars

Watchers

Forks

AltStyle によって変換されたページ (->オリジナル) /