This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Benchmark Mode Cnt Score Error Units | |
AtomicBenchmark.compareAndSet sample 1665797 493.817 卤 2.426 ns/op | |
AtomicBenchmark.compareAndSet:compareAndSet路p0.00 sample 25.000 ns/op | |
AtomicBenchmark.compareAndSet:compareAndSet路p0.50 sample 274.000 ns/op | |
AtomicBenchmark.compareAndSet:compareAndSet路p0.90 sample 950.000 ns/op | |
AtomicBenchmark.compareAndSet:compareAndSet路p0.95 sample 1606.000 ns/op | |
AtomicBenchmark.compareAndSet:compareAndSet路p0.99 sample 3760.000 ns/op |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import pprint | |
def run(tries): | |
count = 0 | |
for i in range(tries): | |
if random.randrange(1<<count) <= 0: | |
count += 1 | |
return count |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.grpc.examples; | |
import io.grpc.CallOptions; | |
import io.grpc.ClientCall; | |
import io.grpc.ManagedChannel; | |
import io.grpc.ManagedChannelBuilder; | |
import io.grpc.Metadata; | |
import io.grpc.MethodDescriptor; | |
import io.grpc.MethodDescriptor.Marshaller; | |
import io.grpc.MethodDescriptor.MethodType; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -Djava.util.logging.config.file=myLoggingConfigFilePath | |
handlers = java.util.logging.ConsoleHandler | |
java.util.logging.ConsoleHandler.level = ALL | |
.level = FINE | |
io.grpc.netty.NettyClientHandler = ALL | |
io.grpc.netty.NettyServerHandler = ALL |
NewerOlder