• 基准测试

    基准测试

    Gin 使用了自定义版本的 HttpRouter

    查看所有基准测试

    Benchmark name(1)(2)(3)(4)
    BenchmarkGin_GithubAll300004837500
    BenchmarkAce_GithubAll1000013405913792167
    BenchmarkBear_GithubAll500053444586448943
    BenchmarkBeego_GithubAll300059244474705812
    BenchmarkBone_GithubAll20069573086987848453
    BenchmarkDenco_GithubAll1000015881920224167
    BenchmarkEcho_GithubAll100001547006496203
    BenchmarkGocraftWeb_GithubAll30005708061316561686
    BenchmarkGoji_GithubAll200081803456112334
    BenchmarkGojiv2_GithubAll200012139732747683712
    BenchmarkGoJsonRest_GithubAll20007857961343712737
    BenchmarkGoRestful_GithubAll30052381886896724519
    BenchmarkGorillaMux_GithubAll100102577262118402272
    BenchmarkHttpRouter_GithubAll2000010541413792167
    BenchmarkHttpTreeMux_GithubAll1000031993465856671
    BenchmarkKocha_GithubAll1000020944223304843
    BenchmarkLARS_GithubAll200006256500
    BenchmarkMacaron_GithubAll200011612702041942000
    BenchmarkMartini_GithubAll20099917132265492325
    BenchmarkPat_GithubAll2005590793149956827435
    BenchmarkPossum_GithubAll1000031976884448609
    BenchmarkR2router_GithubAll1000030513477328979
    BenchmarkRivet_GithubAll1000013213416272167
    BenchmarkTango_GithubAll3000552754638261618
    BenchmarkTigerTonic_GithubAll100014394832391045374
    BenchmarkTraffic_GithubAll10011383067265932921848
    BenchmarkVulcan_GithubAll500039425319894609
    • (1):在一定的时间内实现的总调用数,越高越好
    • (2):单次操作耗时(ns/op),越低越好
    • (3):堆内存分配 (B/op), 越低越好
    • (4):每次操作的平均内存分配次数(allocs/op),越低越好